/* AgentesNexo · hero por scroll "Así trabaja tu equipo de agentes" (2-nov-2026, Demian TG 14807-14835).
   Reemplaza al cubo. Fondo claro, líneas grises y el azul de la marca; el JS está en hero-pasos.js. */
.hero-pasos { --hs-fondo: #F7F5F0; --ink: #14130f; --ink-2: #6c685d; --line: rgba(20, 19, 15, .14); position: relative; height: 420vh; background: var(--hs-fondo); color: var(--ink); }
.hs-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid;
          grid-template-columns: minmax(340px, 38%) 1fr; grid-template-rows: auto 1fr auto;
          padding: clamp(84px, 11vh, 120px) var(--pad) 96px; column-gap: 2vw; }
.hs-top { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px;
          letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 2vh; border-bottom: 1px solid var(--line); }
.hs-top i { color: var(--accent); font-style: normal; }
.hs-texto { position: relative; align-self: center; display: grid; gap: 3vh; }
.hs-h1 { margin: 0; font-family: var(--font-disp); font-weight: 800; letter-spacing: -.045em; line-height: .92; font-size: clamp(40px, 4.4vw, 84px); }
.hs-h1 > span { display: block; }
.hs-h1 em { font-style: italic; font-weight: 300; letter-spacing: -.03em; }
.hs-h1 em::before { content: "\A"; white-space: pre; }
.hs-sub { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; color: var(--ink-2); }
.hs-paso { display: grid; gap: 6px; min-height: 64px; }
.hs-pn { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hs-pt > span { display: none; font-family: var(--font-disp); font-weight: 800; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.02em; }
.hs-pt > span.on { display: block; }
.hero-pasos .hero-scroll { color: var(--ink); }
.hero-pasos .portal:not(.is-fixed) { right: var(--pad); bottom: 120px; }

.hs-escena { position: relative; align-self: center; height: min(70vh, 720px); overflow: hidden; }
.hs-pista { position: absolute; inset: 0 auto 0 0; display: flex; will-change: transform; }
.hs-est { position: relative; height: 100%; display: grid; place-items: center; }
.hs-fig { width: min(100%, calc(70vh * 1.25)); max-width: 900px;
          --hairline-plate: #F7F5F0; --hairline-edge: #2A2924; --hairline-mid: #8E8A80; --hairline-lo: #D2CDC1; --hairline-hi: #2433FF; --hairline-stroke: 1; }
.hs-marca { position: absolute; transform: translate(-50%, -115%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
            background: var(--accent); color: #fff; font: 500 10px/1 var(--font-mono); opacity: 0; pointer-events: none; }
.hs-marca.on { transform: translate(-50%, -115%) scale(1.3); box-shadow: 0 0 0 4px rgba(36, 51, 255, .18); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hs-leyenda span.on { color: var(--accent); }
.hs-leyenda span.on b { font-weight: 700; }
.hs-leyenda { position: absolute; right: 0; top: 4%; display: grid; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .86);
              border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hs-leyenda p { margin: 0 0 4px; color: var(--ink-2); font-size: 10px; }
.hs-leyenda span { display: flex; gap: 8px; align-items: center; opacity: 0; }
.hs-leyenda span i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font: 500 9px/16px var(--font-mono);
                     text-align: center; font-style: normal; }

.hs-pasos { grid-column: 1 / -1; position: relative; padding-top: 14px; padding-right: 84px; } /* deja lugar a la esfera de voz (fija sobre la barra) */
.hs-pasos svg { display: block; width: 100%; height: 26px; overflow: visible; }
.hs-base { stroke: var(--line); stroke-width: 1.4; }
.hs-lleno { stroke: var(--accent); stroke-width: 2; }
.hs-pasos circle { fill: var(--hs-fondo); stroke: var(--ink-2); stroke-width: 1.4; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.hs-pasos circle.on { fill: var(--accent); stroke: var(--accent); }
.hs-etiquetas { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px;
                letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hs-etiquetas > span { transition: color .3s var(--ease); }
.hs-etiquetas > span:nth-child(2) { text-align: center; }
.hs-etiquetas > span:nth-child(3) { text-align: right; }
.hs-etiquetas > span.on { color: var(--ink); }
.hs-etiquetas b { font-weight: 500; margin-right: 8px; }
.hs-etiquetas > span.on b { color: var(--accent); }

@media (max-width: 860px), (orientation: portrait) {
  .hero-pasos { height: 380vh; }
  .hs-pin { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; padding: 76px 20px 74px; row-gap: 1.6vh; }
  .hs-texto { gap: 1.2vh; }
  .hs-h1 { font-size: clamp(36px, 10.5vw, 60px); }
  .hs-sub, .hero-pasos .hero-scroll { display: none; }
  .hs-paso { min-height: 0; }
  .hs-pt > span { font-size: 20px; }
  .hs-escena { height: 100%; min-height: 0; }
  .hs-fig { width: 100%; }
  .hs-etiquetas { font-size: 9.5px; letter-spacing: .06em; }
  .hs-leyenda { top: 0; padding: 8px 10px; gap: 3px; font-size: 8.5px; }
  .hs-leyenda p { display: none; }
  .hs-leyenda span i { width: 13px; height: 13px; font-size: 8px; line-height: 13px; }
  .hs-marca { width: 14px; height: 14px; font-size: 8px; }
  .hero-pasos .portal:not(.is-fixed) { right: 20px; bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pasos { height: auto; }
  .hs-pin { position: relative; height: auto; min-height: 100svh; }
}
