/* ==================== VARIABLES Y DISEÑO GLOBAL ==================== */
:root {
    --color-green-dark: #2d5f4f;
    --color-green-main: #40a578;
    --color-green-light: #6fd39a;
    --color-green-lighter: #e8f5f0;
    --color-gray-dark: #2b2d42;
    --color-gray-mid: #6c757d;
    --color-gray-light: #f1f5f9;
    --color-gray-lighter: #f9fafb;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-accent-orange: #ff8c42;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.12);
                
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
                
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease-out;
                
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
                
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 8px 24px rgba(45, 95, 79, 0.15);
    --shadow-hover: 0 12px 32px rgba(45, 95, 79, 0.2);
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto evita el movimiento lateral */
    position: relative;
    scroll-behavior: smooth;
    height: -webkit-fill-available; /* Llena el espacio real del navegador */
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Asegura que el contenido no se desplace por el notch */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

* {
    box-sizing: border-box; /* Asegura que paddings no sumen ancho extra */
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-gray-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}
    
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}
    
h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}
    
h4 {
    font-size: 1.25rem;
    font-weight: 600;
}
    
p {
    margin-bottom: 1.25rem;
    color: var(--color-gray-mid);
    font-size: 1rem;
}

a {
    color: var(--color-green-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-green-dark);
}

/* ==================== NAVEGACIÓN ==================== */
/* header styles managed by styles.css */

/* Suavizamos la transición cuando se quita el efecto */
header, section, footer {
    transition: filter 0.4s ease;
}

/* nav styles managed by styles.css */

/* .logo managed centrally by styles.css */
            
/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
    
.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}
        
/* #nav .cta-button managed centrally by styles.css */
        
/* .mobile-menu-toggle managed by styles.css */

/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 2rem;
    background: #000; /* Color de respaldo */
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, var(--color-white) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 95, 79, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px !important; /* Ancho máximo en PC */
    margin: 0 auto !important;    /* Centra el contenido */
    padding: 0 25px !important;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: slideDown 0.8s ease;
}
    
.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .cta-button {
    display: inline-block;
    animation: slideUp 0.8s ease 0.4s both;
    background-color: var(--accent-color);
    color: var(--dark-text);
    margin: 0 0.5rem;
}

.hero .cta-button:hover {
    background-color: #e5b587;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        
.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
        
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}
    
.hero-image img {
    max-width: 100% !important;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Sombra más profunda */
    border: 1px solid rgba(255,255,255,0.1);
}

section {
    padding: 4rem 0;
    overflow: hidden;
    width: 100%;
}

.section-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
        box-shadow: var(--shadow-sm);
    max-width: 1200px !important; /* Ancho máximo deseado */
    margin: 0 auto !important;
    padding: 0 25px !important;
    padding-left: 2rem;  /* Espacio de seguridad para que no toque los bordes en tablets */
    padding-right: 2rem;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
        
section.alt-bg {
    width: 100%;
    display: block;
    background-color: var(--color-gray-lighter);
    padding: 6rem 1.5rem; /* Margen superior e inferior amplio */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-green-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: gray;
    max-width: 600px;
    margin: 0 auto;
}

/* Botón de WhatsApp con Estilo Glass */
.cta-btn-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border: 2px solid #25d366;
    color: #25d366;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.cta-btn-whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-5px);
}
        
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(64, 165, 120, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(64, 165, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 165, 120, 0); }
}

/* FAQ CATEGORIES */
.faq-hero {
    position: relative;
    padding: 14rem 2rem 12rem !important;
    color: white !important;
    text-align: center;
    overflow: hidden; /* Importante para que el fondo no se salga */
    background-color: #1a4a3a !important; /* Color de respaldo sólido */
}
         
.faq-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
     /* CAPAS DE FONDO */
    background-image: 
         linear-gradient(rgba(45, 95, 79, 0.8), rgba(26, 74, 58, 0.9)), 
         url('../images/faq1.jpg') !important;
    
     /* PROPIEDADES PARALLAX */
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    
    z-index: 1; /* Se coloca detrás del texto */
}
        
.faq-hero h1 {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 1.5rem !important;
}

.faq-hero p {
    font-size: 1.25rem !important;
    max-width: 700px;
    margin: 0 auto 3rem !important;
    opacity: 0.9;
}
        
        .faq-hero .section-container,
.faq-hero h1,
.faq-hero p {
    position: relative;
    z-index: 2; /* Mayor que el z-index del fondo */
}
        
        
.faq-search-wrapper {
    max-width: 800px;
    margin: -3rem auto 0 !important; /* Eleva el buscador sobre el hero */
    position: relative;
    z-index: 20;
    padding: 0 1.5rem;
}
        
.faq-search-container {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0.8rem 0.8rem 0.8rem 1.2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
        
.faq-search-icon {
    color: var(--color-green-main, #40a578);
    flex-shrink: 0;
    margin: 0 0.8rem;
}

.faq-search-clear {
    display: none;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 4px;
    transition: all 0.2s;
}

.faq-search-clear:hover {
    background: #f0f0f0;
    color: #333;
}

.faq-search-container input {
    background: transparent !important;
    border: none;
    outline: none;
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--color-green-dark);
}
        
/* Focus-within */
.faq-search-container:focus-within {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 25px 50px rgba(64, 165, 120, 0.2) !important;
    transform: translateY(-5px) scale(1.02);
}

/* Resultados y contador */
.faq-search-results {
    max-width: 800px;
    margin: 12px auto 0;
    position: relative;
    z-index: 19;
}

.faq-results-count,
.faq-no-results {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.faq-results-count {
    background: rgba(64, 165, 120, 0.1);
    color: var(--color-green-dark, #1a5e4a);
}

.faq-no-results {
    background: rgba(255, 152, 0, 0.08);
    color: #666;
}

.faq-results-count svg {
    color: var(--color-green-main, #40a578);
    flex-shrink: 0;
}

.faq-no-results svg {
    color: #f5a623;
    flex-shrink: 0;
}

/* Texto resaltado */
mark {
    background: rgba(64, 165, 120, 0.2);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* Sugerencias (autocomplete) */
.faq-suggestions {
    display: none;
    max-width: 760px;
    margin: 4px auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 30;
}

.faq-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.faq-suggestion-item:last-child {
    border-bottom: none;
}

.faq-suggestion-item:hover,
.faq-suggestion-item.highlighted {
    background: rgba(64, 165, 120, 0.06);
}

.faq-suggestion-item svg {
    color: var(--color-green-main, #40a578);
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-suggestion-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.faq-suggestion-question {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.faq-suggestion-category {
    font-size: 0.75rem;
    color: #999;
}

/* Animación */
.faq-search-results,
.faq-suggestions {
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CTA PREMIUM - ¿Todavía tienes dudas?
   ============================================================ */
.faq-cta-premium {
    position: relative;
    margin: 60px auto;
    max-width: 900px;
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-main) 60%, var(--color-green-light) 100%);
    border-radius: 24px;
    padding: 60px 56px 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(32, 94, 78, 0.25);
    will-change: transform;
}

.faq-cta-bg-decoration {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,0.15) 0%, transparent 45%),
        radial-gradient(circle at 8% 90%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.faq-cta-bg-decoration::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255,255,255,0.13);
    border-radius: 50%;
}

.faq-cta-content {
    position: relative;
    z-index: 1;
}

.faq-cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.faq-cta-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.faq-cta-text {
    font-size: 1.02rem;
    color: #ffffff;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.faq-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.faq-cta-btn-whatsapp,
.faq-cta-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    /* sin transition de transform: GSAP (FAQs.js) anima transform por frame */
    transition: box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    will-change: transform;
}

/* Primario destacado — "Hablar con un Experto" */
.faq-cta-btn-whatsapp {
    background: #ffffff;
    color: var(--color-green-dark);
    border: 2px solid #ffffff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.faq-cta-btn-whatsapp:hover {
    background: var(--color-green-lighter, #e8f5f0);
    border-color: #ffffff;
    color: var(--color-green-dark);
    /* el lift/scale del hover lo anima GSAP (FAQs.js) */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Secundario ghost/outline — "Llamar Ahora" */
.faq-cta-btn-phone {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.6);
}

.faq-cta-btn-phone:hover {
    background: rgba(255,255,255,0.24);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faq-cta-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.22);
}

.faq-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.92);
}

.faq-cta-trust svg {
    color: #ffffff;
    flex-shrink: 0;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .faq-cta-premium {
        margin: 40px 16px;
        padding: 32px 20px;
        border-radius: 16px;
    }
    .faq-cta-title {
        font-size: 1.35rem;
    }
    .faq-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .faq-cta-btn-whatsapp,
    .faq-cta-btn-phone {
        justify-content: center;
        padding: 14px 24px;
    }
    .faq-cta-trust {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

[data-theme="dark"] .faq-search-container {
    background: rgba(22, 32, 25, 0.85) !important;
    border-color: var(--nm-border, #1e2d27) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .faq-search-container:focus-within {
    background: rgba(22, 32, 25, 0.95) !important;
}

[data-theme="dark"] .faq-search-container input {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .faq-search-container input::placeholder {
    color: rgba(232, 240, 237, 0.5);
}

[data-theme="dark"] .faq-search-clear {
    color: rgba(232, 240, 237, 0.6);
}

[data-theme="dark"] .faq-search-clear:hover {
    background: var(--nm-bg, #0f1715);
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .faq-results-count {
    background: rgba(45, 138, 122, 0.2);
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .faq-no-results {
    background: rgba(255, 152, 0, 0.1);
    color: #b0b0b0;
}

[data-theme="dark"] .faq-suggestions {
    background: var(--nm-secondary-bg, #162019);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .faq-suggestion-item {
    border-bottom-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .faq-suggestion-item:hover,
[data-theme="dark"] .faq-suggestion-item.highlighted {
    background: rgba(45, 138, 122, 0.15);
}

[data-theme="dark"] .faq-suggestion-question {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .faq-suggestion-category {
    color: rgba(232, 240, 237, 0.5);
}

[data-theme="dark"] .faq-category-card,
[data-theme="dark"] .category-card {
    background: var(--nm-secondary-bg, #162019);
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .faq-category-card h3 {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .faq-category-card p {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .category-icon {
    border-color: var(--nm-border, #1e2d27);
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .faq-section {
    background: var(--nm-secondary-bg, #162019);
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .faq-section h3 {
    color: var(--nm-accent, #2d8a7a);
    border-bottom-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .faq-section-icon {
    background: var(--nm-bg, #0f1715);
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .faq-item {
    background: var(--nm-bg, #0f1715);
    border-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .faq-item:hover {
    border-color: var(--nm-accent, #2d8a7a);
    background-color: var(--nm-bg, #0f1715);
}

[data-theme="dark"] .faq-question:hover {
    background: var(--nm-bg, #0f1715);
}

[data-theme="dark"] .faq-question span {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .faq-item.active .faq-question span {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .faq-question i {
    background: var(--nm-secondary-bg, #162019);
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .faq-item.active .faq-question i {
    background: var(--nm-accent, #2d8a7a);
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .faq-answer {
    background: var(--nm-bg, #0f1715);
}

[data-theme="dark"] .faq-item.active .faq-answer {
    border-top-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .faq-answer ul,
[data-theme="dark"] .faq-answer li {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .faq-answer strong {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] mark {
    background: rgba(45, 138, 122, 0.3);
    color: inherit;
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    cursor: pointer;
    text-decoration: none; /* Por si usamos etiquetas <a> */
    display: block;
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(64, 165, 120, 0.1);
    transition: var(--transition-smooth);
}

.category-card:active {
    transform: scale(0.95); /* Efecto de clic inmediato */
}
        
.category-card:hover {
    transform: translateY(-12px);
    border-color: var(--color-green-main);
    box-shadow: 0 20px 40px rgba(45, 95, 79, 0.1);
}
            
.faq-category-card {
    background: white;
    border: 1.5px solid rgba(45, 95, 79, 0.1);
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.faq-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    transition: 0.6s;
}

.faq-category-card:hover::before {
    left: 100%;
}

.faq-category-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 12px 30px rgba(45, 80, 22, 0.15);
    transform: translateY(-5px);
}

.category-icon {
    width: 70px;
    height: 70px;
    /* Eliminamos el fondo sólido de dos tonos */
    background: transparent; 
    color: var(--color-green-main);
    /* Añadimos un borde sutil del mismo color para definir el área */
    border: 2px solid var(--color-green-lighter);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    /* Cambiamos la transición para que anime el fondo y el borde suavemente */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
        
.category-card:hover .category-icon {
    /* Al pasar el mouse, se vuelve un bloque sólido unicolor */
    background: var(--color-green-main);
    border-color: transparent; /* El borde desaparece */
    color: white;
    transform: rotateY(180deg) scale(1.1); /* Añadimos un pequeño zoom para más impacto */
    box-shadow: 0 10px 20px rgba(64, 165, 120, 0.3); /* Sombra brillante */
}

.icon-img {
    width: 100%;       /* Ocupa el ancho del contenedor */
    height: 100%;      /* Ocupa el alto del contenedor */
    object-fit: contain; /* Mantiene la proporción de tu diseño */
    padding: 5px;      /* Espacio opcional para que no toque los bordes */
}

.faq-category-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-category-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ ACCORDION CONTAINER */
.faq-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.faq-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-section-icon {
    font-size: 1.5rem !important; /* Tamaño controlado */
    width: 45px;
    height: 45px;
    background: var(--color-green-lighter);
    color: var(--color-green-main);
    border-radius: 12px;
    display: inline-flex; /* Centrado perfecto */
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0; /* Evita que se aplaste */
}

.faq-section-icon img, .category-icon img {
    max-width: 55px;
    height: auto;
    object-fit: contain;
}

/* FAQ ACCORDION ITEMS */
.faq-item {
    background: white;
    border-radius: 18px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--color-green-main);
    transition: width 0.3s ease;
    z-index: 1;
}
        
.faq-item:hover {
    border-color: var(--color-green-light);
    background-color: #fafafa;
}

.faq-item:hover .faq-question i {
    transform: scale(1.1);
}
        
.faq-question {
    padding: 1.8rem 2.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.faq-question i {
    width: 32px;
    height: 32px;
    background: var(--color-gray-lighter);
    color: var(--color-green-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.4s ease;
}
        
        
.faq-question:hover {
    background: var(--light-bg);
}

.faq-question span {
    font-weight: 700;
    color: var(--color-green-dark);
    font-size: 1.1rem;
    padding-right: 15px;
    transition: color 0.3s ease;
}
        
.faq-item.active .faq-question span {
    color: var(--color-green-main);
}
        
.faq-item.active {
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(45, 95, 79, 0.1);
    transform: translateY(-4px);
}
 
.faq-item.active::before {
    width: 6px; /* Aparece la barra al estar activo */
}
        
.faq-item.active .faq-question i {
    background: var(--color-green-main);
    color: white;
    transform: rotate(180deg);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 1000px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    padding: 0 2.2rem 2rem 2.2rem;
    color: var(--color-gray-mid);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--medium-text);
    line-height: 1.8;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
    
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .cta-button {
    background-color: var(--accent-color);
    color: var(--dark-text);
}

.cta-buttons .cta-button:hover {
    background-color: #e5b587;
}

.cta-final-parallax {
    position: relative;
    padding: 8rem 2rem !important;
    overflow: hidden;
    background-color: var(--color-green-dark) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen Parallax para el fondo del CTA */
.cta-final-parallax::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(45, 95, 79, 0.85), rgba(26, 74, 58, 0.95)), 
        url('../images/faq1.jpg') !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
}
        
/* La "Cajita" de Cristal Optimizada */
.cta-glass-card {
    position: relative;
    z-index: 10; /* Por encima del fondo parallax */
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.cta-glass-card h2 {
    color: white !important;
    font-size: 2.8rem !important;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-glass-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón WhatsApp Premium */
.cta-btn-premium.whatsapp {
    background: #25d366;
    color: white !important;
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.cta-btn-premium.whatsapp:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    filter: brightness(1.1);
}
        
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
        
/* SEARCH FAQ */
.faq-search {
    margin-bottom: 3rem;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(138, 177, 125, 0.1);
}
        
/* Footer heredado de styles.css */

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    /* nav ul managed by styles.css */
            
    .faq-hero {
        /* En móviles la imagen se mueve con el scroll para evitar errores visuales */
        background-attachment: scroll !important;
    }
            
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
        }
    
    h3 {
        font-size: 1.25rem;
    }
            
    .logo {
        font-size: 1.2rem;
        height: 40px;
    }
    
    .logo img {
        height: 45px;
    }

    /* mobile menu styles managed by styles.css */

    .hero {
        position: relative; /* Necesario para posicionar el video */
        margin-top: 70px;
        min-height: 90vh;
        display: flex;
        align-items: center;
        overflow: hidden; /* Corta el video sobrante */
        padding: 4rem 2rem;
        background: #000;
        margin-bottom: 2rem;
    }

    /* .header-container managed by styles.css */

    .hero-buttons {
        justify-content: center;
        flex-direction: column; /* Botones uno sobre otro en móviles */
    }
            
    .hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que cubra sin deformarse */
        z-index: 0;
        opacity: 0.6; /* Ajusta la opacidad para que el texto resalte */
    }
            
    .hero-content {
        order: 1;
    }
                
    .hero-content h1 {
        color: #ffffff; /* Asegura contraste en móviles sobre el video */
    }

    .hero-content p {
        color: #f1f1f1;
    }
            
    .hero-image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
        margin-top: 1.5rem;
    }
            
    .hero-image img {
        width: 185px;       /* Ancho reducido */
        height: 490px; 
        border-radius: 50px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-lg); /* Sombra suave definida en tus variables */
        transition: var(--transition-smooth);
        object-fit: cover; 
        object-position: center;
    }
    
    .hero-image img:hover {
        transform: scale(1.02); /* Efecto sutil al pasar el mouse */
    }
            
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        min-width: 90%;
    }
            
    section {
        padding: 3.5rem 1.5rem;
    }
            
    .section-title h2 {
        font-size: 1.8rem;
    }

    .faq-categories {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .faq-category-card {
        padding: 2rem 1.2rem;
    }
    
    .faq-section h3 {
        font-size: 1.25rem !important;
        flex-direction: row !important; /* Mantiene icono al lado del texto */
        align-items: center;
        text-align: left;
    }

    .faq-section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem !important;
    }
    
    .faq-question {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-toggle {
        margin-left: 0;
        align-self: flex-end;
        margin-top: -2rem;
    }
            
    .cta-glass-card {
        padding: 3.5rem 1.5rem;
        border-radius: 30px;
        margin: 0 10px;
    }
    .cta-glass-card h2 {
        font-size: 1.8rem !important;
    }
            

            

    

            

            









}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
    }

    section {
        /* Cambiamos el 0 por 1.5rem para crear el margen lateral */
        padding: 2.5rem 1.5rem; 
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
            
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    /* nav styles managed by styles.css */

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
            
    .logo {
        font-size: 1.25rem;
        height: 40px;
    }
            
    .logo img {
        height: 35px;
    }

    .hero {
        margin-top: 0;
        min-height: 45vh;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }

    .faq-section {
        padding: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem;
    }
            

}