/* ================================================================
    PROYECTO: EQUILIBRA WELLNESS
    CONFIGURACIÓN DE VARIABLES, TIPOGRAFÍA (QUESTRIAL) Y RESET
================================================================ 
*/

/* Importación de Questrial (Circular/Fluida) y Montserrat (Lectura) */


:root {
    /* Colores */
    --olive: #5D6658;
    --estilo: #00BB77;
    --olive-dark: #1A1A1A;
    --hover: #EFBF04;
    --white: #F9F9F7;
    --black-section: #F8F8F0; 
    --text-dark: #1A1A1A;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Tipografía Global */
    --font-elegant: 'Questrial', sans-serif; /* Look minimalista y suave */
    --font-body: 'Montserrat', sans-serif;
    --font-firma: 'Great Vibes', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    font-family: var(--font-body);
    color: var(--text-dark);
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

/* ================================================================
    ESTILOS GLOBALES DE SECCIÓN Y ELEMENTOS
================================================================ 
*/

.section {
    padding: 120px 10%;
    position: relative;
}

.bg-white {
    background-color: var(--white);
}

.bg-black {
    background-color: var(--black-section);
    color: var(--text-dark);
}

.premium-title {
    font-family: var(--font-elegant);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    text-transform: none; /* Opcional: El lowercase en Questrial se ve muy "Wellness" */
    letter-spacing: 1px;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3.5rem;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-elegant);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    border-radius: 40px; /* Bordes redondeados para seguir la forma de la fuente */
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--text-dark);
    letter-spacing: 6px; /* Efecto elegante al expandirse */
}



/* ================================================================
    ESTILOS GLOBALES: BOTONES (CTA)
================================================================ 
*/

/* 1. Base del Botón (Comportamiento Común) */
.btn-cta {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    font-family: var(--font-elegant);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* 2. Botón Primario (Para el Hero o Fondos Oscuros) */
.primary-cta {
    background-color: var(--olive-dark);
    color: var(--white);
}

.primary-cta:hover {
    transform: translateY(-5px); /* Elevación sutil */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Sombra ligera para enfatizar el despegue */
}

/* 3. Botón Secundario (Ideal para la sección de Bienestar/Dorado) */
.secondary-cta {
    background-color: var(--olive-dark); /* Un negro suavizado o gris muy oscuro */
    color: var(--white);
    border: 1px solid var(--olive);
}

.secondary-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 4. Botón Outline (Estilo Minimalista) */
.outline-cta {
    background-color: transparent;
    border: 1px solid var(--olive);
    color: var(--olive);
}

.outline-cta:hover {
    background-color: var(--olive);
    color: var(--white);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .btn-cta {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        width: 100%; /* Botón a lo ancho en móviles para mejor clic */
    }
}

/* ================================================================
    ESTILOS GLOBALES: TIPOGRAFÍA Y CONTENEDORES
================================================================ 
*/

/* 1. Contenedor Maestro (Evita que el contenido toque los bordes) */
.container {
    width: 90%;
    max-width: 1250px; /* Ancho máximo para pantallas grandes */
    margin: 0 auto;    /* Centra el contenido horizontalmente */
    padding: 0 20px;   /* Colchón de seguridad extra en móviles */
}

/* 2. Definición Global de Textos */
h2 {
    font-family: var(--font-elegant);
    color: var(--olive-dark);
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Tamaño fluido */
    line-height: 1.1;
    margin-bottom: 2.5rem;
    font-weight: 400;
    
}

h3 {
    font-family: var(--font-elegant);
    color: var(--olive-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 400;
    
}

p {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8; /* Espaciado entre líneas para mejor lectura */
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9; /* Suaviza el negro puro para un look más caro */
}

/* 3. Ajuste para fondos claros (bg-white) y dorados (bg-black) */
.bg-white, .bg-black {
    padding: 120px 0; /* Aire vertical para que las secciones respiren */
}

/* Negritas elegantes en el proyecto */
strong {
    font-weight: 600;
    color: var(--olive); /* Tus palabras clave resaltarán en verde oliva */
}

/* 4. Responsive rápido */
@media (max-width: 768px) {
    h2 { margin-bottom: 2rem; }
    p { font-size: 1rem; }
    .bg-white, .bg-black { padding: 80px 0; }
}

/* ================================================================
    NAVEGACIÓN (ESTILO MODERNO)
================================================================ 
*/

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%; 
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(249, 249, 247, 0.98);
    padding: 1.2rem 5%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.nav-logo {
    font-family: var(--font-elegant);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--white); 
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 3px;
    transition: var(--transition);
}

.scrolled .nav-logo {
    color: var(--olive);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white); 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    font-family: var(--font-elegant);
    transition: var(--transition);
}

.scrolled .nav-links a {
    color: var(--olive-dark);
}

.nav-links a:hover {
    opacity: 0.7;
    color: var(--hover);
}

/* ================================================================
    MEDIA QUERIES: NAVEGACIÓN (RESPONSIVE)
================================================================ 
*/

@media (max-width: 992px) {
    .main-header {
        padding: 1.5rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 999;
        display: flex; /* Asegura el comportamiento flex en móvil */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-dark); /* Removido !important, el flujo natural lo detecta */
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .nav-logo {
        font-size: 1.3rem;
        z-index: 1001;
    }

    /* Ajuste de color del logo: Si el menú está abierto, el logo debe ser oliva para resaltar sobre el fondo blanco */
    .main-header:not(.scrolled) .nav-logo {
        color: var(--white);
    }

    .nav-toggle.active ~ .nav-logo, /* Si usas el toggle antes del logo en el HTML */
    .active .nav-logo { 
        color: var(--olive);
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1rem 5%;
    }

    .nav-logo {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .nav-links {
        width: 100%;
    }
}

/* ================================================================
    HEADER: AJUSTES PARA MENÚ HAMBURGUESA
================================================================ 
*/

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
    transition: var(--transition);
}

.scrolled .nav-toggle span {
    background-color: var(--olive-dark);
}

/* ================================================================
    MENÚ MÓVIL: PANEL LATERAL CON DESENFOQUE
================================================================ */

/* Preparación del contenedor principal para el efecto blur */
#main-content {
    transition: filter 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: filter;
}

@media (max-width: 992px) {
    /* Efecto de desenfoque aplicado al abrir el menú */
    .body-menu-open #main-content {
        filter: blur(8px) brightness(0.9);
        pointer-events: none;
        user-select: none;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1200; /* Por encima del panel */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto por defecto */
        width: 75%;    /* No cubre toda la pantalla */
        max-width: 320px;
        height: 100vh;
        
        /* Efecto Premium de Cristal */
        background-color: rgba(255, 255, 255, 0.85); 
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1100;
    }

    /* Clase que activará tu JS */
    .nav-links.active {
        right: 0;
    }

    /* Estilo de los links en móvil */
    .nav-links li a {
        font-family: var(--font-elegant);
        font-size: 1.2rem;
        color: var(--text-dark);
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    /* Overlay: Capa que oscurece el resto de la pantalla */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1050;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Ajustes del botón hamburguesa ya integrados */
    .nav-toggle.active span {
        background-color: var(--olive);
    }

    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ================================================================
    HERO SECTION: DISEÑO Y PROTAGONISMO (ESPACIADO MEJORADO)
================================================================ 
*/

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    
    /* COLOR DE RESPALDO (#111) + IMAGEN: 
       Esto evita el "flashazo" blanco mientras carga as.jpeg.
    */
    background: #111 url('../img/as.jpeg') no-repeat center center;
    background-size: cover;
    
    overflow: hidden; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 1.2s ease-out;
    width: 90%;
    max-width: 850px; 
    margin: 0 auto;
    
    /* Elevación base del bloque completo */
    transform: translateY(-10px); 
}

.hero-logo {
    width: 280px; 
    margin-bottom: 20px; 
}

.hero-title {
    font-family: var(--font-elegant);
    font-size: clamp(1.8rem, 5vw, 3.2rem); 
    font-weight: 400;
    line-height: 1.2;
    /* AUMENTADO: Espacio entre título y subtítulo en escritorio */
    margin-bottom: 1.5rem; 
    text-transform: none;
    color: var(--white);
}

.hero-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--white);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    line-height: 0.8;
    
    /* Espacio al botón */
    margin-bottom: 3rem; 
    display: block;
}



/* ================================================================
    ADAPTACIÓN MULTIDISPOSITIVO (POSICIÓN INDEPENDIENTE DEL BOTÓN)
================================================================ 
*/

/* 1. MÓVILES PEQUEÑOS (Hasta 375px) */
@media (max-width: 375px) {
    .hero-logo { 
        width: 150px; 
        margin-top: 0;
        margin-bottom: 5px; 
    }
    .hero-title { font-size: 1.6rem; margin-bottom: 0.6rem; }
    .hero-subtitle { font-size: 1.9rem; margin-bottom: 0; }

    /* Bajamos el botón sin empujar lo de arriba */
    .hero-content .btn-primary {
        display: inline-block;
        position: relative;
        top: 85px; 
        text-decoration: none;
    }
}

/* 2. MÓVILES ESTÁNDAR Y GRANDES (376px a 576px) */
@media (min-width: 376px) and (max-width: 576px) {
    .hero-logo { 
        width: 180px; 
        margin-top: 0;
        margin-bottom: 5px; 
    }
    .hero-content { transform: translateY(-20px); }
    .hero-title { font-size: 1.8rem; margin-bottom: 0.8rem; }
    .hero-subtitle { font-size: 2.2rem; margin-bottom: 0; }

    /* Bajamos el botón significativamente sin alterar el resto */
    .hero-content .btn-primary {
        display: inline-block;
        position: relative;
        top: 135px; 
        text-decoration: none;
    }
}

/* 3. TABLETS (577px a 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-logo { width: 220px; }
    .hero-title { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 2.5rem; margin-bottom: 0; }

    .hero-content .btn-primary {
        display: inline-block;
        position: relative;
        top: 105px;
        text-decoration: none;
    }
}

/* ANIMACIÓN */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
    SECCIÓN: ABOUT PREMIUM - LUXURY MINIMALISM
================================================================ 
*/

.about-premium {
    background-color: var(--black-section); /* Tu color #E0CD95 */
    color: var(--text-dark);
    padding: 160px 0;
}

.about-grid-modern {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: center;
}


/* ESTILO VISUAL (IMAGEN) */
.image-reveal-wrapper {
    position: relative;
    overflow: hidden;
}

.img-portrait {
    width: 100%;
    height: 750px;
    object-fit: cover;
    filter: brightness(0.95) sepia(0.1);
    transition: var(--transition);
}

.floating-badge {
    position: absolute;
    top: 40px;
    left: -20px;
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 2rem;
    font-family: var(--font-elegant);
    font-size: 0.8rem;
    letter-spacing: 3px;
    transform: rotate(-90deg);
}

.image-tag {
    margin-top: 2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.6;
}

/* NARRATIVA DE MARCA */
.section-tag {
    display: block;
    font-family: var(--font-firma);
    
    /* CAMBIOS NECESARIOS PARA EL ESTILO FIRMA */
    text-transform: none;      /* ¡Fundamental! Las firmas no se ven bien en mayúsculas */
    letter-spacing: 0;         /* Las letras deben estar unidas para que parezca caligrafía */
    font-weight: 400;          /* Great Vibes es una fuente de trazo único, no necesita 600 */
    
    /* AJUSTE DE TAMAÑO (Compensación) */
    /* Como 0.8rem en cursiva es muy pequeño, subimos el tamaño para mantener el impacto */
    font-size: 1.8rem; 
    
    /* LO QUE MANTENEMOS DE TU DISEÑO APROBADO */
    color: var(--olive-dark);
    margin-bottom: 1rem;
    
    /* Toque extra de legibilidad */
    line-height: 1.2;
}

.display-title {
    font-family: var(--font-elegant);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 4rem;
    font-weight: 300;
}

.display-title em {
    font-style: italic;
    color: var(--olive-dark);
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-family: var(--font-elegant);
    color: var(--text-dark);
}

.narrative-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* FILOSOFÍA (PUNTOS CLAVE) - ACTUALIZADO */
.philosophy-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.point-title {
    display: block;
    font-family: var(--font-elegant);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--olive);
}

/* Lista de Beneficios en 2 Columnas */
.luxury-list-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Crea las 2 columnas */
    gap: 15px 30px; /* Espaciado entre filas y columnas */
}

.luxury-list-mini li {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start; /* Alinea el emoji arriba si el texto tiene 2 líneas */
    gap: 10px;
}

/* Estilo para el mensaje final (Motto) - ACTUALIZADO */
.motto-text {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 1px;
    color: var(--olive-dark);
    margin-top: 3rem;
    font-style: italic;
    border-left: 2px solid var(--olive);
    padding-left: 20px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-grid-modern {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .img-portrait { height: 500px; }
    .philosophy-points { flex-direction: column; gap: 20px; }
    
    .motto-text {
        font-size: 1.1rem;
    }
}

/* Ajuste para que en móviles sea 1 sola columna */
@media (max-width: 600px) {
    .luxury-list-mini {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
    SECCIÓN: BIENESTAR (PROBLEMA / SOLUCIÓN)
================================================================ 
*/

.section-bienestar {
    background-color: var(--black-section); /* Tu dorado #E0CD95 */
    color: var(--text-dark);
}

/* 1. Introducción y Títulos */
.about-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.eyebrow {
    display: block;
    font-family: var(--font-firma); /* Tu nueva firma */
    
    /* CAMBIOS NECESARIOS PARA EL ESTILO FIRMA */
    text-transform: none;      /* ¡Fundamental! Las firmas no se ven bien en mayúsculas */
    letter-spacing: 0;         /* Las letras deben estar unidas para que parezca caligrafía */
    font-weight: 400;          /* Great Vibes es una fuente de trazo único, no necesita 600 */
    
    /* AJUSTE DE TAMAÑO (Compensación) */
    /* Como 0.8rem en cursiva es muy pequeño, subimos el tamaño para mantener el impacto */
    font-size: 1.8rem; 
    
    /* LO QUE MANTENEMOS DE TU DISEÑO APROBADO */
    color: var(--olive-dark);
    margin-bottom: 1rem;
    
    /* Toque extra de legibilidad */
    line-height: 1.2;
}

/* 2. Layout Split: Problema e Imagen */
.problem-solution-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 100px;
}

.problem-intro-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-elegant);
    line-height: 1.4;
}

/* Lista de "Problemas" con estilo minimalista */
.luxury-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3.5rem;
}

.luxury-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.list-icon {
    color: var(--olive);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 4px;
}

.luxury-list p {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 300;
}

/* Caja de llamado a la acción interna */
.solution-callout {
    background: rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 2px;
    border-left: 4px solid var(--olive);
}

.solution-callout p {
    font-size: 1.1rem;
    font-style: cursive;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 3. Tratamiento Editorial de la Imagen */
.problem-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.img-editorial {
    width: 90%;
    height: auto;
    object-fit: cover;
    z-index: 2;
    filter: brightness(0.95);
    transition: var(--transition);
}

.image-frame-decoration {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 90%;
    height: 100%;
    border: 2px solid var(--olive-dark);
    z-index: 1;
}

/* 4. Grid de Beneficios (La Solución) */
.benefits-showcase {
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.solution-heading {
    text-align: center;
    font-family: var(--font-elegant);
    margin-bottom: 4rem;
    font-size: 2.2rem;
}

.benefits-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card-v2 {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--olive);
}

.card-number {
    display: block;
    font-family: var(--font-elegant);
    color: var(--olive-dark);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.benefit-card-v2 h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-card-v2 p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 5. Responsive */
@media (max-width: 992px) {
    .problem-solution-split {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .problem-image-wrapper {
        order: -1; /* La imagen sube en móvil */
        justify-content: center;
    }

    .img-editorial, .image-frame-decoration {
        width: 100%;
    }

    .benefits-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
    SECCIÓN: COBERTURA (LAYOUT EDITORIAL CORREGIDO)
================================================================ 
*/

.coverage-section {
    /* Aseguramos que la sección tenga espacio arriba y abajo */
    padding-top: 100px;
    padding-bottom: 120px; /* Un poco más abajo para compensar visualmente el peso de la galería */
}

.content-split-premium {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

/* 1. Galería en Cuadrícula Simétrica (2x2) */
.gallery-grid-balanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2.5rem;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(224, 205, 149, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(0.2);
}

.gallery-item:hover img {
    filter: grayscale(0);
    transform: scale(1.08);
}

/* 2. Lista de Cobertura y Detalles */
.city-list-premium {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 3rem;
    margin-bottom: 3.5rem;
}

.city-list-premium li {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-left: 20px;
    position: relative;
}

.city-list-premium li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--olive);
    border-radius: 50%;
}

.coverage-note {
    display: block;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 2.5rem; /* Aumentado para separar del botón */
    opacity: 0.6;
}

/* 3. Responsive */
@media (max-width: 992px) {
    .coverage-section {
        padding-top: 60px;
        padding-bottom: 80px; /* Espacio ajustado para móviles */
    }

    .content-split-premium {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .gallery-grid-balanced {
        gap: 15px;
        margin-bottom: 2rem; /* Separación extra cuando la galería queda arriba */
    }
}

@media (max-width: 480px) {
    .city-list-premium {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
    SECCIÓN: SERVICIOS (FLOTADO PREMIUM - CORRECCIÓN DE ESPACIADO)
================================================================ 
*/

#servicios {
    padding-top: 100px;
    padding-bottom: 140px; /* Espacio extra para que la sombra y elevación respiren */
}

.services-intro {
    text-align: center;
    margin-bottom: 6rem;
}

.services-grid-premium {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem 3rem; 
}

.service-card-v3 {
    background: rgba(255, 255, 255, 0.02); 
    flex: 0 1 calc(33.333% - 2.5rem);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* EFECTO FLOTANTE INICIAL */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-image-box {
    position: relative;
    margin-bottom: 0; 
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.service-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--olive-dark);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-elegant);
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 2;
}

.service-details {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--olive); /* Blanco para jerarquía */
    letter-spacing: 1px;
}

.service-details p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: justify;
    color: var(--olive); /* Blanco suavizado para legibilidad */
    flex-grow: 1;
}

/* HOVER: Elevación Máxima */
.service-card-v3:hover {
    transform: translateY(-20px); 
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6); 
    border-color: rgba(224, 205, 149, 0.2);
}

.service-card-v3:hover .service-image-box img {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .service-card-v3 {
        flex: 0 1 calc(50% - 2rem);
    }
}

@media (max-width: 992px) {
    #servicios {
        padding-top: 80px;
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    .service-card-v3 {
        flex: 0 1 100%;
        max-width: 450px;
    }
    
    .services-grid-premium {
        gap: 4rem;
    }
}

/* ================================================================
   SECTION: CORPORATE WELLNESS (ANTI-OVERFLOW EDIT)
================================================================ */

#corporate-wellness {
    overflow-x: hidden; /* Garantía extra contra elementos que se asomen */
    width: 100%;
}

.about-content-split {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem); /* Espaciado fluido */
    flex-wrap: wrap;
}

.about-image-block, 
.about-text-block {
    flex: 1;
    /* Bajamos a 280px para evitar desbordar en móviles de 320px */
    min-width: 280px; 
    max-width: 100%;
}

.about-us-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.corporate-details {
    display: grid;
    /* Ajuste de grid para que no rompa en pantallas pequeñas */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-column h4 {
    font-family: var(--font-elegant);
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 5px;
}

.clean-list {
    list-style: none;
}

.clean-list li {
    font-family: var(--font-body);
    font-size: 0.9rem; /* Ligeramente más pequeño para evitar saltos de línea feos */
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start; /* Alineación arriba por si el texto es largo */
    gap: 8px;
}

.ideal-for {
    margin-bottom: 2.5rem;
    padding: 1.2rem;
    background-color: rgba(93, 102, 88, 0.05);
    border-left: 2px solid var(--olive);
    /* Asegura que el texto no toque el borde derecho */
    word-wrap: break-word; 
}

/* Responsive */
@media (max-width: 992px) {
    .about-content-split {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .about-image-block, 
    .about-text-block {
        min-width: 100%; /* Ocupa todo el ancho disponible */
    }
    
    .about-text-block {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .corporate-details {
        grid-template-columns: 1fr; /* Una sola columna en móviles muy pequeños */
    }
}

/* ================================================================
   SECTION: TRUST & COMMITMENT (FLOATING GRID SYSTEM)
================================================================ */

.trust-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto; /* Aumentamos margen para que floten */
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem; /* Más espacio entre elementos flotantes */
    text-align: center;
}

.trust-item {
    background-color: var(--white); /* El elemento tiene fondo para separarse */
    padding: 3rem 2.5rem;
    border-radius: var(--transition); /* Usamos la transición para la curva */
    
    /* EFECTO FLOTANTE BASE */
    transition: var(--transition);
    border: 1px solid rgba(0, 187, 119, 0.05); /* Toque de color estilo sutil */
    
    /* SOMBRA PROFUNDA Y DIFUSA (Wellness) */
    box-shadow: 0 15px 40px rgba(93, 102, 88, 0.08); /* Sombra en tono olive */
    
    /* ESTADO INICIAL PARA LA ANIMACIÓN (data-aos) */
    transform: translateY(0);
}

.trust-icon-wrapper {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: block;
    line-height: 1;
}

.trust-item h3 {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.trust-item p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0; /* Limpiamos márgenes */
    opacity: 0.8;
}

/* HOVER: Elevación Máxima y Sombra Progresiva */
.trust-item:hover {
    transform: translateY(-20px); /* Elevación clara */
    box-shadow: 0 30px 60px rgba(93, 102, 88, 0.15); /* Sombra más fuerte */
    border-color: rgba(0, 187, 119, 0.2); /* El color estilo se ilumina */
}

/* Ajustes para móviles: Botones a lo ancho y menos padding */
@media (max-width: 768px) {
    .trust-grid {
        gap: 2.5rem;
    }
    
    .trust-item {
        padding: 2rem;
    }
    
    .trust-item:hover {
        transform: translateY(-10px); /* Elevación menor en móvil */
    }
}

/* ================================================================
   SECTION: SITE FOOTER (ULTRA-PREMIUM - DEEP GREEN EDIT)
================================================================ */

.site-footer {
    background-color: var(--olive-dark); /* Tu nuevo verde bosque profundo */
    color: var(--white);
    padding: 100px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Branding más ancho */
    gap: 4rem;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(249, 249, 247, 0.1); 
}

.footer-logo {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: #F1E5AC; /* Tono Champán para máxima legibilidad y lujo */
}

.accent-olive {
    color: var(--white);
}

.footer-title {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #F1E5AC; /* Consistencia en títulos sobre verde oscuro */
}

.footer-tagline, .footer-col p {
    color: var(--white);
    opacity: 0.9; /* Subimos opacidad para que no se pierda en el verde */
    font-size: 0.95rem;
}

/* Color específico para el texto resaltado en la ubicación del footer */
.location-col strong {
    color: #F1E5AC; /* Tono champán para que resalte sobre el verde bosque */
    font-weight: 600; /* Aseguramos que mantenga su peso visual */
    text-transform: uppercase; /* Opcional: para darle un toque más premium */
    letter-spacing: 1px;
}

.contact-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.8rem;
    opacity: 0.85;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--estilo); /* El verde neón resalta perfecto aquí */
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    color: #F1E5AC; /* Iconos en champán */
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* Bottom Copyright */
.footer-bottom {
    padding-top: 40px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.4;
    text-transform: uppercase;
    color: var(--white);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ================================================================
    FLOATING WHATSAPP BUTTON & PULSE ANIMATION (ANTI-OVERFLOW)
================================================================ */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--estilo);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 187, 119, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer; /* Importante al no tener href */
    border: none;
    outline: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 187, 119, 0.5);
}

/* El anillo de pulso corregido */
.pulse-ring {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--estilo);
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
    opacity: 0.7;
    pointer-events: none; /* Evita interferencia con clics */
    will-change: transform, opacity; /* Optimización de rendimiento */
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    /* Reducimos ligeramente el scale a 1.5 para mayor seguridad */
    100% {
        transform: scale(1.5); 
        opacity: 0;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 28px;
    }
}