/* =========================================================================
   01 · Hero (.s-hero) — v2, diseño del video Boom (ES) y lámina 01.
   Carbón con bruma violeta que respira, grilla con cruces, chip «en vivo»,
   H1 Inter 300 que entra palabra a palabra, línea de terminal que se escribe,
   captura de correo, bandeja violeta con la escena Live (tarjetas de vidrio)
   y tira de contadores entre reglas finas.
   Las animaciones se pausan fuera de pantalla (.is-offscreen, lo pone el JS).
   ========================================================================= */

.s-hero.section {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  overflow: clip;
}
/* El resplandor de .glow-bottom queda bajo la tira de contadores */
.s-hero.glow-bottom::after { height: 45%; opacity: 0.9; }

/* ---------- Fondo: bruma, bandas, grano ---------- */
.s-hero .s-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #1a1919;
}
.s-hero .s-hero__haze {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
/* Charco lila bajo el titular, como el hero del video */
.s-hero .s-hero__haze--a {
  width: 120%;
  height: 900px;
  left: -10%;
  top: 180px;
  background: radial-gradient(closest-side, rgba(150, 130, 205, 0.26), rgba(96, 82, 170, 0.12) 50%, rgba(0, 0, 0, 0) 100%);
  animation: s-hero-drift-a 18s ease-in-out infinite alternate;
}
/* Fondo azul profundo a la derecha */
.s-hero .s-hero__haze--b {
  width: 80%;
  height: 760px;
  right: -20%;
  top: 420px;
  background: radial-gradient(closest-side, rgba(54, 48, 144, 0.34), rgba(0, 0, 0, 0) 100%);
  animation: s-hero-drift-b 22s ease-in-out infinite alternate;
}
.s-hero .s-hero__bands {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, rgba(0, 0, 0, 0) 1px 6px);
}
.s-hero .s-hero__grain {
  position: absolute;
  inset: 0;
  background: var(--noise);
  background-size: 200px 200px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ---------- Cabecera ---------- */
.s-hero .s-hero__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.4vw, 30px);
  padding-top: clamp(56px, 7vw, 104px);
}

/* Chip «en vivo», como el del video: Inter, vidrio, punto verde que late */
.s-hero .s-hero__live {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  padding: 7px 16px 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.82);
}
.s-hero .s-hero__live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.8);
}
.s-hero .s-hero__live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: s-hero-live 1.6s ease-out infinite;
}

.s-hero .s-hero__title { max-width: 17ch; }

/* Palabras del H1 (las arma el JS) */
.s-hero .s-hero__word { display: inline-block; }
.s-hero.is-pre .s-hero__title:not(.is-split) { opacity: 0; }
.s-hero .s-hero__title.is-split .s-hero__word {
  transition:
    opacity 0.8s var(--ease) calc(120ms + var(--i) * 70ms),
    transform 0.9s var(--ease) calc(120ms + var(--i) * 70ms),
    filter 0.8s var(--ease) calc(120ms + var(--i) * 70ms);
}
.s-hero .s-hero__title.is-split:not(.is-in) .s-hero__word {
  opacity: 0;
  transform: translateY(0.28em);
  filter: blur(10px);
}

.s-hero .s-hero__sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin-top: clamp(2px, 0.8vw, 10px);
}
.s-hero .s-hero__copy { display: grid; gap: 16px; }
.s-hero .s-hero__lead { max-width: 48ch; }

/* Línea de terminal: el texto final reserva el alto; encima se escribe */
.s-hero .s-hero__terminal {
  display: flex;
  margin: 0;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  color: rgba(255, 255, 255, 0.62);
}
.s-hero .s-hero__terminal::before { flex: none; white-space: pre; }
.s-hero .s-hero__type { display: inline-grid; min-width: 0; }
.s-hero .s-hero__type > span { grid-area: 1 / 1; }
.s-hero .s-hero__type-ghost { visibility: hidden; }
.s-hero .s-hero__caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--ink-2);
  animation: s-hero-caret 1.05s steps(1) infinite;
}

.s-hero .s-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.s-hero .s-hero__form { max-width: 440px; }
.s-hero .s-hero__form .btn { height: 44px; padding: 0 20px; }
.s-hero .s-hero__form input { height: 44px; width: 0; }
.s-hero .s-hero__form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.s-hero .s-hero__form:focus-within { outline: 2px solid var(--lila-claro); outline-offset: 3px; }
@supports selector(:has(*)) {
  .s-hero .s-hero__form:focus-within { outline: 0; }
  .s-hero .s-hero__form:has(input:focus-visible) { outline: 2px solid var(--lila-claro); outline-offset: 3px; }
}
.s-hero .s-hero__form button:focus-visible { outline: 2px solid #0e0d0c; outline-offset: -5px; }
.s-hero .s-hero__video-link { min-height: 44px; padding: 0 4px; }
.s-hero .s-hero__video-link:focus-visible,
.s-hero .s-hero__ticker:focus-visible { outline: 2px solid var(--lila-claro); outline-offset: 3px; border-radius: var(--r-pill); }
.s-hero .s-hero__ticker:focus-visible { outline-offset: -2px; border-radius: 0; }

.s-hero .s-hero__form-msg {
  flex-basis: 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 1200px) {
  .s-hero .s-hero__sub { gap: 34px; }
  .s-hero .s-hero__form { width: 440px; }
}

/* Número que sube sin mover el layout */
.s-hero .s-hero__num { display: inline-grid; font-variant-numeric: tabular-nums; }
.s-hero .s-hero__num > [aria-hidden="true"] { grid-area: 1 / 1; }
.s-hero .s-hero__ghost { visibility: hidden; }

/* ---------- Escenario: bandeja violeta ---------- */
.s-hero .s-hero__stage {
  position: relative;
  margin-top: clamp(56px, 6.5vw, 92px);
  padding-bottom: clamp(56px, 6.5vw, 92px);
}
.s-hero .s-hero__tray {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 120px -40px rgba(54, 48, 144, 0.55);
  /* Mismo degradé con grano que .tray--violeta, sin su luz alta a la izquierda:
     la luz la pone .s-hero__light, lejos del rótulo blanco (contraste AA). */
  background:
    var(--noise),
    linear-gradient(170deg, #2e2780 0%, #4a3f9e 45%, #6b5fb8 100%);
  background-size: 200px 200px, auto;
  background-blend-mode: overlay, normal;
}
/* Pestañas de ejemplos (reemplazan el rótulo único): flotan sobre el borde de la bandeja */
.s-hero .s-hero__tabs {
  position: absolute;
  z-index: 3;
  top: -17px;
  left: clamp(14px, 4vw, 56px);
  right: clamp(14px, 4vw, 56px);
  width: max-content;
  max-width: calc(100% - 2 * clamp(14px, 4vw, 56px));
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: #1f1d2b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
.s-hero .s-hero__tabs-label {
  padding: 0 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
@media (max-width: 480px) { .s-hero .s-hero__tabs-label { display: none; } }
.s-hero .s-hero__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.s-hero .s-hero__tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.s-hero .s-hero__tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.s-hero .s-hero__tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.s-hero .s-hero__tab[aria-selected="true"] .s-hero__tab-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18); }
/* Avance de la escena en curso */
.s-hero .s-hero__tab-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  opacity: 0;
}
.s-hero .s-hero__tab[aria-selected="true"] .s-hero__tab-bar { opacity: 1; }
@media (max-width: 380px) { .s-hero .s-hero__tab { padding: 0 9px; letter-spacing: 0.03em; } }

/* ---------- Tira de contadores ---------- */
.s-hero .s-hero__band {
  position: relative;
  margin-inline: calc(-1 * clamp(0px, 2.5vw, 40px));
}
/* Regla horizontal que cruza toda la pantalla, como en la lámina 01 */
.s-hero .s-hero__band::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100vw;
  right: -100vw;
  height: 1px;
  background: var(--line);
}
.s-hero .s-hero__cross { top: -5px; z-index: 2; opacity: 0.7; }
.s-hero .s-hero__cross--l { left: -5px; }
.s-hero .s-hero__cross--r { right: -5px; }
.s-hero .s-hero__ticker { position: relative; overflow: hidden; }
.s-hero .s-hero__group { list-style: none; margin: 0; padding: 0; }
.s-hero .s-hero__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 2vw, 28px) 30px;
  border-left: 1px solid var(--line);
}
.s-hero .s-hero__label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.s-hero .s-hero__stat .s-hero__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .s-hero .s-hero__group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .s-hero .s-hero__group--dup { display: none; }
  .s-hero .s-hero__stat:first-child { border-left: 0; }
  .s-hero .s-hero__label { min-height: calc(2 * 1.45em); }
}
@media (max-width: 1099.98px) {
  .s-hero .s-hero__ticker {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .s-hero .s-hero__track {
    display: flex;
    width: max-content;
    animation: s-hero-marquee 44s linear infinite;
  }
  .s-hero .s-hero__ticker:hover .s-hero__track,
  .s-hero .s-hero__ticker:focus-within .s-hero__track { animation-play-state: paused; }
  .s-hero .s-hero__group { display: flex; }
  .s-hero .s-hero__label { white-space: nowrap; }
  /* En carrusel todas las cifras se ven de una vez */
  .s-hero .s-hero__stat[data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 767.98px) {
  .s-hero .s-hero__actions { flex-direction: column; align-items: flex-start; }
  .s-hero .s-hero__form { max-width: none; width: 100%; }
  .s-hero .s-hero__stat { padding: 20px 20px 22px; }
  .s-hero .s-hero__live { font-size: 13px; }
}
@media (max-width: 419.98px) {
  .s-hero .s-hero__form {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-radius: var(--r-lg);
  }
  .s-hero .s-hero__form input { width: 100%; flex: none; padding: 0 12px; }
  .s-hero .s-hero__form .btn { width: 100%; height: 46px; }
  .s-hero .s-hero__form button:focus-visible { outline-offset: -4px; border-radius: var(--r-pill); }
  .s-hero .s-hero__terminal { font-size: 12px; }
}

/* =========================================================================
   Animación de la bandeja (guion: escena Live del video)
   1) dos llamadas a herramientas · 2) el agente escribe · 3) Camila aprueba ·
   4) la OC sale · 5) stock al día. Loop con pausa final (js/sections/01-hero.js).
   Sin JS o con movimiento reducido se ve el estado final, completo.
   ========================================================================= */

.s-hero .s-hero__anim {
  position: relative;
  container-type: inline-size;
  container-name: s-hero-anim;
  border-radius: inherit;
  overflow: hidden;
}
/* Luz alta y esquina profunda, como en la escena */
.s-hero .s-hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 34% at 92% 0%, rgba(214, 204, 244, 0.5), rgba(214, 204, 244, 0) 70%),
    radial-gradient(60% 55% at 95% 95%, rgba(29, 26, 92, 0.45), rgba(0, 0, 0, 0) 70%);
  animation: s-hero-breathe 9s ease-in-out infinite alternate;
}

.s-hero .s-hero__scene {
  position: relative;
  padding: 34px 16px 26px;
  color: var(--ink);
}
.s-hero .s-hero__content { width: 100%; max-width: 520px; margin: 0 auto; }

.s-hero .s-hero__kicker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.s-hero .s-hero__kicker-text > span { display: block; white-space: nowrap; }
.s-hero .s-hero__kicker-ring {
  width: 8px;
  height: 8px;
  margin-top: 0.38em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.25px rgba(255, 255, 255, 0.92);
  flex: none;
}

.s-hero .s-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "toolA" "toolB" "agent" "reply" "po" "sync";
  row-gap: 10px;
  align-items: start;
}
.s-hero .s-hero__tool--a { grid-area: toolA; }
.s-hero .s-hero__tool--b { grid-area: toolB; }
.s-hero .s-hero__agent { grid-area: agent; }
.s-hero .s-hero__reply { grid-area: reply; }
.s-hero .s-hero__po { grid-area: po; }
.s-hero .s-hero__sync { grid-area: sync; }

.s-hero .s-hero__anim svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Vidrio claro sobre el violeta (chips de herramienta y «stock al día») */
.s-hero .s-hero__tool,
.s-hero .s-hero__sync {
  position: relative;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.54));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 16px 36px -18px rgba(14, 10, 52, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: #17152e;
}

/* ---------- 1 · Herramientas ---------- */
.s-hero .s-hero__tool {
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
}
.s-hero .s-hero__tool-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(23, 21, 46, 0.08);
  box-shadow: inset 0 0 0 1px rgba(23, 21, 46, 0.16);
  color: rgba(23, 21, 46, 0.78);
}
.s-hero .s-hero__tool-text {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: rgba(23, 21, 46, 0.8);
  min-width: 0;
}
.s-hero .s-hero__fn { display: block; font-weight: 500; color: #17152e; }
.s-hero .s-hero__arrow { display: none; margin: 0 0.6em; color: rgba(23, 21, 46, 0.62); }

/* ---------- 2 · Agente (vidrio oscuro) ---------- */
.s-hero .s-hero__card { border-radius: 16px; }
.s-hero .s-hero__who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.s-hero .s-hero__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.s-hero .s-hero__avatar--agent {
  padding: 6px;
  background: #fff;
  color: #1c1a2e;
}
.s-hero .s-hero__avatar--agent svg { fill: currentColor; stroke: none; }
.s-hero .s-hero__who-name { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }

.s-hero .s-hero__agent { padding: 14px 16px 16px; }
.s-hero .s-hero__body { position: relative; }
.s-hero .s-hero__msg {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: #fff;
}
.s-hero .s-hero__w { display: inline-block; }

.s-hero .s-hero__dots {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.42em;
  font-size: 15px;
  display: none;
  align-items: center;
  gap: 5px;
}
.s-hero .s-hero__anim.is-armed .s-hero__dots { display: inline-flex; }
.s-hero .s-hero__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.3;
  animation: s-hero-typing 1.1s ease-in-out infinite;
}
.s-hero .s-hero__dots i:nth-child(2) { animation-delay: 0.16s; }
.s-hero .s-hero__dots i:nth-child(3) { animation-delay: 0.32s; }

/* ---------- 3 · Respuesta de Camila (acento claro) ---------- */
.s-hero .s-hero__reply {
  justify-self: end;
  padding: 11px 16px 13px;
  border-radius: 16px 16px 6px 16px;
  transform-origin: right bottom;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 255, 0.86));
}
.s-hero .s-hero__reply .s-hero__who { margin-bottom: 4px; }
.s-hero .s-hero__reply .s-hero__who-name { color: rgba(23, 21, 46, 0.66); }
.s-hero .s-hero__avatar--user {
  box-shadow: inset 0 0 0 1px rgba(23, 21, 46, 0.25);
  color: rgba(23, 21, 46, 0.7);
}
.s-hero .s-hero__reply-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #17152e;
}

/* ---------- 4 · Orden de compra (panel oscuro) ---------- */
.s-hero .s-hero__po {
  position: relative;
  padding: 13px 16px 15px;
  background: linear-gradient(180deg, rgba(28, 26, 36, 0.93), rgba(20, 19, 27, 0.95));
}
.s-hero .s-hero__po-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}
.s-hero .s-hero__po-title { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }
.s-hero .s-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-pill);
  background: rgba(62, 207, 142, 0.16);
  box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.45);
  color: var(--ok);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transform-origin: right center;
}
.s-hero .s-hero__badge svg { width: 12px; height: 12px; stroke-width: 2.2; }
.s-hero .s-hero__po-rule {
  display: block;
  height: 1px;
  margin: 11px 0 12px;
  background: rgba(255, 255, 255, 0.11);
  transform-origin: left center;
}
.s-hero .s-hero__po-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 14px;
  letter-spacing: -0.012em;
}
.s-hero .s-hero__po-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.s-hero .s-hero__po-id { white-space: nowrap; }
.s-hero .s-hero__po-eta { margin-left: auto; font-weight: 500; white-space: nowrap; }

/* ---------- 5 · Stock al día ---------- */
.s-hero .s-hero__sync {
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 14px;
}
.s-hero .s-hero__sync-check {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: #2fbf7f;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
}
.s-hero .s-hero__sync-check svg { stroke-width: 2.6; }
.s-hero .s-hero__sync-check::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.s-hero .s-hero__sync-text {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: #17152e;
  min-width: 0;
}

/* ---------- Cables finos con pulso (solo en la composición ancha) ---------- */
.s-hero .s-hero__wire { display: none; position: absolute; pointer-events: none; }
.s-hero .s-hero__wire i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
  opacity: 0;
}

/* ---------- Tablet: lienzo más ancho, misma columna ---------- */
@container s-hero-anim (min-width: 520px) {
  .s-hero .s-hero__scene { padding: 44px 28px 36px; }
  .s-hero .s-hero__kicker { margin-bottom: 18px; font-size: 11px; white-space: nowrap; }
  .s-hero .s-hero__kicker-text > span { display: inline; }
  .s-hero .s-hero__fn { display: inline; }
  .s-hero .s-hero__arrow { display: inline; }
  .s-hero .s-hero__grid { row-gap: 12px; }
  .s-hero .s-hero__tool-text,
  .s-hero .s-hero__sync-text { font-size: 12px; white-space: nowrap; }
  .s-hero .s-hero__msg,
  .s-hero .s-hero__dots,
  .s-hero .s-hero__reply-text { font-size: 16.5px; }
  .s-hero .s-hero__agent { padding: 16px 20px 18px; }
  .s-hero .s-hero__po { padding: 15px 20px 17px; }
  .s-hero .s-hero__po-row { font-size: 15.5px; }
  .s-hero .s-hero__sync { border-radius: var(--r-pill); padding-right: 18px; }
}

/* ---------- Desktop: la composición del video, dos columnas y tres filas ---------- */
@container s-hero-anim (min-width: 860px) {
  .s-hero .s-hero__scene { padding: 6cqw 6.5cqw 5.5cqw; }
  /* Luz alta entre las dos columnas, lejos del rótulo blanco */
  .s-hero .s-hero__light {
    background:
      radial-gradient(42% 62% at 70% 0%, rgba(214, 204, 244, 0.46), rgba(214, 204, 244, 0) 70%),
      radial-gradient(60% 55% at 95% 95%, rgba(29, 26, 92, 0.45), rgba(0, 0, 0, 0) 70%);
  }
  .s-hero .s-hero__content { max-width: none; }
  .s-hero .s-hero__kicker { margin-bottom: 2.2cqw; font-size: clamp(11px, 1cqw, 12.5px); }
  .s-hero .s-hero__kicker-ring { width: 9px; height: 9px; }
  .s-hero .s-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "toolA toolB"
      "agent po"
      "reply sync";
    column-gap: 5.5cqw;
    row-gap: 1.4cqw;
  }
  .s-hero .s-hero__tool { gap: 12px; padding: 7px 16px 7px 7px; border-radius: 13px; }
  .s-hero .s-hero__tool-icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
  .s-hero .s-hero__tool-text,
  .s-hero .s-hero__sync-text {
    font-size: clamp(10.5px, 1.1cqw, 13.5px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .s-hero .s-hero__card { border-radius: 18px; }
  .s-hero .s-hero__agent { padding: 1.8cqw 2.4cqw 2.1cqw; }
  .s-hero .s-hero__who { gap: 10px; margin-bottom: 0.9cqw; }
  .s-hero .s-hero__avatar { width: 28px; height: 28px; font-size: 11.5px; }
  .s-hero .s-hero__avatar--agent { padding: 7px; }
  .s-hero .s-hero__who-name,
  .s-hero .s-hero__po-title { font-size: clamp(12.5px, 1.15cqw, 14px); }
  .s-hero .s-hero__msg,
  .s-hero .s-hero__dots { font-size: clamp(16px, 1.8cqw, 22px); line-height: 1.36; }
  .s-hero .s-hero__dots { height: 1.36em; gap: 6px; }
  .s-hero .s-hero__dots i { width: 7px; height: 7px; }

  .s-hero .s-hero__reply {
    justify-self: start;
    margin-left: 14%;
    padding: 1.3cqw 2.4cqw 1.5cqw;
    border-radius: 18px 18px 18px 6px;
    transform-origin: left top;
  }
  .s-hero .s-hero__reply-text { font-size: clamp(16px, 1.8cqw, 22px); }

  .s-hero .s-hero__po {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.8cqw 2.4cqw 2.1cqw;
  }
  .s-hero .s-hero__badge { height: 28px; font-size: 13px; padding: 0 13px 0 10px; }
  .s-hero .s-hero__po-rule { margin: 1.3cqw 0 1.6cqw; }
  .s-hero .s-hero__po-row { gap: 4px 14px; font-size: clamp(14px, 1.55cqw, 19px); flex-wrap: nowrap; }
  .s-hero .s-hero__po-icon { width: clamp(32px, 3.4cqw, 42px); height: clamp(32px, 3.4cqw, 42px); padding: clamp(7px, 0.85cqw, 10px); }

  .s-hero .s-hero__sync { gap: 10px; padding: 7px 20px 7px 7px; }
  .s-hero .s-hero__sync-check { width: 28px; height: 28px; padding: 6px; }

  /* Cable agente → OC (cruza el espacio entre columnas) */
  .s-hero .s-hero__wire--h {
    display: block;
    right: 100%;
    top: 50%;
    width: 5.5cqw;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.45));
  }
  .s-hero .s-hero__wire--h i { top: -2.5px; left: 0; }
  /* Cable OC → stock al día */
  .s-hero .s-hero__wire--v {
    display: block;
    left: 21px;
    bottom: 100%;
    width: 1px;
    height: 1.4cqw;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.15));
  }
  .s-hero .s-hero__wire--v i { left: -2.5px; top: 0; }
}

/* ---------- Coreografía: estado oculto → .is-on (lo agrega el JS) ---------- */
.s-hero .s-hero__anim [data-at] {
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    filter 0.7s var(--ease);
}
.s-hero .s-hero__anim.is-armed [data-at]:not(.is-on) {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  filter: blur(8px);
}
.s-hero .s-hero__anim.is-armed .s-hero__tool:not(.is-on) { transform: translate(-12px, 6px); }
.s-hero .s-hero__anim.is-armed .s-hero__reply:not(.is-on) { transform: translateY(10px) scale(0.94); }
.s-hero .s-hero__anim.is-armed .s-hero__badge:not(.is-on) { transform: scale(0.82); filter: blur(4px); }
.s-hero .s-hero__anim .s-hero__po-rule { transition: transform 0.8s var(--ease); }
.s-hero .s-hero__anim.is-armed .s-hero__po-rule:not(.is-on) { opacity: 1; filter: none; transform: scaleX(0); }
.s-hero .s-hero__anim .s-hero__dots { transition: opacity 0.3s var(--ease); }
.s-hero .s-hero__anim.is-armed .s-hero__dots:not(.is-on) { transform: none; filter: none; }
.s-hero .s-hero__anim .s-hero__msg { transition: none; }
.s-hero .s-hero__anim.is-armed .s-hero__msg.is-split:not(.is-on) { opacity: 1; transform: none; filter: none; }
.s-hero .s-hero__anim .s-hero__w {
  transition:
    opacity 0.5s var(--ease) calc(var(--i) * 55ms),
    transform 0.6s var(--ease) calc(var(--i) * 55ms),
    filter 0.5s var(--ease) calc(var(--i) * 55ms);
}
.s-hero .s-hero__anim.is-armed .s-hero__msg:not(.is-on) .s-hero__w {
  opacity: 0;
  transform: translateY(7px);
  filter: blur(5px);
}
/* Pulsos por los cables cuando la pieza ya entró */
.s-hero .s-hero__po.is-on .s-hero__wire--h i { animation: s-hero-pulse-x 2.6s var(--ease) 0.2s infinite; }
.s-hero .s-hero__sync.is-on .s-hero__wire--v i { animation: s-hero-pulse-y 2.6s var(--ease) 0.4s infinite; }
.s-hero .s-hero__sync.is-on .s-hero__sync-check::after { animation: s-hero-ping 1.3s var(--ease) 0.25s both; }

.s-hero .s-hero__content { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.s-hero .s-hero__anim.is-leaving .s-hero__content { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.s-hero .s-hero__anim.is-resetting *,
.s-hero .s-hero__anim.is-resetting *::after { transition: none !important; animation: none !important; }

/* ---------- Fuera de pantalla: todo en pausa ---------- */
.s-hero.is-offscreen *,
.s-hero.is-offscreen *::before,
.s-hero.is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Keyframes ---------- */
@keyframes s-hero-drift-a {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.06); }
}
@keyframes s-hero-drift-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-8%, -4%, 0); }
}
@keyframes s-hero-breathe {
  from { opacity: 0.75; }
  to { opacity: 1; }
}
@keyframes s-hero-live {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes s-hero-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes s-hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes s-hero-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes s-hero-typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 0.85; transform: translateY(-3px); }
}
@keyframes s-hero-ping {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.5); }
  100% { box-shadow: 0 0 0 11px rgba(62, 207, 142, 0); }
}
@keyframes s-hero-pulse-x {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { left: calc(100% - 6px); opacity: 0; }
}
@keyframes s-hero-pulse-y {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { top: calc(100% - 6px); opacity: 0; }
}

/* ---------- Movimiento reducido: estado final, quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  .s-hero *,
  .s-hero *::before,
  .s-hero *::after { animation: none !important; transition: none !important; }
  .s-hero .s-hero__dots { display: none !important; }
  .s-hero .s-hero__caret { display: none; }
  .s-hero .s-hero__group--dup { display: none; }
  .s-hero .s-hero__ticker {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
}

/* -------------------------------------------------------------------------
   Franja de clientes (1-dic, pedido de Cris): reemplaza la tira de contadores.
   Estilo ElevenLabs: encabezado en una línea con botón píldora a la derecha y
   grilla de celdas iguales separadas por hairlines, con logos monocromos.
   En oscuro, los logos van en blanco (silueta) a 0,62 de opacidad.
   ------------------------------------------------------------------------- */
.s-hero .s-hero__clients { padding: clamp(28px, 3.5vw, 44px) 0 clamp(36px, 4vw, 56px); }
.s-hero .s-hero__clients-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 18px;
}
.s-hero .s-hero__clients-label {
  margin: 0; font-family: var(--font-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.s-hero .s-hero__logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.s-hero .s-hero__logo-cell {
  position: relative; display: grid; place-items: center;
  height: 96px; padding: 0 14px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.s-hero .s-hero__logo {
  max-height: var(--h, 26px); max-width: 128px; width: auto; height: auto;
  filter: brightness(0) invert(1); opacity: 0.62;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
/* Logos con fondo propio (insignias): se invierten en vez de hacerse silueta */
.s-hero .s-hero__logo--inv { filter: grayscale(1) invert(1); }
.s-hero .s-hero__plus {
  position: absolute; top: 8px; right: 10px; font-size: 12px; color: var(--muted-2);
  opacity: 0; transition: opacity .25s var(--ease);
}
@media (hover: hover) {
  .s-hero .s-hero__logo-cell:hover { background: rgba(255, 255, 255, 0.03); }
  .s-hero .s-hero__logo-cell:hover .s-hero__logo { opacity: 1; transform: translateY(-1px); }
  .s-hero .s-hero__logo-cell:hover .s-hero__plus { opacity: 1; }
}
@media (max-width: 900px) {
  .s-hero .s-hero__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-hero .s-hero__logo-cell { height: 76px; }
  .s-hero .s-hero__logo { max-width: 96px; max-height: calc(var(--h, 26px) * 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .s-hero .s-hero__logo, .s-hero .s-hero__logo-cell { transition: none; }
}

/* Cambio de escena desde las pestañas */
.s-hero .s-hero__anim.is-switching .s-hero__content { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
