/*
Theme Name: GL Mexicana
Theme URI: https://tusitio.com/mi-tema
Author: Tu Nombre
Author URI: https://tusitio.com
Description: Un tema creado totalmente desde cero.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mi-primer-tema
*/

/* =========================================
   0. RESET UNIVERSAL
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box !important;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    
    /* 🚨 LA CURA DEFINITIVA 🚨 
       'clip' corta todo lo que sobra de la pantalla (evitando que tiemble) 
       SIN romper el efecto sticky (A diferencia del viejo 'hidden') */
    overflow-x: clip; 
}

/* =========================================
   ESTILOS GENERALES
   ========================================= */

/* Activa el scroll fluido para toda la página web */
html {
    scroll-behavior: smooth;
}

/* Cambiar color de los títulos */
h1, h2, h3, h4, h5, h6 {
    color: var(--green-color);
}

/* Cambiar color de fondo del sitio */
body {
    background-color: var(--bg-blue-color);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 48px; 
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Estilo de enlaces */
a {
    color: var(--blue-color);
    text-decoration: none!important;
}
a:hover {
    color: var(--green-color);
    transition: all 0.3s ease
}

/* Contenedor principal del contenido (fuera del slider) */
.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Botones Generales */
button,
input[type="submit"] {
    background-color: var(--green-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}
button:hover,
input[type="submit"]:hover {
    background-color: ;
}

/* =========================================
   BOTONES GENERALES (CTA)
   ========================================= */

/* Botón Primario estilo Apple Store (Pastilla Azul) */
.btn-primary {
    display: inline-block; /* Necesario para que el enlace acepte padding y medidas */
    padding: 14px 36px; /* Relleno generoso para que se sienta "presionable" */
    background: var(--blue-color); /* Usamos tu degradado corporativo */
    color: var(--white-color); /* Texto blanco para máximo contraste */
    font-size: 1.05rem;
    font-weight: 600; /* Un peso seminegro para autoridad */
    text-decoration: none; /* Quitamos el subrayado feo de los links */
    border-radius: 50px; /* La clave: bordes totalmente redondos (pastilla) */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Transición suave estilo iOS */
    border: none; /* Por si alguna vez lo usas en un <button> real */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.2); /* Sombra sutil azulada */
}

/* Efecto Hover: Sutil y elegante */
.btn-primary:hover {
    /* Apple no suele cambiar de color drásticamente, 
       sino que baja un poco la opacidad o crece sutilmente */
    opacity: 0.9; 
    transform: scale(1.03) translateY(-2px); /* Crece y sube un poquito */
    background: var(--green-color);
    color: var(--white-color);
}

/* Efecto Click (Active): Para que se sienta táctil */
.btn-primary:active {
    transform: scale(0.98) translateY(0); /* Se "hunde" al hacer clic */
    box-shadow: 0 2px 5px rgba(0, 82, 204, 0.2);
}

/* =========================================
   NAVEGACIÓN (Menú Apple Style)
   ========================================= */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 0 40px;
    z-index: 9999;
    border-bottom: 1px solid rgba(0,0,0,0.1); 
}

nav .logo {
    margin-right: 40px;
}

nav .logo a {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--black-color);
    text-decoration: none;
}

nav .menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav .menu li {
    position: relative;
}

nav .menu a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--blue-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav .menu a:hover {
    color: var(--green-color);
}

/* Submenús */
nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 0 0 12px 12px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.98); 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav .sub-menu li {
    padding: 8px 0;
}

nav .sub-menu a {
    color: var(--blue-color);
    font-size: 13px;
    text-decoration: none;
    /* 🚨 LA MAGIA: Animamos TODO el elemento usando tu curva premium favorita 🚨 */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

nav .sub-menu a:hover {
    color: var(--green-color);
    transform: translateX(5px);
}

/* Animación al hover del submenú */
nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Social media links */
nav .social {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 40px;
    padding: 0;
    gap: 15px;
}

nav .social a {
    font-size: 18px; 
    color: var(--blue-color);
    transition: color 0.3s ease;
    display: block;
}

nav .social a:hover {
    color: var(--green-color); 
    transform: translateY(-2px);
}

/* =========================================
   EL CAPRICHO DEL CLIENTE: SÍMBOLO ® EN LOGOS
   ========================================= */

/* 1. Símbolo ® en el Header (Navegación) */
nav .logo a {
    position: relative;
    display: inline-block; 
}

nav .logo a::after {
    content: '®';
    position: absolute;
    top: 0px; 
    right: -12px; 
    font-size: 10px; 
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--blue-color);
}

/* 2. Símbolo ® en el Footer (Hack Matemático) */
.brand-col {
    position: relative; /* Convertimos la columna en el punto de anclaje */
}

.brand-col::before {
    content: '®';
    position: absolute;
    top: -2px; /* Ajusta este valor si lo quieres más arriba o más abajo */
    left: 145px; /* Tu logo mide 150px, así que esto lo posiciona justo en la orilla */
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--blue-color);
    z-index: 10;
}

/* 3. Blindaje para el Modo Oscuro */
body.dark-mode nav .logo a::after,
body.dark-mode .brand-col::before {
    color: #ffffff !important;
}

/* =========================================
   SLIDER PARALLAX (ESTRUCTURA)
   ========================================= */

.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle, #f0f8ff, #e0eef0);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Las Capas (Layers) - CORREGIDO */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* El mouse atraviesa las capas */
    
    /* Movimiento fluido */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Centrado interno */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- REGLA NUEVA IMPORTANTE --- */
/* Esto obliga a las imágenes a respetarel tamaño de la pantalla */
.layer img {
    opacity: 1 !important; 
    visibility: visible !important;
    max-width: 100%;     /* No permite que sean más anchas que la pantalla */
    max-height: 100%;    /* No permite que sean más altas que la pantalla */
    object-fit: contain; /* Mantiene la proporción perfecta */
    display: block;
}

/* Clase especial para la imagen de fondo (esta sí debe cubrir todo) */
.layer-bg {
    width: 110% !important;     /* Forzamos que sea más grande */
    height: 110% !important;
    max-width: none !important; /* Anulamos el límite anterior para el fondo */
    max-height: none !important;
    object-fit: cover !important;
}

/* =========================================
   ESTILOS ESPECÍFICOS DEL HERO (FINAL BLANCO)
   ========================================= */

/* 1. CONTENEDOR DE TEXTO */
.layer.texto-hero {
    pointer-events: auto;
    z-index: 50; /* ¡IMPORTANTE! Lo subimos mucho para que flote ENCIMA del polvo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alineado a la izquierda */
    text-align: left;
    padding-left: 15%; 
    padding-right: 5%;
    width: 100%;
    box-sizing: border-box;
}

/* 2. TEXTOS EN BLANCO PURO */

/* Subtítulo */
.hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 15px;
    
    /* FORZAMOS EL BLANCO */
    color: var(--white-color) !important; 
    
    /* Sombra negra suave para que se lea sobre cualquier fondo */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); 
}

/* Título Principal (H2) */
.layer.texto-hero h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    
    /* FORZAMOS EL BLANCO */
    color: var(--white-color) !important; 
    
    /* Sombra más fuerte para separar del fondo verde/polvo */
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

/* Descripción */
.hero-desc {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 35px;
    font-weight: 500;
    margin-left: 0;
    
    /* FORZAMOS EL BLANCO */
    color: var(--white-color) !important; 
    
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* 3. BOTONES SÓLIDOS (Anti-transparencia) */

.hero-buttons {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 51; /* Asegura que los botones estén incluso sobre el texto */
}

/* Botón 1: Verde Relleno */
.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* PROPIEDADES FORZADAS CON !important */
    background-color: var(--green-color) !important;
    color: var(--white-color) !important;
    border: 2px solid var(--green-color) !important;
    opacity: 1 !important; /* Esto quita la transparencia fantasma */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important; /* Sombra negra para resaltar */
}

.btn-hero:hover {
    background-color: var(--blue-color) !important;
    text-decoration: none;
    border-color: var(--blue-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4) !important;
}

/* Botón 2: Outline (Borde Blanco) */
.btn-hero.outline {
    /* Fondo transparente REAL, pero borde blanco visible */
    background-color: transparent !important;
    border: 2px solid var(--white-color) !important;
    color: var(--white-color) !important;
    box-shadow: none !important;
}

.btn-hero.outline:hover {
    background-color: var(--white-color) !important;
    color: var(--green-color) !important; /* Letra verde al pasar el mouse */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3) !important;
}

/* =========================================
   DARK MODE TOGGLER
   ========================================= */

.dark-toggle {
    margin-left: 20px;
    font-size: 14px;
    color: var(--black-color);
    cursor: pointer;
}

.dark-toggle input {
    margin-right: 8px;
    cursor: pointer;
}

/* Contenedor del switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--blue-color);
}

/* Ocultamos el checkbox */
.switch input {
  display: none;
}

/* El "slider" visual */
.switch .slider {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: var(--blue-light-color);
  border-radius: 50px;
  transition: background-color 0.3s ease, box-shadow 0.7s ease;
  overflow: hidden; /* para que los íconos no se salgan */
}

/* El círculo dentro del slider */
.switch .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: var(--white-color);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Íconos dentro del slider */
.switch .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* centra verticalmente */
  font-size: 14px;
  line-height: 1;              /* evita que se desplace por altura extra */
  color: var(--white-color);
}

.switch .sun {
  left: 6px;
  opacity: 1;
  color: var(--green-color);
}

.switch .moon {
  right: 8px;
  opacity: 0;
  color: var(--green-color);
}

/* Estado activo (ON) */
.switch input:checked + .slider {
    background-color: var(--green-color);
    box-shadow: 0 0 10px rgba(84,176,70,0.6);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* Animación de íconos */
.switch input:checked + .slider .sun {
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
}

.switch input:checked + .slider .moon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Texto al lado */
.switch .label-text {
  font-weight: 500;
}

/* =========================================
   BARRA DE ADMIN (Ajustes Técnicos)
   ========================================= */

.admin-bar nav {
    top: 32px;
    height: 48px;
}

/* 🚨 NUEVO: Bajamos el menú pegajoso cuando detecta la barra negra de WordPress 🚨 */
.admin-bar .sticky-services-nav {
    top: 80px; /* 48px del menú + 32px de la barra negra */
}

@media screen and (max-width: 782px) {
    .admin-bar nav {
        top: 46px;
    }
    /* Ajuste de la barra negra para celulares */
    .admin-bar .sticky-services-nav {
        top: 94px; /* 48px del menú + 46px de la barra negra móvil */
    }
}

/* =========================================
   LOGICA "ORBITAL WHEEL" (Fondo Fijo)
   ========================================= */

/* 1. FONDO ESTÁTICO DETRÁS DE TODO */
.static-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Al fondo */
}

.static-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Transición suave para los fondos dinámicos del Hero */
.static-background.slider-bg {
    transition: opacity 1s ease-in-out;
}

/* 2. CONTENEDOR DEL SLIDE (La Rueda Invisible) */
.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* EL SECRETO DE LA RUEDA: */
    /* Ponemos el punto de pivote MUY abajo (250% de la altura) */
    /* Así, al rotar, hace un arco amplio como una rueda gigante */
    transform-origin: 50% 250%; 
    
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    
    /* Estado inicial: Rotado y fuera */
    transform: translateX(100%) rotate(20deg); 
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bounce suave */
}

/* Estado Activo (En el centro) */
.slide-container.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translateX(0%) rotate(0deg); /* Se endereza */
}

/* --- ANIMACIONES DE SALIDA Y ENTRADA --- */

/* Clase para cuando entra desde la derecha (Next) */
.slide-container.enter-right {
    animation: orbitInRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Clase para cuando entra desde la izquierda (Prev) */
.slide-container.enter-left {
    animation: orbitInLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Clase para cuando SALE hacia la izquierda */
.slide-container.exit-left {
    animation: orbitOutLeft 0.8s ease-in forwards;
}

/* Clase para cuando SALE hacia la derecha */
.slide-container.exit-right {
    animation: orbitOutRight 0.8s ease-in forwards;
}

/* --- KEYFRAMES (LA FÍSICA) --- */

@keyframes orbitInRight {
    0% { opacity: 0; transform: translateX(80%) rotate(25deg); }
    100% { opacity: 1; transform: translateX(0%) rotate(0deg); }
}

@keyframes orbitInLeft {
    0% { opacity: 0; transform: translateX(-80%) rotate(-25deg); }
    100% { opacity: 1; transform: translateX(0%) rotate(0deg); }
}

@keyframes orbitOutLeft {
    0% { opacity: 1; transform: translateX(0%) rotate(0deg); }
    100% { opacity: 0; transform: translateX(-80%) rotate(-25deg); }
}

@keyframes orbitOutRight {
    0% { opacity: 1; transform: translateX(0%) rotate(0deg); }
    100% { opacity: 0; transform: translateX(80%) rotate(25deg); }
}

/* --- INERCIA INTERNA (ELEMENTOS FLOTANDO) --- */
/* Esto hace que la cápsula y el texto "lleguen tarde" a la rotación */
.slide-container.animating .layer:nth-child(2) { transition-delay: 0.1s; } 
.slide-container.animating .layer:nth-child(3) { transition-delay: 0.2s; } 
.slide-container.animating .texto-hero         { transition-delay: 0.3s; } 
.slide-container.animating .layer:last-child   { transition-delay: 0.4s; }

/* Estilos de flechas (se mantienen igual) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.slider-arrow:hover {
    background: #fff;
    color: var(--green-color);
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* =========================================
   SECCIÓN QUIÉNES SOMOS (Premium Clean)
   ========================================= */

.section-about {
    position: relative;
    background-color: var(--bg-blue-color); /* <--- Faltaban los dos guiones (--) */
    padding: 120px 0; 
    overflow: hidden;
}

.site-container {
    max-width: 1100px; /* Ancho contenido para lectura cómoda */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* --- COLUMNA TEXTO --- */
.about-content {
    flex: 1;
    z-index: 2;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-color); /* Tu verde corporativo */
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 3.5rem; /* Tipografía Gigante */
    line-height: 1.1;
    color: var(--blue-color); /* Negro suave Apple */
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--dark-gray-color); /* Gris medio para texto secundario */
    margin-bottom: 20px;
    font-weight: 400;
}

.about-content strong {
    color: var(--green-color);
    font-weight: 600;
}

/* Enlace estilo Apple */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-color);
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 15px; /* La flecha se mueve al hacer hover */
    text-decoration: none;
    color: var(--green-color);
}

/* --- COLUMNA VISUAL --- */
.about-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; /* Altura fija para controlar la composición */
}

/* Marca de Agua (El logo sutil detrás) */
.visual-logo-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05; /* Muy sutil, apenas visible */
    transform: scale(1.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}
.visual-logo-bg img {
    width: 80%;
    filter: grayscale(100%);
}

/* La Foto Principal */
.visual-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 24px; /* Bordes redondeados modernos */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Sombra suave y difusa (Elevation) */
    
    /* Opcional: Si tienes la foto recortada (sin fondo) */
    /* object-fit: contain; */
    
    /* Opcional: Si usas la foto cuadrada completa */
    object-fit: cover;
    height: 100%;
}

/* RESPONSIVE (Móvil) */
@media screen and (max-width: 900px) {
    .site-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .about-content h3 {
        font-size: 2.5rem;
    }
    
    .link-arrow {
        justify-content: center;
    }

    .about-visual {
        width: 100%;
        height: auto;
        margin-top: 40px;
    }
}

/* =========================================
   ANIMACIONES SCROLL (APPLE STYLE)
   ========================================= */

/* Estado Inicial (Invisible y desplazado hacia abajo) */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98); /* Un poco más abajo y apenas más pequeño */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); /* La Curva Mágica */
    will-change: opacity, transform; /* Optimización para el navegador */
}

/* Estado Final (Visible y en su sitio) */
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- RETRASOS (STAGGER) --- */
/* Esto hace que los elementos aparezcan en cascada, no todos de golpe */

.delay-1 { transition-delay: 0.1s; } /* Título */
.delay-2 { transition-delay: 0.2s; } /* Párrafo 1 */
.delay-3 { transition-delay: 0.3s; } /* Párrafo 2 */
.delay-4 { transition-delay: 0.4s; } /* Botón / Imagen */

/* =========================================
   SECCIÓN VALORES (BENTO GRID)
   ========================================= */

.section-values {
    padding: 100px 0;
    background-color: var(--bg-blue-color); 
}

/* 🚨 LA MAGIA: Obliga al contenedor a soltar las columnas y apilar hacia abajo 🚨 */
.section-values .site-container {
    display: block !important;
}

.values-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centramos la etiqueta verde */
.values-header .section-label {
    text-align: center;
    margin-bottom: 15px;
}

/* Centramos el título gigante */
.values-header h2 {
    font-size: 3.5rem;
    color: var(--blue-color);
    letter-spacing: -2px;
    line-height: 1.2;
    text-align: center; 
    margin: 0;
}

/* --- EL GRID SYSTEM --- */
.bento-grid {
    display: grid;
    /* Creamos una cuadrícula de 3 columnas y 2 filas */
    grid-template-columns: 1.5fr 1fr 1fr; 
    grid-template-rows: 280px 280px; 
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- ESTILOS DE LAS TARJETAS (CÁPSULAS) --- */
.bento-card {
    background: var(--white-color); /* Gris Apple */
    border-radius: 30px; /* Bordes muy redondeados */
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 1. Modifica la regla general del hover */
.bento-card:hover {
    transform: translateY(-5px); /* Solo se mueve hacia arriba */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Más sombra */
}

.bento-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--blue-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* --- PERSONALIZACIÓN POR TARJETA --- */

/* 1. MISIÓN (Ocupa 2 filas de alto en la col 1) */
.card-mission {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Se estira verticalmente */
    background: var(--blue-color); /* Fondo Azul oscuro para destacar */
}

/* 3. La tarjeta azul (Misión) se queda azul, quizás un poco más brillante */
.card-mission:hover {
    background: var(--blue-color); /* Un tono apenas más claro del azul original */
}

.card-mission h3 { color: rgba(255,255,255,0.6); }
.card-mission .big-statement {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white-color); /* Texto blanco */
}

.card-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.05;
    color: var(--white-color);
    transform: rotate(-15deg);
}

/* 2. VISIÓN (Fila 1, Col 2 y 3) */
.card-vision {
    grid-column: 2 / 4; /* Ocupa 2 espacios a lo ancho */
    background: var(--white-color);
    border: 1px solid var(--green-color);
    align-items: center;
    text-align: center;
}

/* 2. Agrega esto para las tarjetas claras (Visión y ADN) */
.card-vision:hover, 
.card-dna:hover {
    background: var(--white-color); /* Estas sí se ponen blancas puras */
    border-color: transparent;
}

.vision-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--green-color);
    line-height: 1;
    margin-bottom: 10px;
}

/* 3. ADN (Fila 2, Col 2) */
.card-dna {
    grid-column: 2 / 3;
}

.dna-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dna-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black-minus-color);
}

.dna-list li i { color: var(--green-color); }

/* 4. IMAGEN (Fila 2, Col 3) */
/* CAMBIO PARA FOTO DE BLISTER COMPLETA */
.card-image {
    grid-column: 3 / 4;
    padding: 0; 
    overflow: hidden; /* Asegura que la foto no se salga de los bordes redondos */
    background: var(--white-color); /* Fondo neutro por si acaso */
}

.card-image img {
    width: 100%;      /* Ancho total */
    height: 100%;     /* Alto total */
    object-fit: cover; /* CLAVE: Recorta la imagen para llenar el espacio sin deformarla */
    transition: transform 0.5s ease;
}

.card-image:hover img {
    transform: scale(1.1); /* Efecto zoom suave al pasar el mouse */
}

/* --- RESPONSIVE (MÓVIL) --- */
@media screen and (max-width: 900px) {
    .bento-grid {
        display: flex;
        flex-direction: column; /* En móvil se apilan */
        height: auto;
    }
    
    .card-mission { height: auto; padding: 60px 30px; }
    .card-vision { padding: 40px 20px; }
    .bento-card { min-height: 250px; }

    /* 🚨 PARCHE PARA CENTRAR EL ADN EN MÓVIL 🚨 */
    .card-dna {
        align-items: center !important; /* Centra el título y el contenedor de la lista */
    }

    .dna-list {
        width: fit-content !important; /* La caja se encoge al tamaño exacto de la palabra más larga */
        margin: 0 auto !important; /* Mueve la caja entera al centro de la tarjeta blanca */
        padding-right: 15px; /* Un pequeño ajuste óptico para compensar el ancho del icono */
    }
}

/* ==============================================================
   SECCIÓN NAVEGACIÓN SERVICIOS (APPLE SWITCH & FLUID ANIMATIONS)
   ============================================================== */

.section-navigation {
    padding: 100px 0;
    background: var(--bg-blue-color);
    overflow: hidden;
}

.section-navigation .site-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    flex-wrap: wrap;
}

/* --- COLUMNA IZQUIERDA --- */
.nav-header-column {
    flex: 0 0 320px;
    position: sticky;
    top: 120px;
    z-index: 10;
}

.nav-header h2 {
    font-size: 2.8rem;
    color: var(--blue-color);
    text-align: center;
    line-height: 50px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.nav-header p {
    text-align: center; 
}

.nav-header-column .section-label {
    text-align: center;
    display: block; /* Asegura que tome todo el ancho para poder centrarse */
}

/* --- EL SWITCH IOS (Horizontal Estilo Apple) --- */
.ios-switch-container {
    margin-top: 30px;
    width: fit-content; /* Se ajusta al tamaño de los botones */
}

.switch-track {
    position: relative;
    background: var(--bg-blue-dark-color); /* Gris claro Apple */
    border-radius: 50px; /* Bordes totalmente redondos (Pill shape) */
    padding: 4px;
    display: flex;
    flex-direction: row; /* ¡AQUÍ ESTÁ LA CLAVE! Horizontal */
    gap: 0; /* Sin espacio entre botones para que el cálculo sea exacto */
    width: auto;
    min-width: 320px; /* Ancho mínimo para que se vea bien */
    height: 50px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06); /* Sombra interna sutil */
}

.switch-btn {
    flex: 1; /* Ambos botones ocupan el mismo espacio (50%) */
    position: relative;
    z-index: 2;
    background: transparent !important;
    border: none !important;
    padding: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-color);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch-btn.active {
    color: var(--blue-color)!important;
}

/* Quitamos la flecha verde, en este diseño no va */
.switch-btn.active::after { display: none; }

/* El Glider (La pastilla blanca) */
.switch-glider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px); /* Ocupa la mitad exacta menos el padding */
    height: calc(100% - 8px);
    background: var(--white-color);
    border-radius: 40px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04); /* Sombra flotante */
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MOVIMIENTO HORIZONTAL */
/* Cuando activamos el paso 2, se mueve al 100% de su ancho a la derecha */
.switch-track.step-2 .switch-glider {
    transform: translateX(100%);
}

/* --- COLUMNA DERECHA (Grid) --- */
.nav-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
    width: 100%;
}

/* --- TARJETAS --- */
.nav-card {
    background: var(--white-color) !important;
    border-radius: 24px;
    padding: 0 !important; /* Importante quitar el padding viejo */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Mantenemos tu magia de animación intacta */
    opacity: 0; 
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* --- ZONA SUPERIOR (EL COLOR Y LA CURVA) --- */
.card-top {
    position: relative;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.4s ease;
}

/* Paleta de fondos pasteles elegantes */
.bg-blue { background-color: var(--blue-cake-color); }
.bg-green { background-color: var(--green-cake-color); }
.bg-yellow { background-color: var(--yellow-cake-color); }
.bg-pink { background-color: var(--pink-cake-color); }

/* La imagen de tu producto flotando */
.card-hero-img {
    position: relative;
    z-index: 2;
    width: 60%; 
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); /* Sombra 3D */
}

/* Efecto levitación al pasar el mouse */
.nav-card:hover .card-hero-img {
    transform: scale(1.15) translateY(-5px);
}

/* El SVG Curvo Mágico */
.card-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1;
}

/* --- ZONA INFERIOR (LOS TEXTOS) --- */
.card-bottom {
    background: var(--white-color);
    padding: 20px 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.card-bottom h3 { 
    font-size: 1.15rem; 
    color: var(--blue-color); 
    font-weight: 700; 
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.card-bottom .link-arrow {
    font-size: 0.95rem; 
    color: var(--blue-color); 
    font-weight: 600;
    margin-top: 10px; 
    opacity: 0; 
    transform: translateY(10px); 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-card:hover .link-arrow { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- ANIMACIONES --- */
@keyframes fadeInArrow { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .section-navigation .site-container { flex-direction: column; }
    .nav-header-column { width: 100%; text-align: center; }
    /* Ajuste Switch Móvil */
    .switch-track { flex-direction: row; height: 50px; align-items: center; }
    .switch-btn { padding: 0; justify-content: center; text-align: center; }
    .switch-glider { width: 49%; height: 42px; }
    .switch-track.step-2 .switch-glider { transform: translateX(100%); } /* En móvil se mueve lateral */
    .switch-btn.active::after { display: none; }
}

/* ==============================================================
   FLOATING BUTTONS
   ============================================================== */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-buttons .btn {
  width: 48px;
  height: 48px;
  background-color: var(--blue-light-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
}

/* Colores específicos */
.floating-buttons .phone {
  background-color: var(--green-color);
}

.floating-buttons .facebook {
  background-color: var(--facebook-color); /* azul Facebook */
}

/* 🚨 NUEVO: COLOR DE INSTAGRAM 🚨 */
.floating-buttons .instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white-color);
}

.floating-buttons .whatsapp {
  background-color: var(--whatsapp-color); /* verde WhatsApp */
}

.floating-buttons .back-to-top {
  background-color: var(--blue-color);
  color: var(--white-color);
}

/* Animación premium al aparecer */
.back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   BOTÓN DE TELÉFONO DESPLEGABLE (APPLE STYLE)
   ========================================= */
.floating-phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-flyout {
    position: absolute;
    right: 60px; /* Sale hacia la izquierda del botón principal */
    
    /* Efecto Vidrio Esmerilado de iOS */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    
    border: 1px solid #d2d2d7;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Escondido por defecto */
    opacity: 0;
    visibility: hidden;
    
    /* Animación Bézier: Entra desde adentro del botón verde */
    transform: translateX(15px) scale(0.9);
    transform-origin: right center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap; /* Evita que los textos se rompan en dos renglones */
}

/* La Magia: Al pasar el mouse en PC o hacer Tap en Móvil */
.floating-phone-wrapper:hover .phone-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.flyout-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px; /* Espacio entre el nombre y el iconito */
    color: var(--black-minus-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 12px 18px;
    border-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease;
}

.flyout-link:hover {
    background: var(--bg-blue-color);
    color: var(--blue-color);
}

.flyout-link i {
    color: var(--green-color);
    font-size: 0.9rem;
}

/* =========================================
   BLINDAJE MODO OSCURO PARA EL MENÚ
   ========================================= */
body.dark-mode .phone-flyout {
    background: rgba(28, 28, 30, 0.85);
    border-color: #38383a;
}

body.dark-mode .flyout-link {
    color: #ebebf5;
}

body.dark-mode .flyout-link:hover {
    background: #2c2c2e;
    color: #ffffff;
}

/* ==============================================================
   LOGO
   ============================================================== */
/* Logo en modo claro */
.logo-light {
  display: block;
  max-height: 30px; /* ajusta según tu header */
  height: auto;
  width: auto;
}

.logo-dark {
  display: none;
  max-height: 30px;
  height: auto;
  width: auto;
}

/* Transición general para imágenes del logo */
.logo img {
  transition: opacity 0.3s ease;
}

/* =========================================
   FOOTER (ESTILO APPLE MINIMALISTA)
   ========================================= */

/* --- EL CONTENEDOR PRINCIPAL --- */
.apple-footer {
    background-color: transparent; 
    padding: 80px 0 40px 0;
    color: var(--dark-gray-color);
    font-size: 0.85rem;
}

/* 🚨 EL PARCHE MÁGICO: Obliga al contenido a ir hacia abajo 🚨 */
.apple-footer .site-container {
    display: block !important;
    width: 100%;
}

/* --- NIVEL 1: DIRECTORIO --- */
.footer-directory {
    display: grid;
    /* 🚨 MAGIA: Pasamos de 4 a 5 fracciones, dándole un poco más de espacio a la marca y al contacto */
    grid-template-columns: 2.5fr 1.6fr 1.6fr 1.6fr 2fr; 
    gap: 30px; 
    margin-bottom: 60px;
}

.footer-logo {
    margin-top: 0; 
    width: 150px; 
    margin-bottom: 20px;
    opacity: 0.8;
}

.brand-col p {
    line-height: 1.6;
    max-width: 250px;
    margin: 0; /* Evita márgenes extraños del tema */
}

.footer-col h4 {
    margin-top: 0; 
    color: var(--blue-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-col ul li { 
    margin-bottom: 12px; 
    white-space: nowrap; 
}

.footer-col ul li a {
    color: var(--dark-gray-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover { 
    color: var(--green-color); 
}

/* --- NIVEL 2: ZÓCALO (ESTILO APPLE REAL) --- */
.footer-bottom {
    width: 100%; /* CLAVE: Obliga a que la línea abarque toda la pantalla */
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* Todo pegado a la izquierda */
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-alter-color); /* La línea súper fina */
    flex-wrap: wrap; 
    gap: 15px; /* Espacio horizontal entre el copyright y los legales */
    margin-top: 40px; /* Le damos un poco de aire extra respecto a las columnas */
}

/* CLAVE: Evitamos que WP lo haga 100% de ancho y rompa la línea */
.copyright {
    margin: 0 !important; 
    width: auto !important;
    flex-shrink: 0;
}

/* Contenedor legal */
.footer-legal {
    color: var(--gray-alter-color); /* Color de las barritas separadoras | */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: var(--dark-gray-color);
    text-decoration: none;
    margin: 0 10px; /* Separación de los enlaces */
    transition: color 0.3s ease;
}

.footer-legal a:first-child {
    margin-left: 0; /* Para que el primer enlace quede pegadito a la barrita anterior */
}

.footer-legal a:hover { 
    color: var(--blue-color); 
}

/* =========================================
   RESPONSIVE FOOTER (ESTILO APPLE)
   ========================================= */

@media screen and (max-width: 900px) {
    .footer-directory { 
        grid-template-columns: 1fr 1fr; 
        gap: 40px 20px; 
    }
    
    /* Zócalo móvil: Alineado a la izquierda para mantener la armonía */
    .footer-bottom { 
        flex-direction: column; 
        justify-content: flex-start; /* Alineamos a la izquierda */
        align-items: flex-start; /* Alineamos a la izquierda */
        text-align: left; /* Quitamos el centrado */
        gap: 15px; 
        padding-top: 30px;
    }

    .footer-legal {
        justify-content: flex-start; /* Enlaces legales a la izquierda */
        line-height: 2; 
    }
    
    .footer-legal a { 
        margin: 0 12px 0 0; /* Ajustamos el margen para que se vea bien a la izquierda */
    }
}

@media screen and (max-width: 600px) {
    /* Agregamos un padding inferior gigante para que los botones flotantes NO tapen el texto */
    .apple-footer {
        padding-bottom: 100px !important; 
    }

    .footer-directory { 
        grid-template-columns: 1fr; 
        gap: 0; /* Cambiamos a 0 para que las líneas del acordeón fluyan juntas */
        text-align: left; 
    }
    
    .brand-col p { 
        max-width: 100%; 
    }

    .footer-logo {
        width: 130px; 
    }

    /* --- ACORDEONES MÓVILES ESTILO APPLE --- */
    .footer-col {
        border-bottom: 1px solid var(--gray-alter-color); /* Línea divisoria elegante */
        padding: 15px 0; /* Espacio para que sea fácil de tocar con el dedo */
    }

    /* Quitamos el borde y ajustamos la primera columna (Logo y texto) */
    .footer-col.brand-col {
        border-bottom: none;
        padding-top: 0;
        padding-bottom: 15px;
    }

    .footer-col h4 {
        font-size: 0.95rem; 
        margin-bottom: 0; /* Quitamos el margen, el padding de arriba controla el espacio */
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* El icono de "+" creado con CSS puro */
    .footer-col h4::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--dark-gray-color);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Ocultamos las listas por defecto en móvil (MÉTODO BÉZIER FLUIDO) */
    .footer-col ul {
        display: block; /* Vital para que la transición de altura funcione */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.4s ease,
                    padding 0.4s ease;
    }

    /* --- ESTADOS ACTIVOS (AL TOCAR) --- */
    /* Cuando se abre, el + gira y se convierte en una x */
    .footer-col.active h4::after {
        transform: rotate(45deg);
        color: var(--blue-color); /* Toque extra: El ícono se pinta de azul al abrir */
    }

    /* Cuando se abre, la caja crece suavemente */
    .footer-col.active ul {
        max-height: 350px; /* Altura máxima para destapar el contenido */
        opacity: 1;
        padding-top: 15px;
        padding-bottom: 5px;
    }

    /* --- CASCADA INTERNA DE LOS ENLACES DEL FOOTER --- */
    .footer-col ul li {
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .footer-col.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Retrasos matemáticos para el efecto cascada */
    .footer-col.active ul li:nth-child(1) { transition-delay: 0.05s; }
    .footer-col.active ul li:nth-child(2) { transition-delay: 0.10s; }
    .footer-col.active ul li:nth-child(3) { transition-delay: 0.15s; }
    .footer-col.active ul li:nth-child(4) { transition-delay: 0.20s; }
    .footer-col.active ul li:nth-child(5) { transition-delay: 0.25s; }

    /* Ajuste final del Zócalo Legal */
    .footer-bottom {
        font-size: 0.8rem; 
        margin-top: 10px;
        padding-top: 25px;
    }
}

/* =========================================
   SECCIÓN DE EXPERIENCIA (MONUMENTO TIPOGRÁFICO)
   ========================================= */

.section-experience {
    /* Un quiebre oscuro y dramático en la página */
    background-color: var(--blue-color); 
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.experience-header {
    margin-bottom: 80px;
}

.experience-header h2 {
    color: var(--white-color); /* Texto blanco sobre fondo oscuro */
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.experience-header p {
    color: var(--bg-blue-color); /* El clásico gris secundario de Apple */
    font-size: 1.2rem;
    font-weight: 400;
}

/* --- EL GRID DE LOS NÚMEROS --- */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 120px; /* Mucho aire entre los números */
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- LA MAGIA DE LOS NÚMEROS GIGANTES --- */
.stat-number {
    font-size: 8rem; /* ¡GIGANTES! */
    font-weight: 700;
    letter-spacing: -4px; /* Apretados para que se vean modernos */
    line-height: 1;
    margin-bottom: 10px;
    
    /* El efecto de degradado tipo "Titanio/Esmeralda" de Apple */
    background: linear-gradient(135deg, var(--white-color) 0%, var(--green-alter-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Sombra sutil para darle profundidad a la luz */
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
}

.stat-label {
    color: var(--bg-blue-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px; /* Letras separadas para contrastar con el número */
    opacity: 0.8;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
    .stats-grid { gap: 60px; }
    .stat-number { font-size: 6rem; letter-spacing: -2px; }
    .experience-header h2 { font-size: 2.2rem; }
}

@media screen and (max-width: 600px) {
    .section-experience { padding: 80px 20px; }
    .stats-grid { flex-direction: column; gap: 50px; }
    .stat-number { font-size: 5rem; }
}

/* =========================================
   SECCIÓN EDITORIAL (SLIDER VERTICAL APPLE)
   ========================================= */

.section-newsroom-vertical {
    background-color: var(--bg-blue-color); 
    padding: 120px 0;
}

.section-newsroom-vertical .site-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- COLUMNA IZQUIERDA (Sidebar) --- */
.news-sidebar {
    flex: 0 0 40%;
}

/* ENCAPSULADO: Solo afecta etiquetas dentro de esta sección */
.section-newsroom-vertical .section-label {
    display: block;
    color: var(--green-color); 
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.news-sidebar h2 {
    font-size: 3rem;
    color: var(--blue-color);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
}

.news-sidebar p {
    color: var(--dark-gray-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Los Controles */
.vertical-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--gray-alter-color);
    background: transparent;
    color: var(--green-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--white-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: transparent;
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    box-shadow: none;
    border-color: var(--gray-alter-color);
}

.btn-view-all {
    font-size: 1.1rem;
    color: var(--blue-color); 
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all:hover { opacity: 0.7; }
.btn-view-all:hover i { transform: translateX(5px); transition: transform 0.3s ease; }

/* --- COLUMNA DERECHA (Ventana) --- */
.news-window {
    flex: 1;
    height: 550px; 
    border-radius: 24px;
    overflow: hidden; 
    background: var(--white-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04); 
}

.news-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}

.news-slide {
    width: 100%;
    height: 100%; 
    flex-shrink: 0; 
}

/* --- INTERIOR DE LA TARJETA (ENCAPSULADO) --- */
.section-newsroom-vertical .card-link-wrapper {
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    color: inherit;
}

.section-newsroom-vertical .card-image { 
    height: 50%; 
    overflow: hidden; 
    background: var(--bg-blue-color);
}

.section-newsroom-vertical .card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease; 
}

.news-slide:hover .card-image img { 
    transform: scale(1.05); 
}

.section-newsroom-vertical .card-content { 
    background-color: var(--white-color);
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    height: 50%; 
}

.section-newsroom-vertical .category-pill { 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    padding: 6px 14px; 
    border-radius: 50px; 
    margin-bottom: 20px; 
}

.pill-blue { background-color: var(--bg-blue-color); color: var(--blue-pill-color); }
.pill-green { background-color: var(--bg-blue-color); color: var(--green-pill-color); }
.pill-gray { background-color: var(--bg-blue-color); color: var(--gray-pill-color); }

.section-newsroom-vertical .card-content h3 { 
    font-size: 1.6rem; 
    color: var(--blue-color); 
    line-height: 1.3; 
    font-weight: 600; 
    margin-top: 0;
    margin-bottom: 20px; 
}

.section-newsroom-vertical .read-more { 
    margin-top: auto; 
    font-size: 1rem; 
    color: var(--dark-gray-color); 
    font-weight: 600; 
    transition: color 0.3s ease; 
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-slide:hover .read-more { 
    color: var(--blue-color); 
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .section-newsroom-vertical .site-container { 
        flex-direction: column; 
        gap: 40px; 
    }
    .news-sidebar { 
        text-align: center; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    .news-window { 
        width: 100%; 
        max-width: 500px; 
        height: 500px; 
    }
}

/* =========================================
   NUEVO BANNER SERVICIOS (ESTILO APPLE)
   ========================================= */
.services-header-apple {
    background-color: var(--bg-blue-color);
    /* Quitamos el padding inferior (ahora es 0) para que la imagen toque el piso */
    padding: 100px 0 0; 
}

.apple-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; /* Mantiene el texto perfectamente centrado */
    gap: 60px;
}

.banner-text h1 {
    font-size: 2.5rem;
    color: var(--blue-color);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 1rem;
    color: var(--dark-gray-color);
    margin-bottom: 30px;
    max-width: 90%;
    line-height: 1.6;
}

/* Los enlaces azules limpios de Apple */
.apple-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--blue-color); /* Tu variable azul */
    font-weight: 500;
    text-decoration: none!important;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.apple-link:hover {
    opacity: 0.7;
}

/* La imagen de la derecha */
/* Le decimos a la columna de la imagen que se caiga hacia el fondo del grid */
.banner-image {
    align-self: end; 
    display: flex; /* Elimina márgenes invisibles del navegador */
}

/* La imagen de la derecha */
.banner-image img {
    width: 100%;
    max-height: 500px; /* Un poco más grande para que luzca imponente */
    object-fit: contain;
    object-position: bottom; /* ¡MAGIA!: Ancla la imagen a la parte más baja de su caja */
    display: block;
}

/* =========================================
   MENÚ STICKY (GLASSMORPHISM + EFECTO 3D)
   ========================================= */
.sticky-services-nav {
    position: sticky;
    top: 48px;
    z-index: 1000;
    /* Fondo ligeramente más sólido para que el texto de abajo no ensucie la lectura al hacer scroll */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: saturate(180%) blur(20px); 
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    
    /* 1. El borde exacto de Apple (Un gris sólido pero sutil) */
    border-bottom: 1px solid #d2d2d7; 
    
    /* 2. La magia 3D: Una sombra amplísima pero casi invisible que crea la "elevación" */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    
    padding: 15px 0;
}

.sticky-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-menu a {
    text-decoration: none;
    color: var(--blue-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sticky-menu a:hover {
    color: var(--green-color);
}

/* =========================================
   BLOQUES EDITORIALES DE SERVICIO
   ========================================= */
.service-block {
    padding: 120px 0;
    background-color: var(--bg-blue-color);
    scroll-margin-top: 70px; /* IMPORTANTE: Para que el menú sticky no tape el título */
}

/* Para alternar colores de fondo y que no sea aburrido */
.service-block:nth-child(even) {
    background-color: var(--bg-blue-color);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* MAGIA 1: Cambiamos 'center' por 'start'. 
       Esto obliga a ambas columnas a pegarse al "techo" de su contenedor */
    align-items: start; 
}

/* Para alternar el orden (Z-Pattern) */
.service-block:nth-child(even) .service-content {
    order: 2; /* Pasa el texto a la derecha */
}
.service-block:nth-child(even) .service-visual {
    order: 1; /* Pasa la imagen a la izquierda */
}

.service-content h2 {
    font-size: 2.8rem;
    /* (Usa el color que ya tengas, ej: color: var(--tu-variable) o var(--black-minus-color);) */
    letter-spacing: -1px;
    /* MAGIA 2: Matamos el margen fantasma de WordPress */
    margin-top: 0; 
    margin-bottom: 20px;
}

.service-content p {
    font-size: 1.1rem;
    color: var(--gray-pill-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.service-specs {
    background: var(--vanilla-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-specs strong { color: var(--black-minus-color); }
.service-specs span { color: var(--dark-gray-color); }

/* --- SELECTOR DE COLOR INTERACTIVO (ESTILO APPLE PREMIUM) --- */
.color-picker-ui {
    margin-top: 25px; /* Separación debajo de la imagen */
    text-align: center; /* Centra el título y la caja de colores */
    width: 100%;
}

.picker-title {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: var(--black-minus-color) !important;
    margin-bottom: 15px !important;
    display: block;
}

/* La caja "Pastilla" gris de fondo estilo iOS */
.color-options {
    display: inline-flex; /* Permite que se centre con el text-align de arriba */
    align-items: center;
    gap: 15px;
    background-color: #f2f2f7; /* El gris exacto que usa Apple */
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04); /* Profundidad levísima interior */
}

/* Los círculos de color (Contenedor base) */
.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    outline: none;
    border: 1px solid rgba(0,0,0,0.08); /* Borde sutil para que el botón blanco no se pierda */
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Estado inactivo: sombras preparadas pero invisibles */
    box-shadow: 0 0 0 0 #f2f2f7, 0 0 0 0 var(--blue-color);
}

/* =========================================
   ASIGNACIÓN DE TUS CLASES Y VARIABLES 
   ========================================= */
.color-dot.blue {
    background-color: var(--blue-dot-color);
}
.color-dot.pink {
    background-color: var(--pink-dot-color);
}
.color-dot.yellow {
    background-color: var(--yellow-dot-color);
}
.color-dot.white {
    background-color: var(--white-dot-color);
}

/* =========================================
   LA MAGIA APPLE: ESTADOS DE INTERACCIÓN
   ========================================= */

/* Efecto hover ligero para invitar al clic (solo si no está activo) */
.color-dot:hover:not(.active) {
    transform: scale(1.05);
}

/* ESTADO ACTIVO (Crea el aro y el espacio vacío mágicamente) */
.color-dot.active {
    transform: scale(0.85); /* 1. Se encoge hacia el centro */
    border-color: transparent; /* 2. Ocultamos el borde normal */
    
    /* 3. La doble sombra:
       La primera (4px) es del mismo gris de la caja, creando la ilusión de un hueco.
       La segunda (6px) usa tu variable corporativa para pintar el aro exterior. */
    box-shadow: 0 0 0 4px #f2f2f7, 0 0 0 6px var(--blue-color) !important;
}

/* --- IMAGEN DEL SERVICIO --- */
.visual-frame {
    border-radius: 24px; /* Esquinas redondeadas idénticas a tu referencia */
    overflow: hidden; /* Vital: obliga a la foto a respetar las esquinas redondas */
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1; 
    /* Le agregamos una sombra levísima para que la foto se separe del fondo blanco */
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); 
}

.visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Magia pura: hace que la foto llene el cuadro sin aplastarse ni deformarse */
    transition: opacity 0.4s ease, transform 0.6s ease;
}

/* Efecto de desvanecimiento cuando cambia la imagen con JS */
.visual-frame img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

/* =========================================
   RESPONSIVE (UNIFICADO)
   ========================================= */
@media screen and (max-width: 900px) {
    /* Ajustes Banner Apple */
    .apple-banner-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .banner-text p { margin: 0 auto 30px; }
    .banner-text h1 { font-size: 2.8rem; }
    .apple-link { justify-content: center; }

    /* Ajustes Grid de Servicios */
    .service-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    
    /* En móvil, la imagen siempre va arriba */
    .service-block:nth-child(even) .service-content { order: 2; }
    .service-block:nth-child(even) .service-visual { order: 1; }
    
    /* NUEVO PARCHE MÓVIL: MENÚ STICKY COMPACTO Y CENTRADO */
    
    /* 1. Contenedor Padre: Altura automática y centrado */
    .sticky-services-nav {
        width: 100% !important;
        height: auto !important; /* Se adapta a la barra */
        padding: 0 !important;
        overflow: hidden !important; 
        display: flex !important;
        align-items: center !important; /* Centrado vertical */
        justify-content: center !important; /* Centrado horizontal */
    }

    /* 2. El menú: Una sola línea, centrado y ajustado */
    .sticky-menu {
        display: flex !important;
        flex-wrap: nowrap !important; /* Mantiene la fila única */
        justify-content: center !important; /* Agrupa todo al centro */
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important; /* Reducimos el aire para que quepan bien */
        padding: 12px 10px !important; /* Aire arriba/abajo y márgenes de seguridad */
        margin: 0 !important;
        overflow: hidden !important; /* Matamos el scroll definitivamente */
    }
    
    /* 3. Textos: Pequeños a 0.70rem, limpios y simétricos */
    .sticky-menu a, .sticky-menu li {
        white-space: nowrap !important;
        font-size: 0.70rem !important; /* 🚨 Tu tamaño exacto 🚨 */
        font-weight: 600 !important; /* Le damos peso para compensar el tamaño */
        display: block !important;
        padding: 0 !important; 
        background: transparent !important; 
    }

    .color-options { justify-content: center; }

}

/* =========================================
   SECCIÓN DE CONTACTO (ESTILO APPLE)
   ========================================= */
.section-contact {
    padding: 140px 0;
    background-color: var(--bg-blue-color);
    border-top: 1px solid #e5e5ea;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

/* --- TEXTOS IZQUIERDA --- */
.contact-title {
    font-size: 4.5rem; /* Un titular gigantesco y limpio */
    color: var(--blue-color);
    letter-spacing: -2px;
    margin: 0 0 20px 0;
}

.contact-desc {
    font-size: 1.2rem;
    color: var(--dark-gray-color);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px; /* Antes era 50px. Lo reducimos para que no empuje tanto */
}

.detail-link {
    font-size: 1.15rem;
    color: var(--blue-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.detail-link:hover { opacity: 0.7; }

/* =========================================
   MAPA 3D (EFECTO LEVITACIÓN)
   ========================================= */
.map-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    perspective: 1000px; 
    /* EL TRUCO: Un margen negativo jala el contenedor hacia arriba, 
       comiéndose el espacio transparente que dejó Illustrator */
    margin-top: -40px; 
}

/* Ambas capas comparten este comportamiento */
.map-layer {
    width: 100%;
    height: auto;
    display: block;
}

/* El mapa base gris */
.base-map {
    opacity: 0.5; /* Lo hacemos sutil para que no compita */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.03));
}

/* La capa de Puebla que flota */
.floating-map {
    position: absolute;
    top: 0;
    left: 0;
    /* La sombra inicial: dura y profunda para crear separación */
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.15));
    /* Llamamos a la animación de respiración */
    animation: levitate 4s ease-in-out infinite;
}

/* El cartelito flotante */
.map-pin {
    position: absolute;
    top: 55%; /* Ajusta esto según dónde quede Puebla en tu mapa */
    left: 60%; /* Ajusta esto también */
    background: var(--white-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--black-minus-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    /* Flota junto con el estado de Puebla */
    animation: levitate 4s ease-in-out infinite;
    animation-delay: 0.1s; /* Un pequeñísimo retraso para efecto orgánico */
}

/* --- LA ANIMACIÓN DE MAGIA 3D --- */
@keyframes levitate {
    0% { 
        transform: translateY(0) scale(1.02); 
        filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); 
    }
    50% { 
        /* Sube 12 pixeles y la sombra se difumina (efecto de lejanía) */
        transform: translateY(-12px) scale(1.02); 
        filter: drop-shadow(0 30px 25px rgba(0,0,0,0.08)); 
    }
    100% { 
        transform: translateY(0) scale(1.02); 
        filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); 
    }
}

/* =========================================
   FORMULARIO APPLE MINIMALISTA
   ========================================= */
.contact-form-wrapper {
    background: #fbfbfd; /* Gris súper tenue, casi blanco */
    padding: 50px;
    border-radius: 30px;
    border: 1px solid #e5e5ea;
}

.apple-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Los inputs Premium */
.apple-form input,
.apple-form textarea {
    width: 100%;
    padding: 18px 22px;
    font-size: 0.8rem;
    color: var(--blue-color);
    background-color: var(--white-color); 
    border: 1px solid #d2d2d7; 
    border-radius: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-sizing: border-box;
}

/* El Focus (cuando el usuario hace clic) */
.apple-form input:focus,
.apple-form textarea:focus {
    outline: none;
    border-color: var(--blue-color);
    /* Efecto de anillo de enfoque (Halo) estilo iOS */
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); 
}

.apple-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    padding: 18px !important;
    font-size: 1.15rem !important;
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-title { font-size: 3.5rem; text-align: center; }
    .contact-desc, .contact-details { text-align: center; margin: 0 auto 30px; }
    .form-row.split-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 30px 20px; }
    .map-3d-wrapper { margin: 0 auto; }
}

/* =========================================
   PÁGINA DE PRODUCTOS (ESTILO APPLE PREMIUM)
   ========================================= */

/* --- 1. CONTENEDOR DE MÓDULOS --- */
.product-module {
    margin-bottom: 0; 
    background: var(--white-color);
}

/* --- 2. PRODUCTO CINEMATOGRÁFICO (VIDEO HERO) --- */
.product-cinema-hero {
    position: relative;
    height: 90vh; 
    min-height: 600px;
    display: flex;
    align-items: center; 
    justify-content: center; /* 🚨 MAGIA: Centra perfectamente sin usar position absolute */
    overflow: hidden;
    color: var(--white-color); 
}

.video-background-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; 
}

.cinema-video {
    width: 100%; height: 100%;
    object-fit: cover; 
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2;
}

.cinema-content {
    position: relative; /* 🚨 CAMBIO: Ya no usamos absolute */
    z-index: 3; 
    width: 100%;
    max-width: 800px; 
    text-align: center; 
    padding: 0 30px;
    margin: 0 auto;
}

.cinema-eyebrow {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.cinema-title {
    font-size: 4.5rem; 
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 0 auto 30px auto;
    color: var(--white-color);
}

.cinema-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================
   NUEVOS LAYOUTS DE PRODUCTO (VARIEDAD PREMIUM)
   ========================================= */

/* =========================================
   NUEVO ESTILO: SLIDER "FULL-BLEED" ESTILO APPLE
   ========================================= */
.slider-section {
    padding: 100px 0 60px;
    overflow: hidden; 
    position: relative;
    background: var(--white-color);
}

.slider-wrapper-relative {
    position: relative;
    width: 100%;
}

.breakout-slider.apple-slider-container {
    display: flex;
    gap: 30px; 
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 50px 0; 
    width: 100vw; 
    margin-left: calc(-50vw + 50%); 
    -ms-overflow-style: none; scrollbar-width: none;
    scroll-behavior: smooth; /* Movimiento fluido nativo */
}
.breakout-slider.apple-slider-container::-webkit-scrollbar { display: none; }

/* --- TARJETAS GIGANTES A BORDE COMPLETO --- */
.apple-full-card.slider-card {
    flex: 0 0 auto; 
    /* Dimensiones enormes estilo Apple */
    width: 80vw; 
    max-width: 1100px; 
    height: 650px; 
    scroll-snap-align: center; /* Se centran perfectamente */
    position: relative;
    border-radius: 40px; /* Bordes muy redondeados */
    overflow: hidden;
    background: #f0f0f5;
    transition: transform 0.4s ease;
}

/* Margen para centrar perfectamente la primera tarjeta */
.apple-full-card.slider-card:first-child {
    margin-left: 10vw;
}

/* Margen para centrar perfectamente la última tarjeta */
.apple-full-card.slider-card:last-child {
    margin-right: 10vw;
}

.apple-full-card.slider-card:hover {
    transform: scale(0.99); /* Pequeño efecto de presión */
}

/* La imagen como fondo total */
.full-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; /* Llena todo el espacio sin deformar */
    z-index: 1;
}

/* El texto flotando encima (ALINEADO A LA DERECHA) */
.full-card-content {
    position: relative;
    z-index: 2;
    padding: 80px;
    max-width: 500px;
    
    /* --- NUEVOS CAMBIOS --- */
    margin-left: auto; /* Empuja todo el bloque hacia la derecha */
    text-align: right; /* Alinea el texto dentro del bloque a la derecha */
    /* ---------------------- */
    
    /* Un ligero sombreado al texto por si la imagen de fondo es clara */
    text-shadow: 0 2px 15px rgba(0,0,0,0.2); /* Aumenté un poco la sombra para mejor lectura */
}

.full-card-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: var(--white-color); /* Cámbialo a #fff si usas imágenes oscuras */
}

.full-card-content p {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--white-color); 
    margin: 0;
    font-weight: 500;
}

/* --- CONTROLES INFERIORES APPLE (LIQUID GLASS + PROGRESS BAR) --- */
.apple-slider-controls {
    /* Superposición Absoluta para que flote sobre el slider */
    position: absolute;
    bottom: 25px; /* Separación desde abajo */
    left: 50%;
    transform: translateX(-50%); /* Centrado matemático */
    z-index: 100;
    
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio elegante entre el botón y la píldora */
}

/* Efecto Liquid Glass compartido para Botón y Píldora */
.slider-play-btn, .slider-pill-nav {
    background: rgba(240, 240, 245, 0.75); /* Fondo gris claro casi blanco con transparencia */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Para Safari/Apple */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Un brillito en el borde */
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Sombra suave para despegarlo del fondo */
}

/* El Botón Redondo (Más grande) */
.slider-play-btn {
    width: 52px; height: 52px; /* Tamaño generoso como la referencia */
    border-radius: 50%;
    color: var(--black-minus-color); /* Icono gris oscuro/negro */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}
.slider-play-btn:hover { background: rgba(240, 240, 245, 0.95); }
.slider-play-btn i { 
    font-size: 1.2rem; /* Tamaño equivalente al SVG anterior */
    display: block;
}

/* La Píldora de Navegación */
.slider-pill-nav {
    display: flex;
    align-items: center;
    border-radius: 30px; 
    padding: 14px 22px; /* Más gordita y premium */
    gap: 12px;
}

/* Los Puntos Base (Gris Medio) */
.pill-dot {
    width: 8px; height: 8px;
    border-radius: 4px;
    background: #a1a1a6; /* Color de reposo Apple */
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden; /* Para que el relleno no se salga */
    transition: width 0.3s ease, background 0.3s ease;
}

/* El Punto Activo (Se alarga para recibir la barra) */
.pill-dot.active {
    width: 36px; /* Ancho alargado de la barra base */
    background: #d2d2d7; /* Fondo gris claro de la barra vacía */
}

/* La Barrita que se llena de color oscuro */
.progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0%; /* Empieza vacía */
    background: #424245; /* Color oscuro que llena la barra */
    border-radius: 4px;
}

/* --- LA MAGIA: LA ANIMACIÓN DE LLENADO --- */
.pill-dot.active .progress-fill {
    /* Aquí definimos que la barra se llene en 3.5 segundos exactos */
    animation: fillProgress 3500ms linear forwards;
    animation-play-state: paused; /* Por defecto se queda congelada */
}

/* Si el contenedor padre tiene la clase 'is-playing', la animación corre */
.slider-pill-nav.is-playing .pill-dot.active .progress-fill {
    animation-play-state: running;
}

/* Si la tarjeta ya pasó de largo (y el slider sigue reproduciéndose), se queda llena o vacía (dependiendo de la lógica de reinicio, que controlará el JS) */
@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* =========================================
   EFECTO CRISTAL: TODOS LOS SLIDERS DE TÉ
   ========================================= */
   
/* Al usar #teSlider, afectamos a TODAS las tarjetas de esta sección automáticamente */
#teSlider .full-card-content {
    max-width: 460px; 
    padding: 40px;
    margin-top: 40px;
    margin-right: 50px;
    margin-left: auto; /* 🚨 Esto asegura que todas las tarjetas floten a la derecha */
    
    /* Efecto Vidrio Esmerilado Apple */
    background: rgba(0, 0, 0, 0.25); /* Un tono oscuro sutil para máxima legibilidad */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    
    text-shadow: none; 
}

/* Sombras directas a las letras para que resalten sobre el cristal */
#teSlider .full-card-content h3,
#teSlider .full-card-content p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Adaptación perfecta para celulares */
@media screen and (max-width: 768px) {
    #teSlider .full-card-content {
        margin: 20px auto; /* Centramos la burbuja en la pantalla móvil */
        padding: 30px 20px; /* Reducimos un poco el padding lateral para ganar espacio */
        max-width: 90%;
    }
    
    /* 🚨 PARCHE: Ajustamos el tamaño del título para palabras largas como "Acondicionamiento" 🚨 */
    #teSlider .full-card-content h3 {
        font-size: 1.8rem !important; /* Lo bajamos de 2.5 a 1.8 */
        word-wrap: break-word !important; /* Si la palabra es muy terca, le permite romperse sin salirse */
    }
    
    /* Para pantallas pequeñas, bajamos un poco el tamaño de los controles */
    .slider-play-btn { width: 44px; height: 44px; }
    .slider-pill-nav { padding: 12px 18px; }
    .apple-slider-controls { bottom: 25px; } 
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 768px) {
    /* Para pantallas pequeñas, bajamos un poco el tamaño */
    .slider-play-btn { width: 44px; height: 44px; }
    .slider-pill-nav { padding: 12px 18px; }
    .apple-slider-controls { bottom: 25px; } /* Lo bajamos un poquito más en móvil */
}

/* --- 2. ESTILO "PÓSTER HÍBRIDO" (PARA MILKY SHAKE) --- */
.poster-section {
    position: relative;
    /* 🚨 MAGIA 1: Dejamos que la sección crezca si hay mucho contenido */
    height: auto !important; 
    min-height: 100vh; /* Pero aseguramos que mínimo cubra la pantalla */
    
    background-image: var(--shake-bg, url('images/productos/milky-poster-bg.webp')); 
    background-size: cover; 
    background-position: center;
    display: flex; flex-direction: column; justify-content: space-between; 
    padding: 80px 0 60px; 
    color: var(--white-color); 
    overflow: hidden;
    transition: background-image 0.4s ease-in-out;
}

/* 🚨 NUEVO: Botones invisibles para los paquetitos */
.shake-switcher-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: block; /* Mantiene la estructura del diseño original */
}

.poster-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); 
    z-index: 1;
}

/* --- PARTE SUPERIOR CENTRADA (ESTILO AIRPODS MAX) --- */
.poster-content-top {
    position: relative;
    z-index: 2;
    display: block; /* Matamos cualquier comportamiento flex heredado */
    text-align: center; /* Centrado perfecto horizontal */
    max-width: 900px; 
    margin: 0 auto; 
    padding: 8vh 20px 0; /* 8vh de aire arriba y 20px a los lados para celulares */
}

/* El Título Masivo */
.poster-content-top h3 {
    font-size: 5.5rem; /* ¡Gigante! */
    letter-spacing: -2.5px; /* LA CLAVE DE APPLE: Letras muy juntitas */
    line-height: 1.05;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--white-color); /* Blanco puro */
    /* Sombra muy difuminada para que se lea sea cual sea tu foto de fondo */
    text-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}

/* El Párrafo Inferior */
.poster-text-main {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500; /* Un poco más de peso para que no se pierda */
    color: rgba(255, 255, 255, 0.95); /* Blanco al 95% para contraste sutil */
    
    max-width: 700px; /* Atrapa el texto para que baje en bloque centrado */
    margin: 0 auto; /* Centra la caja del párrafo */
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 1024px) {
    .poster-content-top h3 { font-size: 4rem; letter-spacing: -1.5px; }
}
@media screen and (max-width: 600px) {
    .poster-content-top h3 { font-size: 2.8rem; letter-spacing: -1px; }
    .poster-text-main { font-size: 1.1rem; max-width: 90%; }
}

.poster-bottom-grid-wrapper { position: relative; z-index: 2; width: 100%; }

/* --- GRID FLEXIBLE PARA MÚLTIPLES EMPAQUES (1 SOLA FILA) --- */
.poster-grid-7 {
    display: flex;
    /* 🚨 MAGIA 2: Prohibimos absolutamente que se bajen de renglón en escritorio */
    flex-wrap: nowrap !important; 
    justify-content: center; 
    gap: 15px; /* Reducimos el aire entre ellos para que quepan todos */
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2); 
    padding-top: 40px;
    max-width: 100%; /* Aprovechamos todo el ancho de la pantalla */
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

.poster-grid-7 .poster-item {
    /* 🚨 MAGIA 3: Hace que las 7 columnas se repartan el espacio exactamente igual */
    flex: 1 1 0 !important; 
    min-width: 0; /* Previene que los textos largos desborden la caja */
    display: flex; flex-direction: column; align-items: center;
}

.poster-item { display: flex; flex-direction: column; align-items: center; }

.poster-pack-small {
    height: 100px; width: auto; object-fit: contain; margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); transition: transform 0.3s ease;
}

.poster-item:hover .poster-pack-small { transform: translateY(-5px) scale(1.05); }
/* Ajustamos levemente la tipografía para que 7 empaques quepan perfectos */
.poster-item h4 { font-size: 1.15rem; margin: 0 0 5px 0; color: var(--white-color); font-weight: 600; }
.poster-item p { font-size: 0.85rem; line-height: 1.3; color: rgba(255,255,255,0.8); margin: 0; }

/* 🚨 MAGIA 4: En Celular/Tablet sí los dejamos hacer 2 filas para no aplastarlos 🚨 */
@media screen and (max-width: 1024px) {
    .poster-grid-7 {
        flex-wrap: wrap !important; /* Aquí sí permitimos que bajen */
        gap: 30px;
    }
    .poster-grid-7 .poster-item {
        flex: 0 1 120px !important; /* Tamaño fijo para que se acomoden en bloque */
    }
}

/* --- 3. ESTILO "LAYOUT DE IMPACTO" (Z-PATTERN APPLE) --- */
.impact-section { padding: 100px 0; background-color: var(--white-color); display: block; }

/* Filas (Los Pisos) */
.impact-row {
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Mitad y mitad exactas */
    gap: 80px; 
    align-items: center; 
    margin-bottom: 120px; /* Mucho aire entre el piso 1 y el piso 2 */
}
.impact-row:last-child { margin-bottom: 0; }

/* Textos */
.impact-text { padding: 0 20px; }
.impact-headline {
    font-size: 3.5rem; line-height: 1.1; font-weight: 700; letter-spacing: -1.5px;
    color: var(--blue-color); margin: 0 0 20px 0;
}
.impact-desc { font-size: 1.25rem; line-height: 1.5; color: var(--dark-gray-color); margin: 0; }

/* Contenedores Visuales */
.impact-visual { display: flex; justify-content: center; align-items: center; position: relative; }

/* Foto Cuadrada (Piso 1) */
.impact-rounded-wrapper {
    height: 500px; width: 100%; border-radius: 30px; overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12); 
}
.impact-img-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.impact-rounded-wrapper:hover .impact-img-cover { transform: scale(1.03); }

/* Explosión Gigante (Piso 2) */
.impact-giant-img { 
    width: 140%; /* 🚨 MAGIA: La hacemos un 40% más ancha para que se vea masiva */
    max-width: none; 
    height: auto; 
    display: block; 
    transform: translateX(5%); /* La empuja un poco hacia afuera a la derecha */
}

/* =========================================
   NUEVA SECCIÓN: BANNER EXPLOSIÓN WHEY
   ========================================= */
.whey-explosion-banner {
    position: relative;
    width: 100%;
    min-height: 800px; /* Altura imponente */
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
    overflow: hidden;
    
    /* AQUÍ ESTÁ EL TRUCO DEL CONTRASTE: */
    /* Usamos un gradiente negro semitransparente SOBRE la imagen de fondo */
    background-image: url('images/productos/whey-power-bg.webp'); 
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* EFECTO PARALLAX: La imagen se queda quieta al hacer scroll. ¡Súper Apple! */
}

/* El contenedor del texto dentro del banner */
.banner-content-wrapper {
    position: relative;
    z-index: 2; /* Asegura que el texto esté sobre el oscurecimiento */
}

/* El bloque de texto en sí */
.banner-text-block {
    max-width: 500px; /* Limitamos el ancho para que se lea fácil */
    /* Si prefieres el texto centrado, cambia 'left' por 'center' y agrega 'margin: 0 auto;' */
    text-align: left; 
}

/* 🚨 NUEVO: Forzamos el texto a ser blanco para que no se camufle con el fondo oscuro 🚨 */
.banner-text-block .impact-headline {
    color: var(--white-color) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombrita para mayor lectura */
}

.banner-text-block .impact-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* =========================================
   APPLE NEWSROOM (INDEX PRINCIPAL)
   ========================================= */

.apple-newsroom-page {
    /* El fondo gris clarito clásico de las páginas de Apple */
    background-color: var(--bg-blue-color); 
    padding-bottom: 50px;
    padding-top: 60px; /* Un poco de aire desde el menú superior */
}

/* 🚨 LA MAGIA PARA EL ANCHO: Hacemos el contenedor más amplio solo en el blog 🚨 */
.apple-newsroom-page .site-container {
    max-width: 1300px; 
    display: block !important; /* ESTA ES LA LLAVE: Rompe la fila y apila todo hacia abajo */
}

/* --- TÍTULO SUPERIOR --- */
.latest-news-section .section-heading {
    font-size: 2rem; /* Tamaño masivo estilo Apple */
    color: var(--blue-color);
    letter-spacing: -1.5px;
    margin-top: 0;
    margin-bottom: 50px;
    text-align: left; /* Alineado a la izquierda */
    font-weight: 700;
}

/* --- GRID DE NOTICIAS MATEMÁTICO (6 Columnas base) --- */
.apple-news-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 rebanadas iguales */
    gap: 30px;
}

/* ESTILO BASE (Aplica para las tarjetas pequeñas 6, 7, 8, etc.) */
.apple-news-card {
    grid-column: span 2; /* 2 de 6 = 1/3 del ancho */
    background: var(--white-color);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.apple-news-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 10; 
    overflow: hidden;
    background: #f0f0f5;
}

.news-card-image img { width: 100%; height: 100%; object-fit: cover; }

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    font-size: 0.7rem; font-weight: 700; color: var(--green-color);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}

.news-title {
    font-size: 1.35rem; line-height: 1.25; color: var(--blue-color);
    margin: 0 0 20px 0; font-weight: 600; letter-spacing: -0.5px;
}

.news-date { margin-top: auto; font-size: 0.8rem; color: var(--dark-gray-color); font-weight: 500; }

/* =========================================
   LA MAGIA APPLE: TAMAÑOS CONDICIONALES
   ========================================= */

/* 1. TARJETA HERO (La Primera) */
.apple-news-card:nth-child(1) {
    grid-column: span 6; /* Ocupa 6 de 6 = 100% de ancho */
    flex-direction: row; /* Horizontal */
    align-items: stretch;
}
.apple-news-card:nth-child(1) .news-card-image {
    width: 60%; /* La imagen domina el espacio */
    aspect-ratio: auto; 
}
.apple-news-card:nth-child(1) .news-card-content {
    width: 40%;
    padding: 60px 50px;
    justify-content: center;
}
.apple-news-card:nth-child(1) .news-title {
    font-size: 2.4rem; /* Título gigante */
}

/* 2. TARJETAS MEDIANAS (Las 4 siguientes) */
.apple-news-card:nth-child(2),
.apple-news-card:nth-child(3),
.apple-news-card:nth-child(4),
.apple-news-card:nth-child(5) {
    grid-column: span 3; /* Ocupan 3 de 6 = 50% del ancho */
}
.apple-news-card:nth-child(2) .news-title,
.apple-news-card:nth-child(3) .news-title,
.apple-news-card:nth-child(4) .news-title,
.apple-news-card:nth-child(5) .news-title {
    font-size: 1.6rem; /* Título mediano */
}
.apple-news-card:nth-child(2) .news-card-image,
.apple-news-card:nth-child(3) .news-card-image,
.apple-news-card:nth-child(4) .news-card-image,
.apple-news-card:nth-child(5) .news-card-image {
    aspect-ratio: 16 / 9; /* Ligeramente más panorámicas */
}

/* --- BOTÓN VER ARCHIVO --- */
.newsroom-actions { 
    margin-top: 100px; /* Lo empujamos muchísimo hacia abajo para aislarlo */
    padding-bottom: 40px;
    text-align: center; 
}
.btn-apple-pill {
    display: inline-block; 
    background: var(--blue-color); 
    color: var(--white-color);
    font-size: 0.95rem; font-weight: 600; padding: 12px 28px;
    border-radius: 50px; text-decoration: none; transition: background 0.3s ease;
}
.btn-apple-pill:hover { 
    background: var(--green-color);
    color: var(--white-color); 
}

/* =========================================
   APPLE ARCHIVE (LISTA Y FILTROS)
   ========================================= */

.apple-archive-page {
    background-color: var(--bg-blue-color);; /* Apple usa blanco puro para sus listas */
    padding: 60px 0 100px;
}

.archive-container {
    max-width: 900px !important; /* Más angosto para que la lectura sea cómoda */
    display: block !important; /* 🚨 LA MAGIA: Rompe las columnas y apila todo verticalmente */
    margin: 0 auto; /* Asegura que todo el bloque esté perfectamente centrado */
}

/* --- 1. FILTROS SUPERIORES --- */
.archive-filters {
    display: flex;
    align-items: center;
    /* 🚨 MAGIA 1: Centramos todas las píldoras horizontalmente */
    justify-content: center; 
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-label {
    /* 🚨 MAGIA 2: Forzamos al texto a ocupar el 100% del ancho para que mande lo demás abajo */
    width: 100%; 
    text-align: center; /* Lo centramos perfectamente */
    margin-right: 0;
    margin-bottom: 20px; /* Le damos aire para que respiren las píldoras de abajo */
    
    font-size: 1rem;
    font-weight: 600;
    color: var(--black-minus-color);
}

/* --- BARRA DE BÚSQUEDA --- */
.filter-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #8e8e93; /* Gris clásico de íconos Apple */
    font-size: 0.9rem;
    pointer-events: none; /* Para que el clic pase a través del ícono */
}

.filter-search-input {
    background-color: var(--white-color);
    border: 1px solid transparent;
    border-radius: 30px; /* Bordes de píldora */
    padding: 12px 20px 12px 40px; /* Espacio para el ícono de la lupa */
    font-size: 0.95rem;
    color: var(--black-minus-color);
    font-family: inherit;
    width: 220px; /* Tamaño de reposo */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04); /* Leve profundidad interior */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🚨 MAGIA GEOMÉTRICA: Forzamos la misma altura para la búsqueda y los dropdowns 🚨 */
.filter-search-input,
.apple-select {
    height: 48px; 
    box-sizing: border-box; /* Evita que los bordes sumen tamaño extra */
    margin: 0;
}

/* Centramos la lupa perfectamente en su nueva caja de 48px */
.search-icon {
    top: 50%;
    transform: translateY(-50%);
}

/* Efecto focus premium: Crece y se ilumina de azul */
.filter-search-input:focus {
    outline: none;
    border-color: var(--blue-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15); /* Halo azul */
    width: 260px; /* Se estira suavemente al escribir */
}

.filter-search-input::placeholder {
    color: #8e8e93;
}

/* Ajuste responsivo */
@media screen and (max-width: 900px) {
    .filter-search-wrapper,
    .filter-search-input,
    .filter-search-input:focus {
        width: 100%;
    }
}

/* Magia para que los <select> feos del navegador parezcan botones de Apple */
.apple-select {
    appearance: none;
    -webkit-appearance: none;
    /* Flecha personalizada SVG a la derecha */
    background: var(--white-color) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%231d1d1f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 15px center;
    border: none;
    padding: 12px 40px 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black-minus-color);
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

.apple-select:hover { background-color: var(--bg-silver-color); }
.apple-select:focus { outline: 2px solid var(--blue-color); }

/* --- 2. LISTA DE ARTÍCULOS Y SEPARADORES --- */
.archive-month-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--blue-color);
    margin: 60px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #d2d2d7; /* La línea separadora superior */
    letter-spacing: -0.5px;
}

/* Si es el primer mes de la página, le quitamos el margen gigante superior */
.archive-list h2:first-child { margin-top: 0; }

.archive-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #d2d2d7; /* La línea separadora inferior */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.archive-item:hover { opacity: 0.7; }

.archive-item-img {
    flex: 0 0 280px; /* Ancho fijo para la imagen */
    aspect-ratio: 16 / 10;
    border-radius: 18px; /* Redondeado suave */
    overflow: hidden;
    background: #f0f0f5;
}

.archive-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-item-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.archive-item-title {
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--blue-color);
    font-weight: 600;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.archive-item-date {
    font-size: 0.85rem;
    color: var(--dark-gray-color);
    font-weight: 500;
}

/* --- 3. PAGINADOR APPLE (< [1] de 15 >) --- */
.apple-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.pag-btn a, .pag-btn.disabled {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-color);;
    color: var(--white-color);;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.pag-btn a:hover { background: var(--green-color);; }
.pag-btn.disabled { opacity: 0.3; cursor: not-allowed; }

.pag-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black-minus-color);
}

.pag-current {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    margin-right: 5px;
}

/* =========================================
   APPLE SINGLE POST (LECTURA DEL ARTÍCULO)
   ========================================= */

.apple-single-page {
    background-color: var(--bg-blue-color); /* Blanco puro para máxima legibilidad */
    padding-top: 80px;
}

/* El ancho perfecto para leer sin cansar el ojo (como un libro) */
.apple-article {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABECERA --- */
.article-meta-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.meta-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark-gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black-minus-color);
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--blue-color);
    letter-spacing: -1.5px;
    margin: 0 0 30px 0;
    font-weight: 700;
}

/* Iconos de compartir superiores */
.article-share-row {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d2d2d7;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black-minus-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-icon:hover {
    background-color: #f5f5f7;
    border-color: var(--black-minus-color);
}

/* --- IMAGEN HERO --- */
.article-hero-image {
    margin: 0 0 50px 0;
    width: 100%;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 18px; /* Redondeado suave Apple */
    display: block;
}

/* --- CUERPO DEL TEXTO --- */
.article-body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--black-minus-color);
}

.article-body p { margin-bottom: 25px; }

/* Títulos dentro del artículo */
.article-body h2 {
    font-size: 2rem;
    margin: 50px 0 20px 0;
    letter-spacing: -0.5px;
}
.article-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px 0;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

/* --- PIE DEL ARTÍCULO --- */
.article-footer {
    margin-top: 80px;
    border-top: 1px solid #d2d2d7;
    padding-top: 40px;
}

.article-share-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 60px;
}

.share-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-color);
}

.share-icons-bottom {
    display: flex;
    gap: 15px;
}

/* Caja de "Acerca de" */
.article-about-box {
    background: var(--blue-color);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 80px;
}

.article-about-box h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--green-color);
}

.article-about-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--white-color);
}

/* --- MÁS NOTICIAS (LISTA INFERIOR) --- */
.article-related-news {
    border-top: 1px solid #d2d2d7;
    padding: 80px 0 120px 0;
}

.related-container {
    max-width: 740px; /* Mismo ancho que el artículo */
    margin: 0 auto;
    padding: 0 20px;
}

.related-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--blue-color);
}

/* Formato de lista apilada (como Apple) */
.related-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #d2d2d7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.related-item:hover { opacity: 0.6; }

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

.related-item-img {
    flex: 0 0 160px; /* Ancho fijo para la miniatura */
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f5;
}

.related-item-img img { width: 100%; height: 100%; object-fit: cover; }

.related-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark-gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.related-title {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--blue-color);
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.related-date {
    font-size: 0.8rem;
    color: var(--dark-gray-color);
    font-weight: 500;
}

/* =========================================
   10. SCROLL IMMERSIVE VIDEO (TÉ APPLE STYLE)
   ========================================= */

.apple-scrub-section {
    position: relative;
    height: 400vh; /* 4 pantallas de alto para dar espacio al scroll */
    background-color: var(--black-color); 
}

/* Ancla el video a la pantalla */
.sticky-video-wrapper {
    position: sticky;
    top: 0;
    height: 100vh; 
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.scrub-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.video-dark-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    z-index: 2;
}

/* Contenedor de Textos */
.scrub-text-container {
    position: relative;
    z-index: 3;
    margin-top: -100vh; /* Sube el primer texto para que aparezca desde el inicio */
}

.scrub-step {
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white-color);
    /* Esta línea hace que el renderizado sea fluido como mantequilla (60fps) */
    will-change: opacity, transform;
}

.scrub-title {
    font-size: 4rem;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--white-color) !important;
}

.scrub-step h3 {
    font-size: 2.5rem;
    color: var(--white-color) !important; 
    margin-bottom: 20px;
}

.scrub-step p { font-size: 1.25rem; line-height: 1.6; margin-bottom: 20px; }
.clean-list { list-style: none; padding: 0; font-size: 1.2rem; text-align: left;}
.clean-list li { margin-bottom: 12px; }

.pill-list { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;}
.pill { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.3); font-weight: 600;}
.specs-note { font-size: 1.1rem !important; color: #a1a1a6 !important; text-shadow: none; }

@media screen and (max-width: 900px) {
    .scrub-title { font-size: 2.8rem; }
    .scrub-step h3 { font-size: 2rem; }
    .scrub-step p, .clean-list { font-size: 1.1rem; }
}

/* =========================================
   11. SECCIÓN DUAL (TABLETAS Y CAPLETAS)
   ========================================= */

.dual-product-section {
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
}

/* --- LOS VIDEOS (Top) --- */
.dual-video-showcase {
    display: flex;
    width: 100%;
    height: 70vh; /* Altura generosa para lucir los videos */
    min-height: 500px;
    background-color: #f2f7fc; /* Fondo azul súper claro */
    position: relative;
    overflow: hidden;
}

.video-half {
    flex: 1; /* Ocupan exactamente 50% cada uno */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.half-title {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 2.5rem;
    color: var(--blue-color);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
    z-index: 2;
}

.dual-standard-video {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    z-index: 1;
}

.dual-divider {
    width: 4px;
    background-color: var(--white-color);
    height: 100%;
    z-index: 3;
}

/* --- ZONA DE TEXTOS (Bottom) --- */
.dual-info-wrapper {
    padding: 80px 0 120px;
    background-color: var(--bg-blue-color);
}

/* 🚨 LA MAGIA: Obliga al contenedor a soltar las columnas y apilar hacia abajo 🚨 */
.dual-info-wrapper .site-container {
    display: block !important;
}

.dual-main-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--blue-color);
    font-weight: 500;
}

/* Las Tarjetas de Especificaciones */
.dual-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 50px;
}

/* =========================================
   TARJETAS DE ESPECIFICACIONES (ESTILO APPLE BENTO)
   ========================================= */

.spec-card {
    background: var(--white-color);
    border-radius: 30px; 
    padding: 40px; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 280px;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* El icono limpio arriba a la izquierda */
.spec-icon-top {
    margin-bottom: 25px;
}

.spec-icon-top i {
    font-size: 2.8rem;
    color: var(--blue-color);
}

/* Títulos y textos */
.spec-details h4 {
    font-size: 1.8rem;
    color: var(--blue-color);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 15px 0;
}

.spec-details p {
    font-size: 1.1rem;
    color: var(--dark-gray-color);
    line-height: 1.5;
    margin: 0;
}

/* El botoncito negro circular con el + en la esquina */
.btn-plus {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--blue-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-plus:hover {
    background-color: var(--green-color);
    color: var(--white-color);
    transform: scale(1.1); 
}

.dual-action {
    text-align: center;
}

/* El texto extra que pidió el cliente arriba del botón */
.dual-action-note {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--dark-gray-color);
    font-weight: 500;
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .dual-video-showcase {
        flex-direction: column; /* Apilamos los videos */
        height: auto;
    }
    .video-half { padding: 80px 0; }
    .half-title { top: 20px; left: 20px; font-size: 2rem; text-align: left; }
    .dual-divider { width: 100%; height: 4px; } /* Línea horizontal */
    .dual-specs-grid { grid-template-columns: 1fr; }
}

/* =========================================
   12. SECCIÓN CÁPSULAS (CINEMATIC HERO)
   ========================================= */
.capsule-cinema-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.cinema-video-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.cinema-bg-video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cinema-overlay {
    position: absolute;
    inset: 0;
    /* Degradado mágico: Más oscuro abajo para que las especificaciones y el botón se lean perfecto */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.cinema-content-container {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 40px;
    text-align: center;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tipografía extrema */
.cinema-eyebrow {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.cinema-giant-title {
    font-size: 5.5rem; /* ¡Titánico! */
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
    margin: 0 0 30px 0;
    color: var(--white-color) !important;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.cinema-main-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px auto;
    max-width: 750px;
    font-weight: 400;
}

/* Bloque de distribución (Estilo Vidrio Esmerilado) */
.cinema-distribution {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 700px;
}

.dist-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--white-color);
}

.dist-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cada elemento de la lista parece un botón presionado */
.dist-list li {
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dist-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Especificaciones a la Apple */
.cinema-specs {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
}

.spec-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.spec-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white-color);
    letter-spacing: -1px;
}

/* El Botón Azul Noche exacto de tu diseño */
.btn-dark-pill {
    display: inline-block;
    background-color: #232247; /* El tono azul oscuro elegante */
    color: var(--white-color);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-dark-pill:hover {
    transform: translateY(-4px) scale(1.02);
    background-color: #2d2c5a; /* Aclara sutilmente al pasar el mouse */
    color: var(--white-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .cinema-giant-title { font-size: 4rem; }
    .cinema-main-desc { font-size: 1.15rem; }
    .dist-list { flex-direction: column; gap: 10px; align-items: stretch; }
}
@media screen and (max-width: 600px) {
    .capsule-cinema-section { height: auto; padding: 120px 0; }
    .cinema-giant-title { font-size: 3rem; letter-spacing: -1px; }
    .cinema-specs { flex-direction: column; gap: 20px; }
    .spec-divider { width: 40px; height: 1px; }
    .cinema-distribution { padding: 30px 20px; border-radius: 16px; }
}

/* =========================================
   13. SECCIÓN POLVOS (LIQUID APPLE SLIDER V2)
   ========================================= */

.liquid-slider-section {
    padding: 120px 0; /* Regresamos el padding a la normalidad */
    background-color: var(--bg-blue-color);
}

.liquid-slider-section .site-container {
    display: block !important;
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto;
}

.liquid-interface {
    width: 100%; 
    min-height: 800px; 
    background-color: #f5f5f7; 
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    display: flex;
    align-items: center; 
    padding: 60px;
    box-sizing: border-box;
}

/* --- ESTILOS PARA EL CABEZAL (AHORA DENTRO DEL SLIDER) --- */
.liquid-section-header {
    text-align: left; /* Alineado a la izquierda */
    margin-bottom: 40px; /* Separación con los botones */
    max-width: 100%; 
}

.liquid-giant-title {
    font-size: 4.5rem; 
    font-weight: 800; /* Extra bold para impacto */
    color: var(--white-color); /* El negro característico de Apple */
    letter-spacing: -2px;
    line-height: 1;
    margin: 0 0 15px 0;
}

.liquid-section-desc {
    font-size: 1.05rem;
    color: var(--white-color); 
    line-height: 1.5;
    font-weight: 600; /* Texto con un poco de peso */
    margin: 0;
}

/* --- ZONA DE IMÁGENES (FULL BLEED BACKGROUND) --- */
.liquid-visuals {
    position: absolute;
    inset: 0; 
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lq-flash {
    position: absolute; inset: 0;
    background: var(--white-color);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}
.lq-flash.fire { animation: flashBang 0.6s ease-out; }
@keyframes flashBang { 0% { opacity: 0; } 20% { opacity: 0.9; } 100% { opacity: 0; } }

.lq-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100px) scale(0.85); 
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 1;
}

.lq-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: right center; 
    margin: 0;
}

.lq-image.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}

/* --- CAPA SUPERPUESTA (TÍTULO, CONTROLES Y ACORDEÓN) --- */
.liquid-content-layer {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column; /* 🚨 MAGIA: Apila el título y el acordeón uno sobre otro */
    justify-content: center; 
    align-items: flex-start; /* Alinea todo a la izquierda */
    padding-left: 80px; 
    max-width: 530px; /* Ancho ajustado para no invadir tu foto */
}

/* 1. Las Flechas (¡Adiós efecto gelatina!) */
.liquid-controls {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Ancladas al centro pase lo que pase */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lq-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    /* Efecto cristal para que la foto pase por debajo */
    background: rgba(229, 229, 234, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--black-minus-color);
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s ease;
}
.lq-arrow:hover:not(:disabled) { background: rgba(209, 209, 214, 0.95); }
.lq-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* 2. El Acordeón T-1000 */
.liquid-accordion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* 🚨 LA MAGIA DIAGONAL: Animamos Alto y Ancho Simultáneamente 🚨 */
.lq-item {
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    margin-bottom: 15px;
    
    /* Congelamos el tamaño exacto del botón cerrado */
    max-width: 320px; 
    max-height: 58px; /* Altura forzada de pastilla */
    width: 100%;
    
    /* Esta transición es la que dibuja la diagonal físicamente */
    transition: max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s ease;
                
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.lq-item.active {
    border-radius: 24px;
    max-width: 480px; 
    max-height: 400px; /* Altura suficiente para destapar el texto */
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.lq-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent !important;
    border: none;
    padding: 0 24px;
    height: 58px; /* Obligamos a que el texto quede centrado en la pastilla */
    width: 100%;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-color);
    transition: opacity 0.3s ease;
    white-space: nowrap; 
}

.lq-item.active .lq-trigger {
    pointer-events: none;
}

/* EL ÍCONO CIRCULAR DE APPLE (+) */
.lq-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 0.65rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.lq-item.active .lq-icon-circle {
    width: 0; height: 0; opacity: 0; border-width: 0;
    margin-right: -15px; transform: scale(0);
}

/* 🚨 ADIÓS A LA CORTINA GRID 🚨 */
.lq-content-wrapper {
    display: block; 
}

.lq-item.active .lq-content-wrapper {
    grid-template-rows: 1fr;
}

/* --- FÍSICA ESPACIAL DEL TEXTO (Consciencia de dirección) --- */
.lq-content {
    overflow: hidden;
    opacity: 0;
    padding: 0 24px;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clic hacia abajo (Nace arrinconado arriba a la izquierda y baja en diagonal) */
.lq-item.flow-down .lq-content {
    transform: translate(-30px, -40px) scale(0.9);
    transform-origin: top left;
}

/* Clic hacia arriba (Nace arrinconado abajo a la izquierda y sube en diagonal) */
.lq-item.flow-up .lq-content {
    transform: translate(-30px, 40px) scale(0.9);
    transform-origin: bottom left;
}

/* Al abrirse, llega a su posición natural central */
.lq-item.active .lq-content {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    padding-bottom: 24px;
}

.lq-content p, .lq-content ul {
    margin: 0;
    font-size: 0.95rem;
    color: var(--black-minus-color);
    line-height: 1.5;
    /* Congelamos el ancho del párrafo para que no se deforme al estirarse la caja madre */
    width: 380px; 
}

/* --- BOTÓN FLOTANTE DE COTIZAR --- */
.lq-quote-btn {
    position: absolute;
    bottom: 60px; /* Alineado exactamente con el padding inferior de la caja gris */
    right: 60px;  /* Alineado exactamente con el padding derecho */
    background-color: #232247; /* El azul oscuro elegante de tu diseño */
    color: var(--white-color);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 20; /* Flota por encima de las fotos y el flash */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lq-quote-btn:hover {
    transform: translateY(-4px) scale(1.02);
    background-color: #2d2c5a; /* Aclara sutilmente al pasar el mouse */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    color: var(--white-color);
}

/* --- RESPONSIVE (MÓVIL Y IPAD) --- */
@media screen and (max-width: 1024px) {
    
    /* 1. CABEZAL Y TEXTOS (Color Oscuro y Aire) */
    .liquid-giant-title { 
        font-size: 3.2rem !important; 
        letter-spacing: -1px !important; 
        color: var(--blue-color) !important; 
        margin-top: 40px !important; 
    }
    .liquid-section-desc { 
        font-size: 1.1rem !important; 
        color: var(--dark-gray-color) !important; 
    }
    .liquid-section-header { margin-bottom: 30px !important; }

    /* 2. CONTENEDOR PRINCIPAL */
    .liquid-interface { 
        flex-direction: column !important; 
        padding: 30px 20px !important; 
        border-radius: 24px !important; 
        min-height: auto !important;
    }
    
    /* 3. IMAGEN (Arriba) */
    .liquid-visuals { 
        order: 1 !important; 
        position: relative !important; 
        height: 400px !important; 
        width: 100% !important; 
        border-radius: 20px !important; 
        overflow: hidden !important;
    }
    
    /* 4. FLECHAS (Flotando verticales EXACTAMENTE sobre la foto) */
    .liquid-controls { 
        position: absolute !important;
        /* 🚨 LA MATEMÁTICA EXACTA: 30px de aire + 200px (mitad de la foto) = 230px 🚨 */
        top: 230px !important; 
        left: 35px !important; 
        transform: translateY(-50%) !important;
        flex-direction: column !important; /* VERTICALES */
        gap: 15px !important;
        z-index: 20 !important;
        margin-bottom: 0 !important;
        width: auto !important;
    }

    /* 5. TEXTOS Y ACORDEÓN (Abajo de la imagen) */
    .liquid-content-layer { 
        position: static !important; /* 🚨 LA LLAVE MÁGICA: Esto libera a las flechas de su jaula 🚨 */
        order: 2 !important; 
        flex-direction: column !important; 
        max-width: 100% !important; 
        width: 100% !important; 
        padding-left: 0 !important; 
        margin-top: 20px !important; 
    }
    
    .lq-image { justify-content: center !important; }
    .lq-image img { width: 100% !important; height: 100% !important; margin: 0 !important; }

    /* 6. BOTÓN COTIZAR */
    .lq-quote-btn { 
        order: 3 !important; 
        position: relative !important; 
        bottom: auto !important; right: auto !important; 
        margin-top: 30px !important; 
        width: 100% !important; 
        text-align: center !important; 
        box-sizing: border-box !important; 
        display: block !important; 
    }
}

/* =========================================
   14. SECCIÓN IMPRESIÓN (APPLE CINEMA SPLIT)
   ========================================= */

.print-cinema-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    display: flex;
    /* Alineamos el contenido en la parte superior como en Apple */
    align-items: flex-start; 
    padding-top: 15vh; /* Aire desde el "techo" */
    overflow: hidden;
    background-color: var(--black-color) ;
}

.print-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.print-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.print-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente inteligente: Oscuro arriba (para el texto), transparente en medio (para el video), y un poco oscuro abajo (transición al footer) */
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

/* El Grid Dividido */
.print-content-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad izquierda, mitad derecha */
    gap: 80px;
    width: 100%;
    max-width: 1200px;
}

/* --- Tipografía Izquierda --- */
.print-eyebrow {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.print-giant-title {
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--white-color) !important;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* --- Tipografía Derecha --- */
.print-col-right {
    padding: 40px; /* Le damos aire interno */
    background: rgba(0, 0, 0, 0.2); /* Un negro al 20% casi invisible */
    backdrop-filter: blur(12px); /* El truco mágico: desenfoca solo lo que está detrás de la caja */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Brillo sutil en el borde */
}

.print-desc {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Detalles técnicos resaltados con una línea verde elegante */
.print-specs {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    padding-left: 18px;
    border-left: 2px solid var(--green-color);
}

.print-specs strong {
    color: var(--white-color);
    font-weight: 700;
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .print-cinema-section { padding-top: 12vh; height: auto; padding-bottom: 120px; }
    .print-content-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .print-giant-title { font-size: 3.5rem; letter-spacing: -1px; }
    .print-desc { font-size: 1.2rem; }
    .print-col-right { padding-top: 0; }

    /* =========================================
       PARCHE MÓVIL: LEGIBILIDAD IMPRESIÓN (GLASSMORPHISM)
       ========================================= */
    /* 1. Oscurecemos un poco más el cristal solo en celular */
    .print-col-right {
        background: rgba(0, 0, 0, 0.4) !important; /* Pasamos de 0.2 a 0.4 de oscuridad */
        padding: 30px 20px !important; /* Ajustamos el aire interno para móviles */
    }

    /* 2. Le damos más "cuerpo" a las letras como sugeriste */
    .print-desc {
        font-weight: 500 !important; /* Le quitamos lo delgadito */
        color: rgba(255, 255, 255, 1) !important; /* Blanco puro para máximo contraste */
        font-size: 1.15rem !important;
    }

    /* 3. Resaltamos también las especificaciones técnicas */
    .print-specs {
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* =========================================
   15. WHEY POWER (IMMERSIVE BOKEH APPLE)
   ========================================= */

.apple-immersive-section {
    position: relative;
    height: 250vh; /* Pista de aterrizaje para el scroll */
    background-color: var(--black-color);
}

.immersive-sticky-container {
    position: sticky;
    top: 48px; /* Respetamos tu menú superior de 48px */
    height: calc(100vh - 48px);
    width: 100%;
    overflow: hidden;
}

.immersive-bg {
    position: absolute;
    inset: -5%; 
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05); 
    will-change: filter, transform;
}

.immersive-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); 
    z-index: 2;
}

/* --- VISTA 1: TEXTO HERO --- */
.immersive-view-1 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    color: var(--white-color);
}

.immersive-hero-text {
    max-width: 550px; /* Alineado y contenido a la izquierda */
}

.immersive-hero-text h2 {
    font-size: 4rem; 
    line-height: 1.1; 
    font-weight: 700; 
    letter-spacing: -1.5px;
    margin: 0 0 20px 0; 
    color: var(--white-color); 
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.immersive-hero-text p {
    font-size: 1.25rem; 
    line-height: 1.6; 
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    font-weight: 500;
}

/* --- VISTA 2: SPLIT CINEMÁTICO --- */
.immersive-view-2 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(100%); 
    opacity: 0; 
    z-index: 4;
}

.immersive-split-layout {
    display: flex;
    align-items: center; /* Alinea perfectamente el texto al centro de la foto */
    justify-content: space-between;
    gap: 80px; /* Mucho aire entre la foto y el texto */
    max-width: 1100px;
    margin: 0 auto;
}

/* El contenedor de la foto (Izquierda) */
.immersive-image-container {
    flex: 1;
    border-radius: 30px; /* Esquinas súper redondas */
    overflow: hidden;
    /* Sombras masivas para separarlo del fondo */
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1); /* Brillo sutil en el borde */
    /* Mantenemos una proporción elegante sin importar el tamaño de la pantalla */
    aspect-ratio: 4 / 5; 
    max-height: 65vh; 
}

.immersive-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* El texto flotante (Derecha) */
.immersive-text-container {
    flex: 1;
}

.immersive-text-container h3 {
    font-size: 3.5rem; 
    line-height: 1.1; 
    font-weight: 700;
    color: var(--white-color); /* Blanco puro para contraste extremo */
    letter-spacing: -1px; 
    margin: 0 0 25px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Sombra para legibilidad */
}

.immersive-text-container p {
    font-size: 1.25rem; 
    color: rgba(255,255,255,0.85); /* Un pelín más gris para jerarquía */
    line-height: 1.6; 
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .apple-immersive-section { height: 300vh; } 
    .immersive-hero-text h2 { font-size: 3rem; }
    .immersive-hero-text p { font-size: 1.1rem; }
    
    /* Adaptamos el nuevo layout partido a columna para el celular */
    .immersive-split-layout { flex-direction: column; gap: 40px; text-align: center; }
    .immersive-image-container { width: 100%; max-height: 400px; aspect-ratio: 1 / 1; }
    .immersive-text-container h3 { font-size: 2.5rem; }
}

/* =========================================
   16. MENÚ HAMBURGUESA FULL-SCREEN (APPLE STYLE)
   ========================================= */

/* En escritorio, el contenedor es un "fantasma" para no romper tu diseño actual */
.nav-contents { display: contents; }
.hamburger-btn { display: none; }

/* 📱 MAGIA PARA CELULARES Y TABLETS 📱 */
@media screen and (max-width: 900px) {
    
    /* Reposicionamos la barra superior */
    nav { justify-content: space-between; padding: 0 20px; }
    nav .logo { margin-right: 0; position: relative; z-index: 10001; }
    
    /* Cuando el menú oscuro se abre, pintamos el logo de blanco */
    body.menu-open nav .logo-light { filter: brightness(0) invert(1); }

    /* --- EL BOTÓN HAMBURGUESA --- */
    .hamburger-btn {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 32px; height: 20px;
        background: transparent; border: none; cursor: pointer;
        z-index: 10001; /* Siempre por encima de todo */
        padding: 0; outline: none;
    }
    
    .hamburger-btn .line {
        width: 100%; height: 2px;
        background-color: var(--blue-color);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: left center;
    }
    
    /* Animación a la "X" perfecta */
    body.menu-open .hamburger-btn .line { background-color: var(--white-color); }
    .hamburger-btn.active .line1 { transform: rotate(45deg); width: 23px; }
    .hamburger-btn.active .line2 { opacity: 0; width: 0; }
    .hamburger-btn.active .line3 { transform: rotate(-45deg); width: 23px; }

    /* --- LA PANTALLA COMPLETA OSCURA (EFECTO CORTINA APPLE) --- */
    .nav-contents {
        position: fixed; top: 0; left: 0;
        width: 100%; height: 100vh; height: 100dvh;
        background-color: var(--blue-color);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        
        /* 🚨 MAGIA BÉZIER: Lo escondemos justo arriba del techo de la pantalla */
        visibility: hidden;
        transform: translateY(-100%); 
        
        /* La curva exacta de Apple: Arranca rápido y frena súper suave al final */
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
        
        z-index: 10000;
        overflow-y: auto; 
        padding: 80px 20px 40px;
    }
    
    /* Bloquear el scroll de la página cuando el menú está abierto */
    body.menu-open { overflow: hidden; }
    
    /* Cuando se abre, la cortina cae a la posición 0 */
    body.menu-open .nav-contents { 
        visibility: visible; 
        transform: translateY(0); 
    }
    
    /* Bloquear el scroll de la página cuando el menú está abierto */
    body.menu-open { overflow: hidden; }
    body.menu-open .nav-contents { opacity: 1; visibility: visible; }

    /* --- LA TIPOGRAFÍA GIGANTE --- */
    nav .menu { flex-direction: column; text-align: center; gap: 20px; width: 100%; }
    
    nav .menu > li > a {
        font-size: 2.2rem; /* Tamaño masivo como tu captura */
        font-weight: 700;
        letter-spacing: -1px;
        color: rgba(255, 255, 255, 0.6); /* Blanco con transparencia */
        display: block;
    }
    
    /* El enlace activo se ilumina */
    nav .menu > li > a:hover,
    nav .menu > li > a:active,
    nav .menu > li.current-menu-item > a {
        color: var(--white-color);
    }

/* --- EL ACORDEÓN DE SUBMENÚS (BÉZIER APPLE) --- */
    nav .sub-menu {
        position: static; min-width: 100%; box-shadow: none; background: transparent;
        display: block; /* Vital para que la transición de altura funcione */
        
        /* Magia del acordeón fluido */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        margin-top: 0;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,0);
        
        /* La misma curva premium de la cortina principal */
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.4s ease,
                    margin 0.4s ease,
                    padding 0.4s ease,
                    border-color 0.4s ease;
    }
    
    /* El diseño de los sub-enlaces */
    nav .sub-menu a {
        font-size: 1.15rem;
        color: rgba(255,255,255,0.8);
        padding: 8px 0;
        font-weight: 400;
        display: block;
    }

    /* El icono de "+" para saber que tiene opciones */
    .menu-item-has-children > a::after {
        content: '+';
        display: block;
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--green-color);
        margin-top: -5px;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    }
    
    /* CUANDO SE ABRE EL SUBMENÚ */
    .menu-item-has-children.open .sub-menu { 
        max-height: 400px; /* Límite amplio para que quepan las opciones */
        opacity: 1; 
        visibility: visible;
        padding: 15px 0 10px 0;
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .menu-item-has-children.open > a { color: var(--white-color); }
    .menu-item-has-children.open > a::after { transform: rotate(45deg); color: var(--white-color); }

    /* --- CASCADA INTERNA DE LOS SUB-ENLACES --- */
    nav .sub-menu li {
        opacity: 0;
        transform: translateY(-15px); /* Caen ligeramente desde arriba */
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .menu-item-has-children.open .sub-menu li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Retrasos para el efecto cascada interno */
    .menu-item-has-children.open .sub-menu li:nth-child(1) { transition-delay: 0.10s; }
    .menu-item-has-children.open .sub-menu li:nth-child(2) { transition-delay: 0.15s; }
    .menu-item-has-children.open .sub-menu li:nth-child(3) { transition-delay: 0.20s; }
    .menu-item-has-children.open .sub-menu li:nth-child(4) { transition-delay: 0.25s; }
}

/* =========================================
   COMPORTAMIENTO MÓVIL GLOBAL (RESPONSIVE)
   ========================================= */
@media screen and (max-width: 1024px) {
    /* Poster Milky Shake */
    .poster-section { height: auto; min-height: 100vh; } 
    .poster-content-top h3 { font-size: 2.8rem; }
    /* (Se eliminó el grid forzado, flexbox lo hace solo) */
}

@media screen and (max-width: 900px) {
    /* Módulo Video Hero */
    .product-cinema-hero { height: 80vh; }
    .cinema-title { font-size: 3rem; }
    .cinema-desc { font-size: 1.15rem; }

    /* Slider Té */
    .slider-card { min-width: 85vw; } 
    
    /* Poster Milky Shake */
    .poster-content-top h3 { font-size: 2.2rem; }
    .poster-pack-small { height: 110px; } /* Ligeramente más pequeños para que quepan bien */

    /* Layout Impacto Whey (Z-Pattern Móvil) */
    .impact-section { padding: 60px 0; }
    .impact-row { grid-template-columns: 1fr; gap: 50px; margin-bottom: 80px; }
    
    /* Esta clase hace que en celular, el texto SIEMPRE salga arriba de la foto, sin importar el piso */
    .impact-row.reverse-mobile .impact-text { order: -1; } 
    
    .impact-headline { font-size: 3rem; } 
    .impact-desc { font-size: 1.15rem; max-width: 100%; text-align: left; }
    .impact-rounded-wrapper { height: 350px; } 
    .impact-giant-img { width: 100%; transform: none; } /* En celular no se desborda */

    /* Ajuste del nuevo banner para móvil */
    /* Ajuste del nuevo banner para móvil */
    .whey-explosion-banner { 
        min-height: auto; /* Dejamos que crezca lo que necesite */
        padding: 80px 20px; /* Le damos aire por arriba, abajo y a los lados */
        background-attachment: scroll; /* Quitamos el parallax en móvil por rendimiento */
    }
    .banner-text-block .impact-headline { font-size: 2.5rem; }

    /* =========================================
       NUEVO: APPLE NEWSROOM (TABLET)
       ========================================= */
    /* En tablet, todo se vuelve de 2 en 2 (mitad) */
    .apple-news-card { grid-column: span 3 !important; } 
    /* La primera tarjeta se apila verticalmente */
    .apple-news-card:nth-child(1) { flex-direction: column; }
    .apple-news-card:nth-child(1) .news-card-image,
    .apple-news-card:nth-child(1) .news-card-content { width: 100%; }
    .apple-news-card:nth-child(1) .news-title { font-size: 1.8rem; }
    .apple-news-card:nth-child(1) .news-card-content { padding: 30px; }

    /* Ajustes Archive Móvil */
    .archive-filters { flex-direction: column; align-items: stretch; }
    .apple-select { width: 100%; } /* Selects abarcan todo el ancho */
    .archive-item { flex-direction: column; align-items: flex-start; gap: 20px; }
    .archive-item-img { flex: 0 0 auto; width: 100%; }

    /* Single Post Móvil */
    .article-title { font-size: 2.5rem; }
    .related-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .related-item-img { flex: 0 0 auto; width: 100%; }
}

/* =========================================
   NUEVO: APPLE NEWSROOM (CELULAR)
   ========================================= */
@media screen and (max-width: 600px) {
    /* En celular, todas ocupan el 100% de la pantalla */
    .apple-news-card { grid-column: span 6 !important; }
}

/* =========================================
   PARCHES BLINDADOS PARA MÓVIL Y SAFARI
   ========================================= */
@media screen and (max-width: 900px) {
    
    /* 1. DOMANDO LOS TEXTOS DEL VIDEO */
    .cinema-content {
        width: 100vw !important; /* No puede ser más ancho que la pantalla */
        max-width: 100% !important;
        padding: 0 20px !important;
        display: block !important;
        text-align: center !important;
    }
    
    .cinema-title {
        font-size: 2.5rem !important; /* Letra a la medida del iPhone */
        line-height: 1.1 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 15px !important;
    }

    .cinema-desc {
        font-size: 1.1rem !important;
        padding: 0 10px !important;
    }

    /* 2. SALVANDO EL FOOTER (Rompiendo el flexbox de Safari) */
    .whey-explosion-banner {
        display: block !important; /* Safari colapsa con flex en móvil */
        height: auto !important;
        min-height: auto !important;
        /* Relleno gigante para que el texto respire y el footer no suba */
        padding: 120px 20px !important; 
        background-attachment: scroll !important; 
    }
    
    .whey-explosion-banner .site-container,
    .whey-explosion-banner .banner-text-block {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media screen and (max-width: 400px) {
    /* Ajuste extra para celulares muy angostos (Como iPhone SE) */
    .cinema-title { font-size: 2.1rem !important; }
}

/* =========================================
   SALVANDO EL TEXTO WHEY EN CELULARES
   ========================================= */
@media screen and (max-width: 900px) {
    
    /* 1. Foto panorámica: menos alta para no comerse la pantalla */
    .immersive-image-container {
        max-height: 250px !important;
        aspect-ratio: 16 / 9 !important; 
    }

    /* 2. Reducimos el espacio gigante entre la foto y el texto */
    .immersive-split-layout {
        gap: 20px !important;
        width: 100% !important;
        padding: 0 10px !important;
    }

    /* 3. Letras compactas para que quepa toda la historia */
    .immersive-text-container h3 {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .immersive-text-container p {
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }
}

/* Ajuste extremo para celulares muy pequeñitos (Ej. iPhone SE) */
@media screen and (max-width: 400px) {
    .immersive-image-container { max-height: 180px !important; }
    .immersive-text-container p { font-size: 0.95rem !important; }
}

/* =========================================
   PARCHES HOME (SWITCH, EXPERIENCIA Y BLOG)
   ========================================= */
@media screen and (max-width: 900px) {
    
    /* 1. SEPARACIÓN DEL SWITCH (Soluciones Integrales) */
    .ios-switch-container {
        margin-top: 20px !important;
        margin-bottom: 50px !important; /* Lo empuja hacia arriba, lejos de las tarjetas */
        width: 100% !important;
        display: flex;
        justify-content: center;
    }

    /* 2. COMPACTANDO SECCIÓN EXPERIENCIA */
    .section-experience {
        padding: 70px 20px !important; /* Reducimos el aire arriba y abajo */
    }
    .experience-header {
        margin-bottom: 30px !important;
    }
    .experience-header h2 {
        font-size: 2.5rem !important; /* Texto un poco más manejable */
    }
    .stats-grid {
        gap: 40px !important; /* Acerca los números gigantes */
    }
    .stat-number {
        font-size: 5rem !important;
    }

    /* 3. BLINDANDO EL SLIDER DEL BLOG (Matando el bug de iOS) */
    .news-window {
        height: 500px !important;
        max-height: 500px !important;
        overflow: hidden !important;
        display: block !important; /* Desactivamos flex para evitar estiramientos */
    }
    .news-track {
        height: 100% !important;
        display: block !important; 
    }
    .news-slide {
        height: 500px !important; /* Forzamos a que mida exactamente lo de la ventana */
        display: block !important;
    }
    
    /* Hacemos el texto del blog un pelín más compacto para que no se salga */
    .section-newsroom-vertical .card-content {
        padding: 25px !important; 
    }
    .section-newsroom-vertical .card-content h3 {
        font-size: 1.4rem !important;
        margin-bottom: 10px !important;
    }

    /* =========================================
       PARCHE MÓVIL: MÁRGENES ENTRE SECCIONES
       ========================================= */
    /* 1. Le quitamos el "piso" gigante a la sección de arriba (El ADN/Cápsula) */
    .section-values {
        padding-bottom: 30px !important; /* Antes tenía 100px */
    }

    /* 2. Pegamos el "techo" de la sección de Soluciones Integrales */
    .section-navigation {
        padding-top: 20px !important; /* Lo reducimos aún más */
        padding-bottom: 60px !important;
    }

    /* 3. Forzamos el centrado de cada texto */
    .nav-header-column .section-label,
    .nav-header h2,
    .nav-header p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 4. Aseguramos que la pastilla del switch quede al centro */
    .ios-switch-container {
        margin: 20px auto 40px auto !important;
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* =========================================
   AJUSTES HERO SLIDER (MÓVIL DEFINITIVO)
   ========================================= */
@media screen and (max-width: 900px) {
    .layer.texto-hero {
        align-items: center !important;
        text-align: center !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        /* 1. Empezamos a alinear todo desde arriba */
        justify-content: flex-start !important; 
        /* 2. Le damos aire desde el techo (para que no choque con el menú) */
        padding-top: 7vh !important; 
        /* 3. Le damos aire desde el piso (para los botones) */
        padding-bottom: 18vh !important; 
    }

    .layer.texto-hero h2 { 
        font-size: 2.5rem !important; 
    }
    
    /* 🚨 NUEVO: Hacemos el texto descriptivo un poco más pequeño para que no estorbe */
    .hero-desc {
        font-size: 1.1rem !important; 
        padding: 0 10px !important;
    }

    /* Forzamos a las flechas a encogerse y pegarse a la pared */
    .slider-arrow {
        width: 40px !important; 
        height: 40px !important; 
        font-size: 1rem !important;
    }
    .slider-arrow.prev { left: 10px !important; }
    .slider-arrow.next { right: 10px !important; }

    /* Botones apilados estilo App */
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 300px !important;
        /* 🚨 LA MAGIA: El margin-top en 'auto' actúa como un resorte que empuja 
           los botones hasta el fondo, separándolos del texto 🚨 */
        margin: auto auto 0 auto !important; 
    }

    .btn-hero {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

/* =========================================
   17. SISTEMA DE NOTIFICACIONES (APPLE TOAST)
   ========================================= */
.apple-toast {
    position: absolute; /* Absoluto al contenedor para que baje justo sobre el formulario */
    top: -20px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    
    /* Efecto Vidrio Esmerilado Premium */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 14px 24px;
    border-radius: 50px;
    z-index: 100;
    
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black-minus-color);
    
    /* La curva mágica de Apple para caer */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Estado Visible */
.apple-toast.show {
    top: -70px; /* Sube flotando por encima del formulario */
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Colores de estado estilo iOS */
.apple-toast.success .toast-icon { color: var(--green-color); } /* Verde Apple */
.apple-toast.error .toast-icon { color: var(--red-color); }   /* Rojo Apple */

/* Animación de carga para el botón */
.btn-loading {
    opacity: 0.7;
    cursor: wait !important;
}

/* Aseguramos que el contenedor padre permita el efecto flotante */
.contact-form-wrapper {
    position: relative;
}

/* =========================================
   18. PÁGINAS LEGALES (BLINDADO ESTILO APPLE)
   ========================================= */

/* --- MENÚ STICKY --- */
.legal-sticky-nav {
    position: sticky !important;
    top: 48px !important; 
    z-index: 990 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid #d2d2d7 !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Baja el menú si tienes la barra de administrador abierta */
.admin-bar .legal-sticky-nav {
    top: 80px !important;
}

.legal-nav-container {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.legal-nav-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--black-minus-color) !important;
}

.legal-nav-links {
    display: flex !important;
    gap: 30px !important;
}

.legal-nav-links a {
    font-size: 0.85rem !important;
    color: var(--darker-gray-color) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
}

.legal-nav-links a:hover {
    color: var(--black-minus-color) !important;
}

/* --- EL DOCUMENTO PLANO (SIN CAJAS, ESTILO APPLE) --- */
.legal-main-content {
    background-color: var(--bg-blue-color) !important; 
    padding: 0 0 120px 0 !important;
    width: 100% !important;
}

.legal-document {
    max-width: 760px !important; /* Ancho ajustado para lectura óptima */
    margin: 0 auto !important;
    padding: 80px 20px !important;
    background: transparent !important;
    box-shadow: none !important; /* Eliminamos cajas y sombras */
}

/* --- CABECERA CENTRADA --- */
.legal-header-center {
    text-align: center !important;
    margin-bottom: 80px !important;
    border-bottom: 1px solid #d2d2d7 !important;
    padding-bottom: 40px !important;
}

.legal-header-center h1 {
    font-size: 3.5rem !important;
    letter-spacing: -1.5px !important;
    color: var(--black-minus-color) !important; /* Forzamos el negro (Adiós verde) */
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.legal-intro-text {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    color: var(--darker-gray-color) !important; /* Gris oscuro para el subtítulo */
    max-width: 600px !important;
    margin: 0 auto 25px auto !important;
    font-weight: 400 !important;
}

.legal-updated {
    font-size: 0.85rem !important;
    color: var(--dark-gray-color) !important;
    font-weight: 500 !important;
}

/* --- CUERPO DEL TEXTO --- */
.legal-section {
    margin-bottom: 60px !important;
}

.legal-section h2 {
    font-size: 1.6rem !important;
    letter-spacing: -0.5px !important;
    color: var(--black-minus-color) !important; /* Forzamos el negro (Adiós verde) */
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    font-weight: 600 !important;
}

.legal-section p, 
.legal-section li {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    color: var(--black-light-color) !important; /* Negro/Gris suave para lectura */
    margin-bottom: 20px !important;
    font-weight: 400 !important;
}

.legal-section ul, 
.legal-section ol {
    padding-left: 20px !important;
    margin-bottom: 30px !important;
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .legal-nav-container { 
        padding: 0 20px !important; 
        overflow-x: auto !important; 
        white-space: nowrap !important; 
        justify-content: flex-start !important; 
    }
    
    .legal-nav-title { 
        position: sticky !important; 
        left: 0 !important; 
        background: rgba(255, 255, 255, 0.95) !important; 
        padding-right: 20px !important; 
        z-index: 2 !important;
    }

    .legal-header-center h1 { font-size: 2.5rem !important; }
    .legal-intro-text { font-size: 1.1rem !important; }
    .legal-document { padding: 40px 20px !important; }
}

/* --- ÍNDICE LEGAL (APPLE PREMIUM) --- */
.legal-index-container {
    max-width: 760px;
    margin: 0 auto 80px auto;
    background: rgba(245, 245, 247, 0.6); /* Gris clarito translúcido Apple */
    border: 1px solid #d2d2d7;
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
}

.legal-index-title {
    font-size: 0.95rem !important;
    color: var(--dark-gray-color) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    text-align: center;
    font-weight: 700 !important;
}

.legal-index-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Lista a dos columnas */
    gap: 15px 30px;
}

.legal-index-list li {
    margin: 0 !important;
}

.legal-index-list a {
    color: var(--blue-color);
    font-size: 1.05rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Flechita animada oculta */
.legal-index-list a::before {
    content: '→';
    font-size: 1.2rem;
    color: var(--green-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-index-list a:hover {
    color: var(--black-minus-color);
    transform: translateX(5px);
}

.legal-index-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Modo oscuro para el índice */
body.dark-mode .legal-index-container {
    background: rgba(28, 28, 30, 0.5);
    border-color: #38383a;
}

@media screen and (max-width: 768px) {
    .legal-index-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .legal-index-list {
        grid-template-columns: 1fr; /* Pasa a 1 columna en celular */
        gap: 20px;
    }
}

/* =========================================
   19. MAPA DEL SITIO (APPLE SITEMAP)
   ========================================= */
.sitemap-page {
    background-color: var(--bg-blue-color); /* Fondo blanco puro */
    padding: 80px 0 140px 0;
}

.sitemap-container {
    max-width: 980px; /* Ancho exacto que usa Apple para listas de texto */
    margin: 0 auto;
    padding: 0 40px;
}

.sitemap-header {
    border-bottom: 1px solid var(--gray-alter-color); /* La línea gris finita de Apple */
    padding-bottom: 25px;
    margin-bottom: 45px;
}

.sitemap-header h1 {
    font-size:1.3rem;
    color: var(--blue-color);
    letter-spacing: -0.5px;
    font-weight: 600;
    margin: 0;
}

/* El Grid que acomoda las listas */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas idénticas */
    gap: 40px 30px; 
}

.sitemap-column h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-color);
    margin: 0 0 15px 0;
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0; /* Da espacio por si hay otro bloque debajo (como en la Columna 1) */
}

.sitemap-column ul li {
    margin-bottom: 12px;
}

.sitemap-column ul li a {
    font-size: 1rem;
    color: var(--blue-apple-color); /* 🚨 EL AZUL CLÁSICO DE APPLE 🚨 */
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* Apple subraya los enlaces al hacer hover en el sitemap */
.sitemap-column ul li a:hover {
    text-decoration: underline;
    color: var(--green-color);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columnas en Tablet */
    }
}

@media screen and (max-width: 600px) {
    .sitemap-container { padding: 0 20px; }
    .sitemap-grid {
        grid-template-columns: 1fr; /* 1 Columna en Celular */
        gap: 0;
    }
    .sitemap-column ul { margin-bottom: 30px; }
    .sitemap-header h1 { font-size: 1.8rem; }
}

/* =========================================
   20. PÁGINA NOSOTROS (CINEMATIC CORPORATE)
   ========================================= */
.apple-corporate-page {
    background: var(--bg-blue-color);
    padding-bottom: 120px;
}

/* --- 1. HERO CINEMÁTICO CON VIDEO --- */
.corp-hero {
    position: relative;
    height: 100vh; /* Pantalla Completa "Cine Jajaja" 🎬 */
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.corp-hero-bg {
    position: absolute; inset: 0; z-index: 1;
}

/* 🚨 FÍSICA DEL VIDEO DE FONDO 🚨 */
.corp-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Se expande como el cine, sin deformarse */
}

.corp-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); /* Oscurecimiento sutil para que el texto resalte */
}

.corp-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.corp-eyebrow {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.corp-hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--white-color);
    margin: 0;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5); /* Sombra suave para máxima legibilidad */
}

/* --- 2. DECLARACIÓN GIGANTE --- */
.corp-statement-section {
    padding: 160px 0; /* Más aire entre secciones */
    text-align: center;
    background: var(--bg-blue-color);
}

.corp-giant-statement {
    max-width: 950px;
    margin: 0 auto;
    font-size: 2.3rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--black-minus-color); /* El negro de Apple */
    letter-spacing: -0.5px;
}

.corp-statement-highlight {
    color: var(--blue-color); /* Resaltamos la segunda parte con tu azul */
}

/* --- 3. IMAGEN CENTRAL REDONDEADA --- */
.corp-showcase-section {
    padding: 0 0 80px 0;
    background: var(--bg-blue-color);
}

.corp-showcase-frame {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 40px; /* Bordes redondeados masivos estilo Apple */
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08); /* Sombra elegante */
}

.corp-showcase-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 4. SECCIÓN DE VALORES (ESTILO APPLE PREMIUM) --- */
.corp-values-section {
    padding: 50px 0 100px 0;
    background: var(--bg-blue-color);
}

/* 🚨 LA MAGIA: Obligamos al contenedor a romper la fila y poner el texto arriba 🚨 */
.corp-values-section .site-container {
    display: block !important;
}

/* Cabecera idéntica a Apple Reference Image */
.corp-values-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px auto; /* Mucho aire antes del grid */
}

.corp-values-title {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
    color: var(--blue-color);
    margin-bottom: 25px;
}

.corp-values-intro-text {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--darker-gray-color); /* Gris oscuro para el subtítulo */
    font-weight: 400;
}

/* El Flex Grid Inteligente */
.corp-values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los elementos huérfanos de la fila inferior */
    gap: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.corp-value-item {
    flex: 0 1 30%; /* Ocupan un 30% aprox, forzando 3 arriba y 2 abajo */
    min-width: 280px; /* Si la pantalla se hace pequeña, bajan al siguiente renglón */
    display: flex;
    flex-direction: column;
    align-items: center; /* Lo centra horizontalmente */
    text-align: center;  /* Centra el texto */
    background: var(--bg-blue-color);
    transition: all 0.5s ease;
}

/* 🚨 ANIMACIÓN SOFISTICADA DE ICONOS 🚨 */
.value-icon {
    font-size: 3rem;
    color: var(--green-color); /* El verde corporativo */
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Curva suave de Apple */
    filter: drop-shadow(0 0 0 rgba(0, 153, 0, 0)); /* Sombra de luz invisible */
}

/* Estado al pasar el mouse */
.corp-value-item:hover .value-icon {
    transform: translateY(-8px) scale(1.05); /* El icono flota y crece ligeramente */
    color: var(--blue-color); /* Cambia suavemente a tu azul corporativo */
    filter: drop-shadow(0 4px 15px rgba(0, 102, 204, 0.2)); /* Se ilumina con tu azul */
}

.corp-value-item h3 {
    font-size: 1.3rem;
    color: var(--black-minus-color);
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.4s ease;
}

.corp-value-item:hover h3 {
    color: var(--blue-color); /* El título también se ilumina en azul */
}

.corp-value-item p {
    font-size: 1.05rem;
    color: var(--darker-gray-color);
    line-height: 1.65;
    margin: 0;
}

/* --- RESPONSIVE MÓVIL --- */
@media screen and (max-width: 900px) {
    .corp-hero { height: 80vh; }
    .corp-hero-content h1 { font-size: 3.5rem; letter-spacing: -1px; }
    .corp-giant-statement { font-size: 1.7rem; padding: 0 20px; }
    .corp-statement-section { padding: 120px 0; }
    
    /* 🚨 MAGIA: Reducimos el espacio debajo de la foto de 120px a 30px */
    .corp-showcase-section { padding: 0 0 30px 0; } 
    /* 🚨 MAGIA: Reducimos el espacio arriba del título de valores */
    .corp-values-section { padding: 30px 0 80px 0; } 
    
    .corp-showcase-frame { border-radius: 20px; margin: 0 20px; }
    .corp-values-title { font-size: 2.8rem; }
    .corp-values-intro-text { font-size: 1.2rem; }
    
    /* En tablet, las columnas se ponen mitad y mitad */
    .corp-value-item { flex: 0 1 45%; }
}

@media screen and (max-width: 600px) {
    .corp-hero { height: 70vh; }
    .corp-hero-content h1 { font-size: 2.8rem; }
    .corp-giant-statement { font-size: 1.45rem; }
    .corp-header-center { padding-bottom: 60px; }
    
    /* En celular, una sola columna */
    .corp-values-grid { flex-direction: column; gap: 60px; padding: 0 20px; }
    .corp-value-item { align-items: center; text-align: center; flex: 0 1 100%; } /* Centrado en celular */
}

/* =========================================
   BLINDAJE MÓVIL: TEXTOS LARGOS EN HERO
   ========================================= */
@media screen and (max-width: 600px) {
    .layer.texto-hero {
        /* Reducimos la zona de seguridad lateral para darle aire a las palabras largas */
        padding-left: 35px !important;
        padding-right: 35px !important;
    }

    .layer.texto-hero h2 {
        /* Ajustamos sutilmente el tamaño y apretamos las letras para que "encapsulada" quepa entera */
        font-size: 2.2rem !important;
        letter-spacing: -1px !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        /* Bajamos un poco el subtítulo para que no compita con el H2 */
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
    }
}

/* =========================================
   ACONDICIONAMIENTO (PÍLDORAS ESTILO APPLE)
   ========================================= */
.dual-packaging {
    text-align: center;
    margin-bottom: 50px; /* Aire necesario antes del botón */
}

.packaging-title {
    font-size: 1.25rem;
    color: var(--blue-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.packaging-pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Por si lo abren en celular, que se acomoden hacia abajo */
}

.packaging-pill-list li {
    background-color: var(--white-color);
    color: var(--dark-gray-color);
    padding: 14px 28px;
    border-radius: 50px; /* Bordes totalmente redondos */
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Sombra súper suave */
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Efecto levitación al pasar el mouse */
.packaging-pill-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    color: var(--blue-color);
}

/* =========================================
   PARCHE MÓVIL: RESPIRACIÓN HERO (LEVITACIÓN)
   ========================================= */
@media screen and (max-width: 900px) {
    /* Seleccionamos las capas que tienen velocidad y las hacemos flotar a distintos ritmos */
    .slide-container .layer[data-speed="2"] img { 
        animation: heroLevitate 4s ease-in-out infinite; 
    }
    .slide-container .layer[data-speed="4"] img { 
        /* reverse hace que flote al lado contrario, creando profundidad */
        animation: heroLevitate 5s ease-in-out infinite reverse; 
    }
    .slide-container .layer[data-speed="8"] img { 
        /* Retraso de 1s para que no se mueva igual que los demás */
        animation: heroLevitate 6s ease-in-out infinite 1s; 
    }

    @keyframes heroLevitate {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-12px); } /* Sube 12 pixeles suavemente */
    }
}

/* =========================================
   PARCHE MÓVIL: ENCUADRE DE FOTOS (SLIDER TÉ)
   ========================================= */
@media screen and (max-width: 900px) {
    
    /* Tarjeta 2: Fondo Café (Presentación perfecta) */
    /* Empujamos la cámara hacia la izquierda (20%) y hacia abajo (80%) */
    .apple-full-card.slider-card:nth-child(2) .full-card-bg {
        object-position: 20% 80% !important; 
    }

    /* Tarjeta 3: Fondo Morado (Acondicionamiento) */
    /* Empujamos la cámara hacia la DERECHA para rescatar las bolsas de té */
    .apple-full-card.slider-card:nth-child(3) .full-card-bg {
        object-position: 35% center !important; 
    }
    
    /* (Extra) Si necesitas ajustar la Tarjeta 1 o 4, esta es la estructura: */
    /*
    .apple-full-card.slider-card:nth-child(1) .full-card-bg {
        object-position: center bottom !important; 
    }
    */
}

/* =========================================
   PARCHE MÓVIL: CENTRAR ICONOS DE ESPECIFICACIONES
   ========================================= */
@media screen and (max-width: 900px) {
    /* Forzamos a la tarjeta a alinear todo su contenido al centro geométrico */
    .spec-card {
        align-items: center !important;
        text-align: center !important;
    }

    /* Aseguramos que el contenedor del icono no tenga márgenes invisibles a los lados */
    .spec-icon-top {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Por si acaso el texto está dentro de una sub-caja rebelde */
    .spec-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   PARCHE: COLORES Y CENTRADO DEL MENÚ MÓVIL
   ========================================= */
@media screen and (max-width: 900px) {
    
    /* --- 1. MODO CLARO (Blindaje de colores) --- */
    .nav-contents {
        background-color: var(--blue-color) !important; /* Fondo blanco puro */
    }
    
    nav .menu > li > a {
        color: var(--white-color)!important;
    }
    
    nav .sub-menu a {
        color: var(--white-color)!important; 
    }

    .menu-item-has-children.open > a,
    nav .menu > li > a:hover {
        color: var(--green-color) !important; /* Se ilumina de verde al tocarlo */
    }

    nav .social a {
        color: var(--white-color)!important;
    }

    .switch {
        color: var(--white-color);
    }

    /* --- 2. MODO OSCURO (Blindaje de colores) --- */
    body.dark-mode .nav-contents {
        background-color: #1c1c1e !important; /* Fondo gris súper oscuro Apple */
    }
    
    body.dark-mode nav .menu > li > a {
        color: #ffffff !important; /* Letra blanca pura */
    }

    body.dark-mode nav .social a {
        color: #ffffff !important; /* Letra blanca pura */
    }

    body.dark-mode .switch {
        color: #ffffff!important;
    }
    
    body.dark-mode nav .sub-menu a {
        color: #ffffff !important; /* Gris claro para los submenús */
    }

    body.dark-mode .menu-item-has-children.open > a,
    body.dark-mode nav .menu > li > a:hover {
        color: var(--green-color) !important;
    }

    /* --- 3. CENTRAR EL SWITCH MODO OSCURO --- */
    /* Apuntamos a la caja contenedora del switch para forzarla al centro */
    .dark-toggle, 
    .switch,
    nav .menu > li:last-child { 
        margin: 40px auto 0 auto !important; /* Mucho aire arriba para separarlo */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* --- 4. BLINDAJE DE LA "X" (Cerrar Menú) --- */
    /* Fuerza a que las líneas de la X siempre sean blancas puras, 
       sin importar qué haga el modo oscuro en el resto de la página */
    body.menu-open .hamburger-btn .line {
        background-color: #ffffff !important;
    }
}