/*
Theme Name: ServiKN
Theme URI: https://servikn.com
Description: Tema WordPress 100% personalizado y propio para ServiKN. Sin dependencias, sin licencias, completamente gratuito.
Author: ServiKN
Author URI: https://servikn.com
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: servikn
Tags: business, services, professional, custom, responsive
*/

/* ==========================================================================
   TEMA 100% PROPIO SERVIKN - SIN DEPENDENCIAS
   ========================================================================== */

/* Variables CSS */
:root {
    --primary: #0066cc;
    --secondary: #00b4d8;
    --accent: #ff6b35;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Contenedor Global */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Ver css/header-modern.css para estilos del header */

/* Botones Generales */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,102,204,0.4);
    color: var(--white);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

/* Mobile Menu - Estilos movidos a css/header-modern.css */

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Secciones */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive General */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   PÁGINA SERVICIOS - OPTIMIZADA MÓVIL Y PWA
   ========================================================================== */

/* Hero Compacto */
.hero-compact {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 7rem 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
}

.hero-compact h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-compact p {
    opacity: 0.95;
}

/* Buscador de Servicios */
.services-search {
    padding: 2rem 0 1rem;
    background: var(--light);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--secondary);
}

/* Servicios Grid */
.services-grid-section {
    padding: 2rem 0 6rem;
    background: var(--light);
}

.service-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.service-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon-large {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.service-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.reviews {
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #10b981;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: var(--light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.feature-tag i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.service-details {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius);
}

.service-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.service-details ul {
    list-style: none;
    padding: 0;
}

.service-details li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius);
    margin: 1rem 0;
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    margin-right: auto;
}

.price-ref {
    font-size: 0.85rem;
    opacity: 0.8;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* CTA Flotante Móvil */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.mobile-cta-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.mobile-cta-btn.call {
    background: var(--primary);
    color: var(--white);
}

.mobile-cta-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

.mobile-cta-btn.email {
    background: var(--secondary);
    color: var(--white);
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
}

.mobile-cta-btn i {
    font-size: 1.3rem;
}

/* Why Us Compact */
.why-us-compact {
    padding: 3rem 0;
    background: var(--white);
}

.why-us-compact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--light);
    border-radius: var(--radius);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.benefit-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* FAQ Compacto */
.faq-compact {
    padding: 3rem 0 5rem;
    background: var(--light);
}

.faq-compact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item-compact {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.faq-question-compact {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
}

.faq-question-compact i {
    transition: var(--transition);
    color: var(--secondary);
}

.faq-item-compact.active .faq-question-compact i {
    transform: rotate(180deg);
}

.faq-answer-compact {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item-compact.active .faq-answer-compact {
    max-height: 300px;
}

.faq-answer-compact p {
    padding: 0 1rem 1rem;
    color: var(--text-light);
}

/* Responsive Servicios */
@media (min-width: 769px) {
    .hero-compact {
        padding: 10rem 0 3rem;
    }
    
    .mobile-cta-bar {
        display: none;
    }
    
    .services-grid-section {
        padding: 3rem 0;
    }
    
    .service-item {
        padding: 2rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-actions {
        flex-direction: row;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-compact {
        padding: 5rem 0 2rem;
    }
    
    .service-icon-large {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.5rem;
    }
    
    .service-info h2 {
        font-size: 1.2rem;
    }
}

/* PWA - Instalación */
.pwa-install-prompt {
    position: fixed;
    bottom: 80px;
    left: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    z-index: 99;
}

.pwa-install-prompt.show {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-install-prompt button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

/* ==========================================================================
   FOOTER ESTILOS
   ========================================================================== */

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

