/* ==========================================================================
   GLYMDO VISION — Showcase
   Fondo blanco. Dos videos a los costados (interior desvanecido, no se tocan).
   Al centro, en columna y sobre blanco limpio: título + descripción, una
   imagen de escaneo GRANDE y visible con detección en vivo, las viñetas y el
   CTA. A los lados van apareciendo notificaciones a medida que se hace scroll.
   Scoped: #vision-showcase / .vp-scene
   ========================================================================== */

.vp-scene {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--bg-primary);   /* blanco en claro, negro en oscuro: el desvanecido sigue el tema */
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vh, 7rem);
}

/* ── Videos al fondo, a cada lado, con su parte interna desvanecida ──────── */
.vp-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vp-bg__cam { position: absolute; top: 0; height: 100%; width: 40%; object-fit: cover; filter: saturate(1.05) contrast(1.02); opacity: 0.95; }
.vp-bg__cam--a {
  left: 0;
  -webkit-mask: linear-gradient(to right, #000 24%, transparent 90%);
  mask: linear-gradient(to right, #000 24%, transparent 90%);
}
.vp-bg__cam--b {
  right: 0;
  -webkit-mask: linear-gradient(to left, #000 24%, transparent 90%);
  mask: linear-gradient(to left, #000 24%, transparent 90%);
}

/* ── Contenido central, columna, legible sobre blanco ───────────────────── */
.vp-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.8rem, 4vh, 3rem);
  text-align: center;
}
.vp-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); max-width: 760px; }
.vp-head .iot-product__desc { max-width: 58ch; }

/* ── Imagen de escaneo: grande, visible, con detección en vivo ──────────── */
.vp-scan {
  position: relative; margin: 0;
  width: min(92%, 880px); aspect-ratio: 16 / 10;
  border-radius: 20px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  box-shadow: 0 60px 120px -45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.vp-scan img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vp-scan__line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  box-shadow: 0 0 22px 4px color-mix(in srgb, var(--color-primary) 60%, transparent);
  animation: vp-scan 4.4s ease-in-out infinite;
}
@keyframes vp-scan { 0%, 100% { top: 8%; } 50% { top: 90%; } }
/* Recuadro de detección sobre el montacargas (mismo lenguaje que la imagen) */
.vp-scan__box {
  position: absolute; z-index: 2;
  top: 14%; right: 2.5%; width: 23%; height: 36%;
  border: 1.5px solid var(--color-primary); border-radius: 2px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-primary) 35%, transparent), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.vp-scan__box::after {
  content: attr(data-label);
  position: absolute; top: -1px; left: -1px; transform: translateY(-100%);
  padding: 0.14em 0.55em; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--color-primary);
  border-radius: 3px 3px 3px 0; white-space: nowrap;
}

.vp-scan__corners { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vp-scan__corners i { position: absolute; width: 24px; height: 24px; border: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent); }
.vp-scan__corners i:nth-child(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vp-scan__corners i:nth-child(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vp-scan__corners i:nth-child(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vp-scan__corners i:nth-child(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.vp-scan__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.vp-scan__rec, .vp-scan__live { display: inline-flex; align-items: center; gap: 0.45em; }
.vp-scan__rec b { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); animation: vp-blink 1.4s step-end infinite; }
@keyframes vp-blink { 50% { opacity: 0.2; } }
.vp-scan__live .magia-ia { color: var(--color-secondary); }

/* viñetas: 2 columnas, centradas bajo la imagen */
.vp-features { max-width: 760px; }

/* ── Detecciones en vivo: anotación AR (marcador liquid glass + texto libre) ── */
.vp-notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vp-note {
  --sev: var(--color-primary);
  position: absolute;
  display: flex; align-items: center; gap: 0.65rem; max-width: 240px;
  opacity: 0; transform: scale(0.7);
}
/* Entrada tipo alerta: aparece de golpe (pop) cuando "pasa algo" */
.vp-note.is-shown { animation: vp-alert-in 0.5s cubic-bezier(0.18, 0.9, 0.32, 1.25) forwards; }
@keyframes vp-alert-in {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* Marcador / logo — liquid glass (se mantiene) */
.vp-note__marker {
  position: relative; flex: 0 0 auto;
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem;
  border-radius: 50%; color: var(--sev);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-backdrop); backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow-light);
}
.vp-note__marker svg { width: 1.25rem; height: 1.25rem; }
/* "Ping" de alerta: un par de anillos que se expanden al entrar */
.vp-note__marker::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--sev); opacity: 0;
}
.vp-note.is-shown .vp-note__marker::after { animation: vp-ping 1.3s ease-out 0.18s 2; }
@keyframes vp-ping { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }

/* Texto libre, blanco y legible sobre el video (sin caja) */
.vp-note__text { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.55); }
.vp-note__text strong { font-size: 0.98rem; font-weight: var(--fw-extrabold); letter-spacing: -0.01em; color: #fff; line-height: 1.2; }
.vp-note__text em { font-style: normal; font-size: 0.7rem; font-family: var(--font-mono, ui-monospace, monospace); color: color-mix(in srgb, var(--sev) 55%, #fff); }

/* Severidad → color de acento */
.vp-note--ok    { --sev: #4ade80; }
.vp-note--warn  { --sev: #ffb020; }
.vp-note--alert { --sev: #ff5a5a; }

/* Posiciones: bandas laterales (sobre los videos), lejos del contenido central */
.vp-note--p1  { top: 7%;  left: 2.5%; }
.vp-note--p2  { top: 26%; left: 5%;   }
.vp-note--p3  { top: 47%; left: 2.5%; }
.vp-note--p4  { top: 68%; left: 5%;   }
.vp-note--p5  { top: 87%; left: 3%;   }
.vp-note--p6  { top: 7%;  right: 2.5%;}
.vp-note--p7  { top: 26%; right: 5%;  }
.vp-note--p8  { top: 47%; right: 2.5%;}
.vp-note--p9  { top: 68%; right: 5%;  }
.vp-note--p10 { top: 87%; right: 3%;  }

.vp-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--color-secondary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-secondary) 70%, transparent); animation: vp-pulse 2s ease-out infinite; }
@keyframes vp-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sev, var(--color-secondary)) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vp-note { max-width: 170px; padding: 0.5rem 0.6rem; }
  .vp-bg__cam { width: 50%; }
}
@media (max-width: 760px) {
  .vp-bg__cam { width: 100%; height: 40%; opacity: 0.5; }
  .vp-bg__cam--a { top: 0; -webkit-mask: linear-gradient(to bottom, #000 30%, transparent); mask: linear-gradient(to bottom, #000 30%, transparent); }
  .vp-bg__cam--b { top: auto; bottom: 0; -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent); }
  /* Las notas/alertas del showcase son solo de desktop: en teléfono
     tapaban el contenido (aplica a TODAS las líneas: vision/mobile/dms/ops/eye) */
  .vp-notes { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-scan__line, .vp-scan__rec b, .vp-pulse { animation: none; }
  .vp-note.is-shown { animation: none; opacity: 1; transform: none; }
  .vp-note__marker::after { animation: none; }
}

/* ── Eye: las gafas como dispositivo (mockups/frames/glasses.svg) ──
   Mismo patrón que los device-mockup (iPhone/iPad): el contenido va debajo
   y el frame SVG encima. Cada lente es una "pantalla" con su imagen, paneo
   lento y un barrido de luz que cruza ambos cristales. Las coordenadas salen
   de la geometría del SVG (viewBox 463×166, lentes x42/x263 y16 158×134). */
.vp-scan--lens {
  aspect-ratio: 463 / 166;
  background: transparent; border: none; border-radius: 0;
  box-shadow: none; overflow: visible;
}
.vp-glasses {
  position: absolute; inset: 0; display: block;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.22));
}
.vp-glasses__frame,
.vp-glasses__screens { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vp-glasses__img { transform-box: fill-box; transform-origin: 50% 50%; will-change: transform; }
/* Izquierdo: el POV se oscurece para sentirse detrás del cristal */
.vp-glasses__img--l {
  filter: brightness(0.62) saturate(1.1);
  animation: vp-lens-pan 16s ease-in-out infinite alternate;
}
/* Derecho: el holograma respira lento */
.vp-glasses__img--r { animation: vp-lens-zoom 21s ease-in-out infinite alternate; }
/* Barrido de luz: una misma banda (duplicada en cada clip) cruza los dos
   cristales de izquierda a derecha y descansa el resto del ciclo */
.vp-glasses__sweep { animation: vp-lens-sweep 9s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes vp-lens-sweep {
  0%, 16%   { transform: translateX(0); }
  56%, 100% { transform: translateX(660px); }
}
@keyframes vp-lens-pan {
  from { transform: scale(1.02) translate(-2px, 0); }
  to   { transform: scale(1.05) translate(2px, 1px); }
}
@keyframes vp-lens-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* En tema oscuro el acetato negro necesita separarse del fondo: halo suave */
[data-theme="dark"] .vp-glasses {
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.28)) drop-shadow(0 18px 44px rgba(255, 107, 43, 0.14));
}

@media (prefers-reduced-motion: reduce) {
  .vp-glasses__img, .vp-glasses__sweep { animation: none; }
}

/* ── Eye ↔ módulos DYNBEL AI — rail de slats verticales que se expanden al
   hover (mismo diseño del team de PRLCOL en esencia, en clave naranja).
   Móvil: carrusel con snap y tarjetas glass. Desktop: columnas flexibles. ── */
.eye-mods {
  position: relative;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.eye-mods__header {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px);
  padding: 0 24px; text-align: center;
}
.eye-mods__header { max-width: 860px; }
.eye-mods__title {
  margin: 0; font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--text-primary);
}
.eye-mods__subtitle {
  margin: 0; max-width: 640px; font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-secondary); line-height: 1.6;
}

.eye-mods__rail {
  display: flex; align-items: stretch;
  height: clamp(500px, 74vh, 700px);
  padding: 0 clamp(16px, 4vw, 48px); gap: 12px;
  scroll-padding-inline: clamp(16px, 4vw, 48px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.eye-mods__rail::-webkit-scrollbar { display: none; }

.eye-slat {
  position: relative;
  flex: 0 0 clamp(300px, 92vw, 460px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex; align-items: stretch;
  padding: 18px 16px;
  background: #0b0b0d;
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.eye-slat:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }

/* Fondo: la imagen del módulo, atenuada, con scrim para legibilidad */
.eye-slat__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.68; filter: saturate(0.95) brightness(1.12);
}
.eye-slat__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.26) 100%);
}
/* Demo Glymdo: llena la celda al expandir (hover en desktop, click en móvil) */
.eye-slat__demo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.eye-slat__col {
  position: relative; z-index: 2;
  flex-shrink: 0; width: 68px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  pointer-events: none;
}
.eye-slat__index {
  font-size: clamp(2.2rem, 4.2vh, 3rem); font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FF6B2B, #FFB800);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Título como watermark: solo contorno (stroke), como la tarjeta de
   presentación de PRL. Al entrar la sección en viewport (.is-inview, via JS)
   el degradado naranja lo rellena con un barrido, en cascada por tarjeta. */
.eye-slat__name {
  flex: 1; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap;
  font-size: clamp(1.75rem, 3.5vh, 2.25rem); font-weight: 900;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
  /* La cola transparente del degradado hace que el borde del barrido sea
     difuso (feathered), no un corte duro: el color "sube" como luz líquida */
  background: linear-gradient(180deg, #FF6B2B 0%, #FFB800 62%, rgba(255, 184, 0, 0) 100%);
  background-repeat: no-repeat; background-position: top; background-size: 100% 0%;
  -webkit-background-clip: text; background-clip: text;
  transition:
    background-size 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-text-stroke-color 1.2s ease;
}
.eye-mods.is-inview .eye-slat__name {
  background-size: 100% 165%;
  -webkit-text-stroke-color: rgba(255, 184, 0, 0.24);
}
/* Cascada: primero avanza el relleno, el stroke cede después (2º valor) */
.eye-slat:nth-child(1) .eye-slat__name { transition-delay: 0.10s, 0.55s; }
.eye-slat:nth-child(2) .eye-slat__name { transition-delay: 0.30s, 0.75s; }
.eye-slat:nth-child(3) .eye-slat__name { transition-delay: 0.50s, 0.95s; }
.eye-slat:nth-child(4) .eye-slat__name { transition-delay: 0.70s, 1.15s; }
.eye-slat:nth-child(5) .eye-slat__name { transition-delay: 0.90s, 1.35s; }

/* Contenido expandido: tipografía fluida a media altura de la imagen —
   overline del módulo (sin badge) + párrafo editorial, con velo lateral
   suave para legibilidad sobre la foto */
.eye-slat__caption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; gap: 12px;
  padding: 24px clamp(88px, 10vw, 140px);
  background: radial-gradient(ellipse 72% 56% at 50% 50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.24) 58%, rgba(0, 0, 0, 0) 82%);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease 0.08s, transform 0.4s ease 0.08s;
}
/* Estado expandido (click en móvil, espejo del hover de desktop) */
.eye-slat.is-open .eye-slat__bg { opacity: 0; }
.eye-slat.is-open .eye-slat__demo { opacity: 1; transform: scale(1); }
.eye-slat.is-open .eye-slat__caption { opacity: 1; transform: translateY(0); }
.eye-slat__module {
  font-size: clamp(0.72rem, 1vw, 0.82rem); font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #FFB800;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
.eye-slat__detail {
  max-width: 46ch;
  font-size: clamp(0.92rem, 1.25vw, 1.12rem); font-weight: 500;
  line-height: 1.6; color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65);
}

@media (min-width: 1024px) {
  .eye-mods__rail { gap: 0; padding: 0 clamp(24px, 6vw, 72px); overflow: visible; scroll-snap-type: none; }
  /* Desktop sin tarjetas (como el team de PRL): solo dividers INTERNOS —
     la primera y la última no llevan borde en sus costados externos */
  .eye-slat {
    flex: 1 1 0; min-width: 0;
    /* Negro SIEMPRE detrás de la imagen: la foto va con opacity 0.68 y debe
       atenuarse contra oscuro — sobre el blanco del tema claro se lavaba */
    background: #0b0b0d; border: 0; border-radius: 0;
    transition: flex 0.5s cubic-bezier(0.22, 0.61, 0.21, 1);
  }
  .eye-slat:not(:last-child) {
    border-right: 1px solid;
    border-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--text-primary) 32%, transparent) 15%, color-mix(in srgb, var(--text-primary) 32%, transparent) 85%, transparent 100%) 1;
  }
  .eye-slat__bg { transition: opacity 0.45s ease; }
  .eye-slat:hover, .eye-slat:focus-visible { flex: 4.4 1 0; }
  .eye-slat:hover .eye-slat__bg,
  .eye-slat:focus-visible .eye-slat__bg { opacity: 0; }
  .eye-slat:hover .eye-slat__demo,
  .eye-slat:focus-visible .eye-slat__demo { opacity: 1; transform: scale(1); }
  .eye-slat:hover .eye-slat__caption,
  .eye-slat:focus-visible .eye-slat__caption { opacity: 1; transform: translateY(0); }
}

/* Nav móvil: chevrones glass + contador (patrón del team de PRL) */
.eye-mods__nav {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding-top: 26px;
}
.eye-mods__nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 107, 43, 0.32), rgba(255, 184, 0, 0.12)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid color-mix(in srgb, #FF6B2B 45%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 6px 20px -6px rgba(255, 107, 43, 0.45);
  color: #FFB800; cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.eye-mods__nav-btn:hover:not(:disabled) {
  background:
    linear-gradient(135deg, rgba(255, 107, 43, 0.5), rgba(255, 184, 0, 0.22)),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 8px 26px -6px rgba(255, 107, 43, 0.6);
}
.eye-mods__nav-btn:disabled { opacity: 0.35; cursor: default; }
.eye-mods__nav-counter {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; color: var(--text-secondary);
}
@media (min-width: 1024px) {
  .eye-mods__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .eye-slat, .eye-slat__bg, .eye-slat__demo, .eye-slat__caption, .eye-slat__name { transition: none !important; }
}


/* ══ Eye: DESPIECE ESCALONADO EN FLUJO — encabezado en flujo normal,
   lienzo con los grupos (pieza + su etiqueta, SIEMPRE juntos) en zigzag
   apareciendo al bajar, y la UNIÓN como bloque propio. Responsivo:
   en móvil los grupos se apilan en columna. Sigue el tema. ══ */
.eye-asm {
  position: relative;
  background: var(--bg-primary);
  overflow: clip;   /* clip no crea scroll container: el sticky de la unión sigue vivo */
}

.eye-asm__flow {
  max-width: 1360px;
  margin-inline: auto;
  padding-block: clamp(48px, 8vh, 96px) clamp(56px, 9vh, 110px);
  padding-inline: clamp(20px, 4vw, 56px);
}

/* ── Encabezados en flujo (no se pisan con nada) ── */
.eye-asm__intro {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.eye-asm__over {
  margin: 0 0 10px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eye-st__title {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text-primary);
}

.eye-st__title--lead {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
}

.eye-asm__mega {
  margin: 2px 0 0;
  font-size: clamp(3rem, 7.4vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.eye-st__sub {
  margin: 18px auto 0;
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Lienzo escalonado ── */
.eye-map {
  position: relative;
  margin-top: clamp(40px, 7vh, 80px);
  aspect-ratio: 1.3 / 1;
}

/* Grupo: la pieza y SU texto, juntos siempre */
.eye-map__it {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.eye-map__it.is-in { opacity: 1; transform: none; }

.eye-map__img {
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.28));
  /* levitación pro: órbita elíptica (translate) + balanceo (rotate) +
     sombra que respira con la altura (filter). Tres relojes independientes
     con periodos distintos: el conjunto nunca repite el mismo gesto. */
  animation:
    eyeDrift 9s ease-in-out infinite,
    eyeSway 6.4s ease-in-out infinite alternate,
    eyeShade 7.2s ease-in-out infinite alternate;
}
.eye-map__it:nth-child(2n) .eye-map__img {
  animation-duration: 10.4s, 7.3s, 8.4s;
  animation-delay: -3.1s, -1.7s, -2.4s;
}
.eye-map__it:nth-child(3n) .eye-map__img {
  animation-duration: 8.2s, 5.7s, 6.6s;
  animation-delay: -6.2s, -4.2s, -5.1s;
}
.eye-map__it:nth-child(5n) .eye-map__img {
  animation-duration: 11.2s, 6.9s, 9s;
  animation-delay: -1.5s, -0.9s, -3.8s;
}
@keyframes eyeDrift {
  0%, 100% { translate: 0 -9px; }
  25%      { translate: 6px -1px; }
  50%      { translate: 0 8px; }
  75%      { translate: -6px -1px; }
}
@keyframes eyeSway {
  from { rotate: -0.8deg; }
  to   { rotate: 0.7deg; }
}
@keyframes eyeShade {
  from { filter: drop-shadow(0 38px 52px rgba(0, 0, 0, 0.16)); }
  to   { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.38)); }
}

.eye-map__lab {
  width: max-content;      /* la etiqueta no se aprieta al ancho de piezas angostas */
  max-width: 230px;
  text-align: center;
  pointer-events: none;
}
.eye-map__lab strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;    /* el nombre SIEMPRE en un solo renglón */
  color: var(--text-primary);
}
/* Los spans internos del título (la parte en gradiente) heredan el
   tamaño/peso del strong tal cual — NADA los encoge */
.eye-map__lab strong span {
  font: inherit;
  letter-spacing: inherit;
}
/* párrafo descriptivo: SOLO el span hijo directo (no toca el título) */
.eye-map__lab > span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── LA UNIÓN: bloque ALTO (~360vh) con escenario pegado al viewport.
   El scroll dirige la escena: aparece el despiece en línea → cada pieza
   viaja UNA POR UNA a su lugar (los internos se integran al marco) →
   fusión a las construidas + barrido. El JS pinta cada frame. ── */
.eye-union {
  height: 650vh;   /* recorrido MUY largo: cada pieza y su frase se leen con calma */
  margin-top: clamp(56px, 10vh, 120px);
}

.eye-union__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  /* full-bleed: el escenario usa TODO el ancho del viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.2vh, 34px);
  padding: clamp(14px, 2.5vh, 28px) 0;
}

/* Escena panorámica: caja más ancha que el render (2750×1100) para que
   las piezas — dimensionadas en % del ancho — se vean GRANDES en desktop
   sin comerse más alto de viewport (58vh de alto siempre) */
.eye-union__scene {
  position: relative;
  width: min(94vw, 2000px, 146vh);
  aspect-ratio: 2750 / 1100;
}

/* Resplandor del nacimiento: destello al fusionarse y respiración después */
.eye-union__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86%;
  aspect-ratio: 2.2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 107, 43, 0.34) 0%, rgba(255, 184, 0, 0.12) 46%, transparent 72%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}
.eye-union.is-built .eye-union__halo {
  animation:
    eyeHaloIn 0.9s ease-out forwards,
    eyeHalo 3.4s ease-in-out 0.9s infinite alternate;
}
@keyframes eyeHaloIn {
  from { opacity: 0.9; }
  to   { opacity: 0.3; }
}
@keyframes eyeHalo {
  from { opacity: 0.14; }
  to   { opacity: 0.3; }
}

/* ── EL NACIMIENTO: al completarse la construcción (is-built) detona la
   secuencia — destello que consume la escena, ondas expansivas y las
   gafas emergen incandescentes y se enfrían a su color real ── */
.eye-union__flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 2.6 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.25);
  background: radial-gradient(closest-side, rgba(255, 246, 232, 0.95) 0%, rgba(255, 150, 60, 0.55) 45%, transparent 72%);
  filter: blur(14px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.eye-union__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 2.4 / 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 180, 90, 0.7);
  transform: translate(-50%, -50%) scale(0.3);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.eye-union.is-built .eye-union__flash { animation: eyeFlash 0.75s ease-out forwards; }
.eye-union.is-built .eye-union__ring--a { animation: eyeRing 1.05s ease-out 0.06s forwards; }
.eye-union.is-built .eye-union__ring--b { animation: eyeRing 1.25s ease-out 0.24s forwards; }
/* Las gafas emergen apenas el destello abre (0.12s después) */
.eye-union.is-built .eye-union__fused { animation: eyeBorn 1.35s cubic-bezier(0.22, 1.2, 0.36, 1) 0.12s forwards; }
@keyframes eyeFlash {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
  16%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.15); }
}
@keyframes eyeRing {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  12%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); }
}
@keyframes eyeBorn {
  0%   { opacity: 0.2; transform: translate(-50%, -50%) scale(0.88); filter: brightness(2.6) drop-shadow(0 0 70px rgba(255, 140, 50, 0.65)); }
  35%  { opacity: 1; filter: brightness(1.65) drop-shadow(0 0 44px rgba(255, 140, 50, 0.42)); }
  62%  { transform: translate(-50%, -50%) scale(1.035); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(255, 140, 50, 0)); }
}

/* ── EL DESARME (scroll de regreso): las gafas se sobreexponen y se
   disuelven en luz con un pop del destello, mientras el scrub devuelve
   las piezas debajo. La clase is-unbuilt es transitoria (700 ms). ── */
.eye-union.is-unbuilt .eye-union__flash { animation: eyeFlash 0.55s ease-out forwards; }
.eye-union.is-unbuilt .eye-union__fused { animation: eyeUnborn 0.55s ease-in forwards; }
@keyframes eyeUnborn {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); filter: brightness(2.4) drop-shadow(0 0 60px rgba(255, 140, 50, 0.5)); }
}

/* Cada pieza: left/top/width/opacity los pinta el JS con el scroll */
.eye-union__pc {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.3));
}

/* Las construidas + su barrido: una sola capa que aparece en la fusión */
.eye-union__fused {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.eye-union__done {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.32));
}

/* Caption de campaña: frase alusiva de la pieza que llega (texto del JS),
   grande y con la palabra clave en gradiente */
.eye-union__cap {
  margin: 0;
  min-height: 2.4em;
  max-width: 40ch;
  padding-inline: 16px;
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  opacity: 0;
}

/* Barrido de luz sobre las construidas (máscara = la propia imagen) */
.eye-asm__sheen {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  background-position: 150% 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}
.eye-union.is-built .eye-asm__sheen { animation: eyeSheen 1.5s ease 1.25s forwards; }
@keyframes eyeSheen {
  0%   { opacity: 0; background-position: 150% 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; background-position: -50% 0; }
}

/* Escaneo: pocas LÍNEAS finísimas (láser) que nacen en CADA cámara y se
   proyectan al frente, desvanecidas con la distancia, más un anillo-sonar
   que se expande. El origen de cada abanico es la cámara exacta. */
.eye-union__scan {
  position: absolute;
  transform-origin: 100% 50%;   /* pivota desde la cámara */
  filter: blur(0.5px);          /* suaviza el aliasing de los rayos */
  -webkit-mask-image: radial-gradient(110% 160% at 100% 50%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 96%);
  mask-image: radial-gradient(110% 160% at 100% 50%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 96%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

/* Cámara IZQUIERDA (borde del marco, ~6.4% / 38% de la escena panorámica):
   abanico de 4 rayos hacia el frente-izquierda */
.eye-union__scan--l {
  left: -13.6%;
  top: 23.7%;
  width: 20%;
  height: 28%;
  transform: rotate(6deg);
  clip-path: polygon(100% 46%, 100% 54%, 0 100%, 0 0);
  background: repeating-conic-gradient(from 233deg at 100% 50%,
    rgba(255, 150, 60, 0.75) 0deg 0.7deg, transparent 0.7deg 10.3deg);
}

/* Cámara DERECHA (junto a la bisagra, ~55.6% / 24.5% de la escena
   panorámica): 3 rayos casi paralelos sobre el marco hacia el frente */
.eye-union__scan--r {
  left: 9.6%;
  top: 16.5%;
  width: 46%;
  height: 16%;
  transform: rotate(-3deg);
  clip-path: polygon(100% 44%, 100% 56%, 0 100%, 0 0);
  background: repeating-conic-gradient(from 262deg at 100% 50%,
    rgba(255, 150, 60, 0.6) 0deg 0.45deg, transparent 0.45deg 3.55deg);
}

/* Anillo-sonar: onda que se expande desde la cámara dentro del abanico */
.eye-union__scan::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 190, 90, 0.55);
  transform: translate(50%, -50%) scale(0.15);
  opacity: 0;
}
.eye-union__scan--r::after { width: 8%; }

.eye-union.is-built .eye-union__scan--l {
  animation:
    eyeScanOn 0.9s ease 2.7s forwards,
    eyeScanSweepL 4s ease-in-out 3s infinite alternate;
}
.eye-union.is-built .eye-union__scan--r {
  animation:
    eyeScanOn 0.9s ease 2.9s forwards,
    eyeScanSweepR 4.6s ease-in-out 3.2s infinite alternate;
}
.eye-union.is-built .eye-union__scan::after { animation: eyeScanPing 2.6s ease-out 3.4s infinite; }
@keyframes eyeScanOn { to { opacity: 1; } }
@keyframes eyeScanSweepL {
  from { transform: rotate(10deg); }
  to   { transform: rotate(1deg); }
}
@keyframes eyeScanSweepR {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(0deg); }
}
@keyframes eyeScanPing {
  0%   { opacity: 0; transform: translate(50%, -50%) scale(0.15); }
  12%  { opacity: 0.9; }
  70%  { opacity: 0; transform: translate(50%, -50%) scale(7.5); }
  100% { opacity: 0; transform: translate(50%, -50%) scale(7.5); }
}

/* ── Móvil / pantallas angostas: grupos del mapa apilados en columna ── */
@media (max-width: 820px) {
  .eye-map {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(36px, 6vh, 56px);
  }
  .eye-map__it {
    position: static !important;
    width: auto !important;
  }
  .eye-map__img { width: auto; max-width: min(78vw, 380px); max-height: 34vh; object-fit: contain; }
  /* Móvil: escena más compacta, recorrido igual de pausado */
  .eye-union { height: 520vh; }
  .eye-union__scene { width: 92vw; }
  .eye-union__cap { font-size: 0.82rem; max-width: 92vw; }
}

/* ── Fallback estático (reduced motion o navegador sin soporte):
   sin escenario alto, solo las construidas visibles ── */
.eye-union--static { height: auto; }
.eye-union--static .eye-union__stage { position: static; height: auto; }
.eye-union--static .eye-union__pc,
.eye-union--static .eye-union__halo,
.eye-union--static .eye-union__scan,
.eye-union--static .eye-union__flash,
.eye-union--static .eye-union__ring,
.eye-union--static .eye-union__cap { display: none; }
.eye-union--static .eye-union__fused { opacity: 1; }
.eye-union--static .eye-asm__sheen { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .eye-map__it {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .eye-map__img { animation: none; }
  .eye-union.is-built .eye-asm__sheen,
  .eye-union.is-built .eye-union__scan,
  .eye-union.is-built .eye-union__scan::after,
  .eye-union.is-built .eye-union__halo,
  .eye-union.is-built .eye-union__flash,
  .eye-union.is-built .eye-union__ring,
  .eye-union.is-built .eye-union__fused { animation: none; }
}

/* ─── Eye · sectores: el ojo que enfoca (interactivo, tema-aware) ─── */
.eye-focus {
  padding: clamp(64px, 12vh, 130px) 0;
  background: var(--bg-primary);
}

.eye-focus__head {
  max-width: 720px;
  margin: 0 auto clamp(30px, 5vh, 54px);
  text-align: center;
}

.eye-focus__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eye-focus__title {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.eye-focus__sub {
  margin: 16px auto 0;
  max-width: 48ch;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Escenario circular: el ojo al centro, los sectores en órbita */
.eye-focus__stage {
  position: relative;
  width: min(92vw, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.eye-focus__eye {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(255, 107, 43, 0.4));
}

.eye-focus__iris {
  display: block;
  width: 100%;
  height: 100%;
  animation: eye-focus-breathe 6s ease-in-out infinite;
}

.eye-focus__pupilg { transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); }

@keyframes eye-focus-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Anillo de escaneo girando alrededor del ojo */
.eye-focus__scan {
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 138, 61, 0.35);
  animation: eye-focus-spin 18s linear infinite;
}

@keyframes eye-focus-spin { to { transform: rotate(360deg); } }

/* Haz AR del centro al sector activo */
.eye-focus__beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.eye-focus__beam line {
  stroke: var(--color-primary);
  stroke-width: 0.5;
  stroke-dasharray: 2 2;
  opacity: 0.55;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Sectores orbitando */
.eye-focus__sector {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font: inherit;
  font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-tertiary);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.eye-focus__sector .eye-focus__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s, box-shadow 0.2s;
}

.eye-focus__sector:hover { color: var(--text-primary); border-color: var(--color-primary); }

.eye-focus__sector.is-active {
  color: var(--text-on-primary);
  background: linear-gradient(100deg, var(--scrn-a, #FF6B2B), var(--scrn-b, #FFB800));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 107, 43, 0.4);
  transform: translate(-50%, -50%) scale(1.06);
}

.eye-focus__sector.is-active .eye-focus__dot { background: #fff; box-shadow: 0 0 8px #fff; }

/* Lectura del sector enfocado */
.eye-focus__readout {
  max-width: 560px;
  margin: clamp(26px, 4vh, 44px) auto 0;
  text-align: center;
}

.eye-focus__readout-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eye-focus__readout-tag b { color: var(--text-primary); }

.eye-focus__readout-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: vp-blink 1.3s step-end infinite;
}

.eye-focus__readout-desc {
  margin: 12px auto 0;
  max-width: 48ch;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
}

.eye-focus__readout.is-in .eye-focus__readout-desc { animation: eye-focus-in 0.4s ease; }

@keyframes eye-focus-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.eye-focus__any {
  margin: clamp(26px, 4vh, 44px) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.6;
  color: var(--text-tertiary);
}

@media (max-width: 560px) {
  .eye-focus__sector { font-size: 11px; padding: 5px 9px; }
  .eye-focus__eye { width: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  .eye-focus__iris, .eye-focus__scan { animation: none; }
}
