/* HERO · al hacer scroll, el Esclabot gigante y luego los 6 especialistas atraviesan la pantalla (js/hero-tunel.js).
   Sobre el hero original: no cambia el titular, los botones ni el fondo. Los colores de los Esclabots no se tocan. */
.hero-pista { height: calc(min(100vh - 64px, 900px) + 130vh); }
.hero-pista .hero { position: sticky; top: 64px; }
.hero-pista .esclabot-container { align-self: stretch; }

.equipo-escena {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}
/* Sin will-change: transform: el navegador fijaría la resolución del tamaño inicial (diminuto, al fondo del túnel) y lo agrandaría borroso. */
.esclabot-gigante { width: 100%; max-width: 375px; }
.hero-pista .esclabot { max-width: none; }

.tcard { position: absolute; left: 50%; top: 50%; opacity: 0; user-select: none; pointer-events: none; }
.tcard img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(26, 26, 46, .2)); }
.tcard .closed { position: absolute; inset: 0; opacity: 0; animation: blink 2s steps(1) infinite; }
.tcard span {
    position: absolute;
    left: 50%;
    bottom: -4%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: .35em .9em;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(26, 26, 46, .14);
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 700;
    color: #1a1a2e;
}
.tcard i { width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; }

/* Operaciones, el que se queda al final: flota como el gigante */
.tcard.cierre img { animation: float 6s ease-in-out infinite; }

/* Móvil: el hero también queda fijo mientras dura el efecto, compacto para que quepa en pantalla (Esclabots arriba, texto abajo) */
@media (max-width: 768px) {
    .hero-pista { height: calc(100svh - 64px + 110vh); }
    .hero-pista .hero { height: calc(100svh - 64px); min-height: 0; padding: 8px 16px 16px; gap: 6px; }
    .hero-pista .esclabot-container { align-self: auto; width: 100%; max-width: 100%; flex: 1 1 0; min-height: 170px; margin: 0; }
    .hero-pista .esclabot-gigante { max-width: min(250px, 30svh); }
    .hero-pista .brand-name { margin-bottom: 8px; font-size: 12px; }
    .hero-pista .tagline { font-size: clamp(26px, 4.6svh, 34px); margin-bottom: 10px; }
    .hero-pista .subtitle { font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
    .hero-pista .cta-container { gap: 10px; }
    .hero-pista .cta-note { margin-top: 10px; }
}
@media (max-width: 768px) and (max-height: 700px) { .hero-pista .cta-note { display: none; } }

/* "Reducir movimiento": hero original, sin recorrido fijo */
.hero-pista.estatico { height: auto; }
.hero-pista.estatico .hero { position: relative; top: auto; }
@media (max-width: 768px) {
    .hero-pista.estatico .hero { height: auto; padding: 48px 16px 60px; justify-content: center; }
    .hero-pista.estatico .esclabot-container { flex: 0 0 auto; max-width: 240px; margin: 0 auto; }
}
