/* =========================================
   0. RESET Y RESPONSIVIDAD GLOBAL 🚀
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip; /* clip en vez de hidden: evita scroll horizontal sin crear scroll container (que rompería position:sticky) */
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* =========================================
   1. HEADER Y NAVEGACIÓN 🏗️
   ========================================= */
.header-principal {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 900;
    pointer-events: none; /* el área invisible no bloquea clics */
}

.sticky-header {
    position: sticky;
    top: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background-color: #001a33;
    width: 100%;
}

.titulo-empresa {
    color: rgb(255, 255, 255);
    font-size: clamp(1.4rem, 5vw, 5rem);
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(255, 8, 8, 0.8);
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-abeja-interior {
    height: clamp(30px, 8vw, 150px);
    width: auto;
    margin-left: clamp(5px, 1.5vw, 20px);
    object-fit: contain;
}

.menu-hamburguesa {
    position: fixed;
    top: 20px;
    right: 5%;
    background: transparent;
    border: none;
    color: white;
    font-size: 35px;
    line-height: 1;
    /* Zona táctil de 44x44 (antes 31x47): el dibujo no cambia, solo el área que responde al dedo. */
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: auto; /* recibe clics aunque el header sea no-interactivo */
}

/* =========================================
   2. MENÚ LATERAL DESPLEGABLE 📱
   ========================================= */
#nav-principal {
    position: fixed;
    top: 0;
    right: -320px;                     /* siempre más allá del borde, incluso con el ancho reducido */
    width: min(300px, 88vw);           /* en un celular de 320 px no ocupa todo el ancho */
    height: 100vh;
    height: 100dvh;                    /* iPhone: sigue a la barra de Safari y no queda tapado por ella */
    background-color: #1a2d5a;
    transition: right 0.4s ease, visibility 0s linear 0.4s, box-shadow 0.4s ease;
    z-index: 1200;
    /* Cerrado: sin sombra (con -5px/15px de desenfoque se asomaba una franja gris por el
       borde derecho de TODAS las páginas) y sin foco: sus enlaces no se alcanzan con Tab. */
    box-shadow: none;
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

#nav-principal.activo {
    right: 0;
    visibility: visible;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease, visibility 0s, box-shadow 0.4s ease;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(8, 19, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.nav-overlay.activo {
    opacity: 1;
    pointer-events: auto;
}

body.menu-lateral-abierto {
    overflow: hidden;
}

.nav-logo-inicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 20px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}
#nav-principal .nav-logo-inicio:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    padding: 30px 20px 20px;
}
.nav-logo-inicio img {
    width: 70px;
    height: auto;
    object-fit: contain;
}
.nav-logo-inicio span {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#nav-principal ul {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    flex: 1;
}

#nav-principal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
}

#nav-principal a:hover,
#nav-principal a.activo {
    color: #f0a500;
    background-color: rgba(240, 165, 0, 0.08);
    padding-left: 32px;
    border-left-color: #f0a500;
}

/* =========================================
   3. BANNER PRINCIPAL (CHEVRON + CRISTAL) 🖥️
   ========================================= */
.banner-moderno {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 0; /* Asegura que no haya bordes blancos */
    overflow: hidden;
    background-color: #1a365d;
    margin-top: 0;
}

.video-slider-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-fondo-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.video-fondo-banner.activo {
    opacity: 1;
}

/* ── Imágenes en el banner ──────────────────────────────────────────────
   Los videos se recortan a propósito (min-width/min-height al 100%), pero a
   una imagen eso le corta los bordes y se pierde parte del contenido. Las
   piezas de imagen se muestran COMPLETAS con object-fit:contain, y el espacio
   sobrante se rellena con una copia difuminada de la misma imagen para que no
   queden franjas vacías, sea cual sea la proporción del archivo. */
.video-fondo-banner.imagen-fondo-banner {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    overflow: hidden;
}

.imagen-fondo-banner .relleno-difuminado {
    position: absolute;
    /* Se desborda para que el desenfoque no deje bordes claros en las orillas */
    inset: -6%;
    background-size: cover;
    background-position: center;
    filter: blur(34px) brightness(0.5);
    z-index: 0;
}

.imagen-fondo-banner img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.banner-overlay-oscuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-logo-fondo {
    position: absolute;
    bottom: 0px;
    right: 40px;
    width: 260px;
    max-width: 28%;
    opacity: 0.88;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.caja-flotante-central {
    position: relative;
    z-index: 2;
    background-color: rgba(26, 54, 93, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    max-width: 800px;
    width: 90%;
    padding: clamp(24px, 5vw, 60px) clamp(20px, 4vw, 40px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.caja-flotante-central h1 {
    font-size: clamp(1.6rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
}

.caja-flotante-central p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.btn-flecha {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-flecha:hover {
    background-color: white;
    color: #1a365d;
}

.controles-slider {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 20px;
}

.btn-control-video {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.btn-control-video:hover {
    background-color: white;
    color: #1a365d;
    transform: scale(1.1);
}

/* =========================================
   4. IDENTIDAD CORPORATIVA 
   ========================================= */
.identidad-corporativa {
    padding: 40px 0;
}

.mision-vision-contenedor {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-mv {
    background-color: #1a365d;
    color: white;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 2px solid #2a4365;
}

.tarjeta-mv h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.linea-amarilla {
    width: 60%;
    height: 4px;
    background-color: #ecc94b;
    margin: 0 auto 20px auto;
}

.tarjeta-mv p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.jeer-texto {
    font-size: 0.95rem;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-bottom: 0;
}

/* =========================================
   5. VALORES Y PRINCIPIOS 
   ========================================= */
.valores-corporativos {
    padding: 60px 5%;
    text-align: center;
    background-color: #f8f9fa;
}

.titulo-seccion {
    color: #1a365d;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 10px;
}

.linea-amarilla-centro {
    width: 100px;
    height: 4px;
    background-color: #ecc94b;
    margin: 0 auto 40px auto;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.valor-item {
    background-color: #1a365d;
    color: white;
    border: 2px solid #2a4365;
    border-top: 4px solid #ecc94b;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.valor-item strong {
    color: #ecc94b;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* =========================================
   6. CARRUSEL DE MARCAS 
   ========================================= */
.seccion-marcas {
    background: #ffffff;
    padding: 24px 0;
    overflow: hidden;
    border-top: 3px solid #ecc94b;
    border-bottom: 1px solid #e5e7eb;
}

.carrusel-pista {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    padding: 0 12px;
    animation: scroll-infinito 30s linear infinite;
}

.carrusel-pista:hover {
    animation-play-state: paused;
}

.logo-marca-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 112px;
    flex: 0 0 220px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 45, 90, 0.1);
}

.logo-marca-item::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--logo-acento, #ecc94b);
}

.logo-marca {
    max-width: 190px;
    max-height: 82px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-marca:hover {
    transform: scale(1.1);
}

@keyframes scroll-infinito {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   7. NUESTROS SERVICIOS 
   ========================================= */
.nuestros-servicios {
    padding: 80px 5%;
    background-color: #f8f9fa;
    text-align: center;
}

.contenedor-servicios {
    max-width: 1200px;
    margin: 0 auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-servicio {
    background-color: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid #1a365d;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: #ecc94b;
}

.icono-servicio {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.tarjeta-servicio h3 {
    color: #1a365d;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.tarjeta-servicio p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* =========================================
   8. NUESTRA HISTORIA 
   ========================================= */
.historia-corporativa {
    position: relative;
    z-index: 10;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 56px 5% 80px;
    background-color: #ffffff;
}

.historia-contenedor {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.historia-texto {
    flex: 1;
}

.titulo-historia {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #e2e8f0;
    text-transform: uppercase;
    line-height: 0.8;
    margin-bottom: 30px;
    margin-top: 0;
}

.titulo-historia span {
    color: #e53e3e;
    display: block;
    font-weight: 900;
}

.historia-texto p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: justify;
}

.historia-imagen {
    flex: 1;
    text-align: center;
    position: relative;
}

.historia-imagen img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.historia-caption {
    background-color: #e2bf4f;
    color: black;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    margin-top: -25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.historia-caption strong {
    font-size: 1.1rem;
    display: block;
}

.historia-caption span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================
   9. BANNER DE ACCIÓN (FINAL)
   ========================================= */
.banner-accion {
    position: relative;
    padding: clamp(60px, 10vw, 100px) 20px;
    text-align: center;
    background-color: var(--fondo-banner-accion, #1a365d);
    color: white;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.88);
    z-index: 1;
}

.banner-contenido {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.banner-contenido h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner-contenido p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 40px;
}

.btn-buscar {
    display: inline-block;
    background-color: #ecc94b;
    color: #1a365d;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(236, 201, 75, 0.4);
    transition: all 0.3s ease;
}

.btn-buscar:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    color: #1a365d;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* =========================================
   10. FOOTER PRINCIPAL
   ========================================= */
.footer-principal {
    background: #001a33;
    color: white;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Columna marca */
.footer-marca {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.footer-nombre {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: white;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
}

.footer-redes {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-red {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-red:hover {
    background: #ecc94b;
    color: #001a33;
    border-color: #ecc94b;
}

/* Columna navegación */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;                 /* el espacio entre enlaces ahora lo da el relleno de cada uno */
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
    /* Zona táctil de ~40 px (antes 20 px): en celular los enlaces estaban muy pegados para el dedo. */
    padding: 10px 0;
}

.footer-nav a:hover {
    color: #ecc94b;
    padding-left: 6px;
}

.footer-col-titulo {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ecc94b;
    font-weight: 700;
    margin: 0 0 18px;
}

/* Columna contacto */
.footer-dato {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

/* Correo y teléfono son enlaces: zona táctil de 44 px. */
a.footer-dato {
    min-height: 44px;
    margin-bottom: 0;
}

.footer-marcas-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-marcas-mini img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-marcas-mini img:hover { opacity: 0.9; }

/* Barra inferior */
.footer-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ── Enlace activo en el menú lateral ── */
#nav-principal a.nav-activo {
    color: #ecc94b;
    border-bottom-color: rgba(236, 201, 75, 0.3);
    padding-left: 8px;
}

/* =========================================
   📱 11. ADAPTACIÓN A CELULARES (MEDIA QUERIES)
   ========================================= */

/* Tablets */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-marca { grid-column: 1 / -1; }
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tarjeta-servicio {
        padding: 28px 16px;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 6%;
    }
    .footer-barra {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* Celulares */
@media (max-width: 768px) {
    /* Banner Principal */
    .caja-flotante-central p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .controles-slider {
        bottom: 30px;
        gap: 15px;
    }
    .btn-control-video {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Misión y Visión */
    .mision-vision-contenedor {
        flex-direction: column;
        padding: 0 20px;
    }

    /* Historia */
    .historia-contenedor {
        flex-direction: column;
        gap: 40px;
    }

    /* Servicios */
    .nuestros-servicios {
        padding: 50px 5%;
    }
}

/* Celulares pequeños */
@media (max-width: 480px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    .valores-grid {
        grid-template-columns: 1fr;
    }
    .logo-container {
        padding: 14px 0;
    }
    .menu-hamburguesa {
        top: 14px;
    }
}

@media (max-width: 600px) {
    .logo-marca { height: 70px; }
}

/* =========================================
   ANIMACIONES MULTIDIRECCIONALES 🚀
   ========================================= */
/* Diferentes puntos de partida (ocultos) */
html.js-animaciones .oculto-izq {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

html.js-animaciones .oculto-der {
    opacity: 0;
    transform: translateX(150px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

html.js-animaciones .oculto-abajo {
    opacity: 0;
    transform: translateY(150px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

html.js-animaciones .oculto-escala {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* El punto de llegada (visible) para TODOS.
   "none" y no "translateX(0) ... scale(1)": una transformación de identidad igual crea un
   bloque contenedor para los hijos con position:fixed. El panel de la estación (dentro de
   .contenedor-mapa) se anclaba al mapa y no a la pantalla, y en celular se salía por arriba. */
html.js-animaciones .mostrar-scroll {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js-animaciones .oculto-izq,
    html.js-animaciones .oculto-der,
    html.js-animaciones .oculto-abajo,
    html.js-animaciones .oculto-escala {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================
   EFECTO CASCADA PARA LOS VALORES 🌊
   ========================================= */
/* Fila 1 */
.valores-grid .valor-item:nth-child(1) {
    transition-delay: 0s;
}
.valores-grid .valor-item:nth-child(2) {
    transition-delay: 0.1s;
}
.valores-grid .valor-item:nth-child(3) {
    transition-delay: 0.2s;
}
.valores-grid .valor-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* Fila 2 */
.valores-grid .valor-item:nth-child(5) {
    transition-delay: 0s;
}
.valores-grid .valor-item:nth-child(6) {
    transition-delay: 0.1s;
}
.valores-grid .valor-item:nth-child(7) {
    transition-delay: 0.2s;
}
.valores-grid .valor-item:nth-child(8) {
    transition-delay: 0.3s;
}

/* Fila 3 */
.valores-grid .valor-item:nth-child(9) {
    transition-delay: 0s;
}
.valores-grid .valor-item:nth-child(10) {
    transition-delay: 0.1s;
}
.valores-grid .valor-item:nth-child(11) {
    transition-delay: 0.2s;
}
.valores-grid .valor-item:nth-child(12) {
    transition-delay: 0.3s;
}

/* =========================================
   ANIMACIÓN DE LATIDO PARA BOTONES ❤️
   ========================================= */

/* Solo le agregas esta clase a tu botón en el HTML */
.btn-latido {
    animation: efecto-latido 2s infinite;
}

/* Las instrucciones de la animación */
@keyframes efecto-latido {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 201, 75, 0.7); /* Sombra dorada pegada al botón */
    }
    50% {
        transform: scale(1.05); /* Crece un 5% */
        box-shadow: 0 0 0 15px rgba(236, 201, 75, 0); /* La sombra se expande y se hace transparente */
    }
    100% {
        transform: scale(1); /* Regresa a la normalidad */
        box-shadow: 0 0 0 0 rgba(236, 201, 75, 0);
    }
}

/* =========================================
   TEATRO DE SCROLL — SERVICIOS
   Fallback mínimo; servicios.css lo sobreescribe con 600vh
   ========================================= */
.teatro-scroll {
    position: relative;
    height: 600vh;
}
.escenario-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
}
.actor-imagen {
    position: absolute;
    max-width: 400px;
    max-height: 400px;
    width: 55vw;
    object-fit: contain;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.actor-oculto  { opacity: 0; transform: scale(0.8); pointer-events: none; }
.actor-visible { opacity: 1; transform: scale(1);   pointer-events: auto; }
