/* ÓNIX · Página de servicio "viva" (patrón reutilizable para las páginas de servicio).
   Se apoya en los tokens de sistema.css (papel cálido, tinta, violeta, Geist).
   Movimiento: solo transform/opacity, una sola curva (--ease), y todo completo en reposo
   cuando prefers-reduced-motion = reduce o cuando no hay JS. */

/* ── Base de la página ─────────────────────────────────────── */
.sv { background: var(--paper); color: var(--ink); }
.sv-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.sv-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dark .sv-eyebrow { color: var(--accent-on-dark); }
.sv-title { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
.sv-h2 { font-weight: 600; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; font-size: clamp(2.1rem, 4.6vw, 3.75rem); max-width: 18ch; }
.sv-h2 em { font-style: normal; color: var(--muted); }
.dark .sv-h2 em { color: var(--on-dark-muted); }
.sv-lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); letter-spacing: -.012em; max-width: 34em; text-wrap: pretty; }
.dark .sv-lead { color: var(--on-dark-muted); }
.sv-sec { padding-block: clamp(5rem, 11vw, 9.5rem); }
.sv-head { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Glifos de canal (genéricos, no son logotipos) */
.ch { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.ch svg { width: 15px; height: 15px; }
.ch--wa { color: #1C7A5E; background: var(--estado-ok-wash); border-color: #D3ECE2; }
.ch--ig { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-line); }
.ch--web { color: #3D5A80; background: #F0F4FA; border-color: #DCE4F0; }
.ch--tel { color: var(--estado-rev); background: var(--estado-rev-wash); border-color: #F1E1CB; }

/* ── 1 · Hero ─────────────────────────────────────────────── */
.sv-hero { position: relative; overflow: hidden; padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(4rem, 8vw, 7rem); }
.sv-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.sv-hero .sv-title { margin-top: 1.25rem; }
.sv-hero .sv-lead { margin-top: 1.75rem; }
.sv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2.25rem; }
.sv-hero__actions .btn { min-height: 52px; padding-inline: 1.6rem; }
.sv-hero__note { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.sv-hero__note svg { color: var(--estado-ok); flex: none; }
@media (max-width: 900px) { .sv-hero__grid { grid-template-columns: 1fr; } .sv-radar { max-width: 460px; margin-inline: auto; } }

/* Radar */
.sv-radar { position: relative; aspect-ratio: 1; width: 100%; }
.sv-radar__disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #FFFFFF 0 30%, var(--paper-2) 72%); border: 1px solid var(--line); }
.sv-radar__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.sv-radar__ring--1 { inset: 16%; } .sv-radar__ring--2 { inset: 32%; } .sv-radar__ring--3 { inset: 46%; border-color: var(--accent-line); background: var(--accent-wash); }
.sv-radar__axis { position: absolute; inset: 0; }
.sv-radar__axis::before, .sv-radar__axis::after { content: ""; position: absolute; background: var(--line); }
.sv-radar__axis::before { left: 50%; top: 4%; bottom: 4%; width: 1px; }
.sv-radar__axis::after { top: 50%; left: 4%; right: 4%; height: 1px; }
.sv-radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(124,58,237,.16), rgba(124,58,237,0) 22%, transparent 100%); transform: rotate(-90deg); }
.sv-radar__sweep::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48%; height: 2px; transform-origin: 0 50%; transform: rotate(0deg); background: linear-gradient(90deg, var(--accent), rgba(124,58,237,0)); border-radius: 2px; }
.sv-radar__core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(124,58,237,.14); }
.blip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; gap: .5rem; }
.blip__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 5px rgba(38,38,44,.08); }
.blip--hot .blip__dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(124,58,237,.18); }
.blip__tag { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem .35rem .4rem; border-radius: 999px; background: var(--raise, #fff); border: 1px solid var(--line); box-shadow: var(--sombra); font-size: .8125rem; font-weight: 500; white-space: nowrap; color: var(--ink); }
.blip__tag .ch { width: 22px; height: 22px; border-radius: 6px; }
.blip__tag .ch svg { width: 12px; height: 12px; }
.blip__tag b { font-weight: 600; color: var(--accent-ink); }
.blip--left { flex-direction: row-reverse; }
@media (max-width: 520px) { .blip__tag { font-size: .75rem; } .blip--hide-sm { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .sv-radar__sweep { animation: sv-spin 6s linear infinite; }
  .blip { animation: sv-blip 6s var(--ease) infinite; animation-delay: var(--t); }
  .blip--hot .blip__dot { animation: sv-pulse 2.4s var(--ease) infinite; }
  @keyframes sv-spin { to { transform: rotate(270deg); } }
  @keyframes sv-blip { 0% { opacity: .35; } 6% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: .35; } }
  @keyframes sv-pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(124,58,237,.18); } 50% { box-shadow: 0 0 0 12px rgba(124,58,237,.06); } }
}

/* ── 2 · El problema ──────────────────────────────────────── */
.sv-problem { position: relative; overflow: hidden; }
.sv-problem__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .sv-problem__grid { grid-template-columns: 1fr; } }
.sv-pains { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.sv-pains li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); }
.sv-pains li span { font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: .3rem; }
.sv-scatter { position: relative; min-height: 520px; }
.msg { position: absolute; left: var(--x); top: var(--y); width: min(300px, 78%); display: flex; flex-direction: column; gap: .55rem; padding: .9rem 1rem 1rem; border-radius: 14px; background: var(--raise, #fff); border: 1px solid var(--line); box-shadow: var(--sombra); transform: rotate(var(--r, 0deg)); }
.msg__top { display: flex; align-items: center; gap: .55rem; font-size: .8125rem; color: var(--muted); }
.msg__top strong { color: var(--ink); font-weight: 600; font-size: .875rem; }
.msg__top time { margin-left: auto; font-family: var(--mono); font-size: .72rem; }
.msg p { font-size: .9375rem; line-height: 1.45; color: var(--ink); }
.msg__state { align-self: flex-start; font-size: .72rem; font-family: var(--mono); letter-spacing: .04em; padding: .2rem .5rem; border-radius: 999px; background: var(--estado-alto-wash); color: var(--estado-alto); }
.msg__state--wait { background: var(--estado-rev-wash); color: var(--estado-rev); }
.msg--hot { border-color: var(--accent-line); }
.msg--hot::after { content: "Lista para decidir"; position: absolute; top: -.7rem; right: .9rem; font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: .2rem .55rem; border-radius: 999px; background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .sv-scatter { min-height: 0; display: flex; flex-direction: column; gap: .9rem; }
  .msg { position: relative; left: auto; top: auto; width: 100%; transform: none; }
  .msg:nth-child(n+4) { display: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    .msg { animation: sv-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes sv-drift { from { translate: 0 calc(var(--p, 1) * 70px); } to { translate: 0 calc(var(--p, 1) * -70px); } }
  }
}

/* ── 3 · Recorrido con panel fijo ─────────────────────────── */
.sv-story { position: relative; }
.sv-story__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 clamp(2rem, 5vw, 5rem); align-items: start; }
.sv-steps { display: flex; flex-direction: column; }
.sv-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding-block: 3rem; opacity: .32; transition: opacity .5s var(--ease); }
.sv-step:first-child { min-height: 64vh; }
.sv-step.is-active { opacity: 1; }
.no-sv .sv-step { opacity: 1; }
.sv-step__n { font-family: var(--mono); font-size: .8125rem; color: var(--accent-ink); letter-spacing: .08em; }
.sv-step h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.sv-step p { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.sv-step__proof { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; font-size: .875rem; color: var(--ink); padding: .4rem .75rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.sv-step__proof svg { color: var(--accent); }
.sv-stage { position: sticky; top: calc(var(--nav-h) + 3vh); height: min(680px, calc(100vh - var(--nav-h) - 6vh)); display: flex; align-items: center; }
.sv-rail { position: absolute; left: -1.75rem; top: 15%; bottom: 15%; width: 2px; background: var(--line); border-radius: 2px; }
.sv-rail i { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--accent); border-radius: 2px; transform-origin: top; transform: scaleY(var(--prog, .2)); transition: transform .6s var(--ease); }

/* Panel (la "app") */
.panel { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(38,38,44,.04), 0 40px 80px -40px rgba(38,38,44,.28); overflow: hidden; }
.panel__bar { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.panel__dots { display: flex; gap: 6px; } .panel__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel__name { font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
.panel__name span { font-weight: 400; color: var(--muted); }
.panel__tabs { display: flex; gap: .25rem; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.panel__tabs span { font-size: .75rem; font-weight: 500; padding: .3rem .65rem; border-radius: 999px; color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease); }
.panel[data-step="1"] .panel__tabs span:nth-child(1), .panel[data-step="2"] .panel__tabs span:nth-child(2), .panel[data-step="3"] .panel__tabs span:nth-child(3), .panel[data-step="4"] .panel__tabs span:nth-child(4), .panel[data-step="5"] .panel__tabs span:nth-child(5) { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(38,38,44,.08); }
.pause { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .75rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.pause:hover { border-color: var(--ink-2); }
.pause[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pause svg { width: 12px; height: 12px; }
.panel__body { position: relative; flex: 1; min-height: 0; }
.scene { position: absolute; inset: 0; padding: clamp(1rem, 2.4vw, 1.75rem); display: flex; flex-direction: column; gap: .75rem; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s linear .55s; }
.panel[data-step="1"] .scene--1, .panel[data-step="2"] .scene--2, .panel[data-step="3"] .scene--3, .panel[data-step="4"] .scene--4, .panel[data-step="5"] .scene--5 { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scene__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel__paused { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 1.5rem; background: rgba(255,253,247,.86); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.panel.is-paused .panel__paused { opacity: 1; visibility: visible; transition-delay: 0s; }
.panel__paused div { max-width: 26rem; text-align: center; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.panel__paused strong { font-size: 1.125rem; letter-spacing: -.02em; }
.panel__paused p { font-size: .9375rem; color: var(--ink-2); }

/* Escena 1: bandeja única */
.inbox { display: flex; flex-direction: column; gap: .5rem; }
.inrow { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.inrow strong { display: block; font-size: .9rem; font-weight: 600; }
.inrow small { display: block; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inrow time { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.inrow--new { border-color: var(--accent-line); background: var(--accent-wash); }
.merge { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 10px; background: var(--paper-2); font-size: .8125rem; color: var(--ink-2); }
.merge .ch { width: 22px; height: 22px; border-radius: 6px; } .merge .ch svg { width: 12px; height: 12px; }
.merge b { margin-left: auto; font-weight: 600; color: var(--ink); }

/* Escena 2: conversación + ficha */
.convo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: .9rem; height: 100%; min-height: 0; }
.bubbles { display: flex; flex-direction: column; gap: .5rem; padding: .85rem; border-radius: 14px; background: var(--paper-2); overflow: hidden; }
.bub { max-width: 88%; padding: .55rem .75rem; border-radius: 14px; font-size: .875rem; line-height: 1.4; }
.bub--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub--me { align-self: flex-end; background: var(--ink); color: var(--on-dark); border-bottom-right-radius: 4px; }
.bub__who { display: block; font-size: .68rem; font-family: var(--mono); letter-spacing: .04em; color: var(--muted); margin-bottom: .15rem; }
.bub--me .bub__who { color: var(--on-dark-muted); }
.ficha { display: flex; flex-direction: column; gap: .1rem; padding: .85rem; border-radius: 14px; border: 1px solid var(--line); }
.ficha h4 { font-size: .8125rem; font-weight: 600; margin-bottom: .35rem; }
.ficha dl { display: flex; flex-direction: column; }
.ficha div { padding: .45rem 0; border-top: 1px solid var(--line); }
.ficha dt { font-size: .68rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ficha dd { font-size: .875rem; font-weight: 500; }

/* Escena 3: señales y regla */
.signals { display: flex; flex-direction: column; gap: .4rem; }
.sig { display: grid; grid-template-columns: 22px 1fr; gap: .65rem; align-items: start; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.sig__ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--estado-ok-wash); color: var(--estado-ok); }
.sig__ok svg { width: 12px; height: 12px; }
.sig strong { font-size: .875rem; font-weight: 600; display: block; }
.sig q { font-size: .8125rem; color: var(--muted); quotes: "«" "»"; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: auto; padding: .85rem; border-radius: 12px; background: var(--ink); color: var(--on-dark); }
.verdict__p { font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--accent); color: #fff; }
.verdict code { font-family: var(--mono); font-size: .75rem; color: var(--on-dark-muted); line-height: 1.5; flex-basis: 100%; }

/* Escena 4: aprobación */
.draft { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.draft__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; }
.draft__head strong { font-size: .9375rem; }
.state { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 500; padding: .25rem .6rem; border-radius: 999px; background: var(--estado-rev-wash); color: var(--estado-rev); }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.draft blockquote { padding: .85rem 1rem; border-radius: 12px; background: var(--paper-2); font-size: .9rem; line-height: 1.5; }
.draft__meta { font-size: .8125rem; color: var(--muted); }
.draft__meta b { color: var(--ink); font-weight: 600; }
.draft__acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.fakebtn { display: inline-flex; align-items: center; min-height: 36px; padding: .4rem .95rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.fakebtn--go { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.guard { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 12px; background: var(--accent-wash); font-size: .8125rem; line-height: 1.45; color: var(--ink); }
.guard svg { flex: none; color: var(--accent-ink); margin-top: .1rem; }

/* Escena 5: embudo + bitácora */
.funnel { display: flex; flex-direction: column; gap: .5rem; }
.fun { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; align-items: center; font-size: .8125rem; color: var(--ink-2); }
.fun i { display: block; height: 22px; border-radius: 6px; background: var(--accent-line); width: var(--w); transform-origin: left; }
.fun:first-child i { background: var(--accent); }
.fun:nth-child(2) i { background: #9B6BF0; }
.log { display: flex; flex-direction: column; margin-top: .5rem; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 3.25rem 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.log time { font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: .1rem; }

/* Animación de entrada de cada escena (solo con movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .sv-js .scene > *, .sv-js .inbox > *, .sv-js .bubbles > *, .sv-js .signals > *, .sv-js .funnel > *, .sv-js .log > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .sv-js .panel[data-step="1"] .scene--1 > *, .sv-js .panel[data-step="1"] .scene--1 .inbox > *,
  .sv-js .panel[data-step="2"] .scene--2 > *, .sv-js .panel[data-step="2"] .scene--2 .bubbles > *,
  .sv-js .panel[data-step="3"] .scene--3 > *, .sv-js .panel[data-step="3"] .scene--3 .signals > *,
  .sv-js .panel[data-step="4"] .scene--4 > *,
  .sv-js .panel[data-step="5"] .scene--5 > *, .sv-js .panel[data-step="5"] .scene--5 .funnel > *, .sv-js .panel[data-step="5"] .scene--5 .log > * { opacity: 1; transform: none; }
  .sv-js .scene--1 .inbox > *:nth-child(2), .sv-js .scene--2 .bubbles > *:nth-child(2), .sv-js .scene--3 .signals > *:nth-child(2), .sv-js .scene--5 .funnel > *:nth-child(2), .sv-js .scene--5 .log > *:nth-child(2) { transition-delay: .25s; }
  .sv-js .scene--1 .inbox > *:nth-child(3), .sv-js .scene--2 .bubbles > *:nth-child(3), .sv-js .scene--3 .signals > *:nth-child(3), .sv-js .scene--5 .funnel > *:nth-child(3), .sv-js .scene--5 .log > *:nth-child(3) { transition-delay: .5s; }
  .sv-js .scene--1 .inbox > *:nth-child(4), .sv-js .scene--2 .bubbles > *:nth-child(4), .sv-js .scene--3 .signals > *:nth-child(4), .sv-js .scene--5 .funnel > *:nth-child(4), .sv-js .scene--5 .log > *:nth-child(4) { transition-delay: .75s; }
  .sv-js .scene--1 .inbox > *:nth-child(5), .sv-js .scene--3 .signals > *:nth-child(5) { transition-delay: 1s; }
  .sv-js .scene > *:nth-child(2) { transition-delay: .15s; }
  .sv-js .scene > *:nth-child(3) { transition-delay: .9s; }
  .sv-js .scene--3 > .verdict { transition-delay: 1.35s; }
  .sv-js .panel[data-step="5"] .fun i { animation: sv-grow 1s var(--ease) both; }
  @keyframes sv-grow { from { transform: scaleX(.05); } }
  .sv-js .panel[data-step="4"] .state { animation: sv-blink 1.6s ease-in-out infinite; }
  @keyframes sv-blink { 50% { opacity: .55; } }
}

/* Móvil: el panel se queda arriba y los pasos pasan por debajo */
@media (max-width: 900px) {
  .sv-story__grid { grid-template-columns: 1fr; }
  .sv-stage { order: -1; top: calc(var(--nav-h) + .5rem); height: 54vh; min-height: 400px; z-index: 2; padding-bottom: .75rem; background: linear-gradient(var(--paper) 85%, rgba(255,253,247,0)); }
  .sv-rail { display: none; }
  .sv-step, .sv-step:first-child { min-height: 58vh; justify-content: flex-end; padding-block: 2rem 3rem; opacity: .45; }
  .sv-step.is-active { opacity: 1; }
  .sv-steps { padding-bottom: 20vh; }
  .inrow time { display: none; }
  .panel__tabs { display: none; }
  .convo { grid-template-columns: 1fr; }
  .ficha { display: none; }
  .scene { gap: .55rem; }
  .sig q { display: none; }
}

/* ── 4 · Pruébalo ─────────────────────────────────────────── */
.sv-try__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .sv-try__grid { grid-template-columns: 1fr; } }
.rules-box { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 900px) { .rules-box { position: static; } }
.rules-box h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.rules-box > p { font-size: .9375rem; color: var(--muted); }
.toggles { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 60px; padding: .75rem 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); cursor: pointer; }
.tog__sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line); transition: background .25s var(--ease); }
.tog__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(38,38,44,.25); transition: transform .3s var(--ease); }
.tog[aria-pressed="true"] .tog__sw { background: var(--accent); }
.tog[aria-pressed="true"] .tog__sw::after { transform: translateX(18px); }
.tog:focus-visible { outline-offset: 2px; }
.legend { display: flex; gap: .55rem; align-items: flex-start; font-size: .8125rem; line-height: 1.45; color: var(--muted); padding: .75rem .9rem; border-radius: 12px; background: var(--paper-2); }
.legend svg { flex: none; margin-top: .1rem; }
.queue { position: relative; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: 0 40px 80px -48px rgba(38,38,44,.3); overflow: hidden; }
.queue__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.queue__bar strong { font-size: .9375rem; }
.queue__bar span { font-size: .8125rem; color: var(--muted); }
.queue__bar .pause { margin-left: auto; }
.queue__list { position: relative; height: calc(var(--n, 6) * var(--row) + 1.5rem); --row: 92px; padding: .75rem; transition: opacity .3s var(--ease); }
@media (max-width: 600px) { .queue__list { --row: 118px; } }
.qcard { position: absolute; left: .75rem; right: .75rem; top: .75rem; height: calc(var(--row) - .5rem); display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .35rem .85rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; transform: translateY(calc(var(--pos, 0) * var(--row))); transition: transform .7s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.qcard__rank { font-family: var(--mono); font-size: .8125rem; color: var(--muted); text-align: center; }
.qcard__who { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.qcard__who strong { font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.qcard__who small { font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard__why { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: .3rem; }
.qcard__why span { font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease); }
.qcard__why span.on { background: var(--estado-ok-wash); color: var(--estado-ok); border-color: #D3ECE2; }
.prio { justify-self: end; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.prio--alta { background: var(--accent); color: #fff; }
.prio--media { background: var(--accent-wash); color: var(--accent-ink); }
.prio--baja { background: var(--paper-2); color: var(--muted); }
.qcard.is-top { border-color: var(--accent-line); background: #FDFBFF; }
.queue.is-paused .queue__list { opacity: .35; pointer-events: none; }
.queue__paused { display: none; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--ink); color: var(--on-dark); font-size: .875rem; }
.queue.is-paused .queue__paused { display: block; }
.queue__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.no-sv .qcard { position: relative; top: auto; left: auto; right: auto; transform: none; margin-bottom: .5rem; }
.no-sv .queue__list { height: auto; }
@media (prefers-reduced-motion: reduce) { .qcard { transition: none; } }

/* ── 5 · Capacidades (bento) ──────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: .6rem; min-height: 300px; padding: clamp(1.4rem, 2.4vw, 2rem); border-radius: 20px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(38,38,44,.35); }
.tile--wide { grid-column: span 4; }
.tile--ink { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tile h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; max-width: 16ch; text-wrap: balance; }
.tile p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.tile--ink p { color: var(--on-dark-muted); }
.tile__vis { margin-top: auto; padding-top: 1.25rem; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile--wide { grid-column: span 1; } .tile--wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile, .tile--wide { grid-column: span 1; min-height: 0; } }

/* micro-visuales */
.v-merge { display: flex; align-items: center; gap: 1rem; }
.v-merge__in { display: flex; flex-direction: column; gap: .45rem; }
.v-merge svg.v-lines { flex: 1; height: 120px; color: var(--accent); }
.v-merge__out { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .85rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 9.5rem; font-size: .8125rem; }
.v-merge__out i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.v-merge__out i:first-of-type { background: var(--accent); width: 80%; }
.v-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .875rem; }
.v-stack { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.v-typing { display: inline-flex; gap: 4px; padding: .65rem .8rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.v-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .v-typing i { animation: sv-dot 1.2s ease-in-out infinite; } .v-typing i:nth-child(2) { animation-delay: .15s; } .v-typing i:nth-child(3) { animation-delay: .3s; } @keyframes sv-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } } }
.v-rule { font-family: var(--mono); font-size: .78rem; line-height: 1.6; padding: .8rem .9rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--on-dark); }
.v-rule b { color: var(--accent-on-dark); font-weight: 500; }
.v-route { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.v-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.v-av--on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 5px rgba(124,58,237,.15); }
.v-arrow { color: var(--muted); }
.v-stamp { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .875rem; font-weight: 500; }
.v-stamp svg { color: var(--estado-ok); }
.v-bars { display: flex; align-items: flex-end; gap: .5rem; height: 110px; }
.v-bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--accent-line); height: var(--h); }
.v-bars i:first-child { background: var(--accent); }

/* ── 6 · Control (oscuro) ─────────────────────────────────── */
.sv-control .sv-h2 { max-width: 16ch; }
.ctrl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #3A3A42; }
.ctrl li { display: flex; flex-direction: column; gap: .75rem; padding: 2rem 2rem 2rem 0; }
.ctrl li + li { padding-left: 2rem; border-left: 1px solid #3A3A42; }
.ctrl svg { color: var(--accent-on-dark); }
.ctrl h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.ctrl p { color: var(--on-dark-muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 860px) { .ctrl { grid-template-columns: 1fr; } .ctrl li, .ctrl li + li { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid #3A3A42; } }
.sv-control__foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; color: var(--on-dark-muted); font-size: 1rem; }

/* ── 7 · Cómo lo ponemos en marcha (riel) ─────────────────── */
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: r; }
.rail li { position: relative; display: flex; flex-direction: column; gap: .5rem; padding-top: 1.75rem; border-top: 2px solid var(--line); }
.rail li::before { counter-increment: r; content: "0" counter(r); position: absolute; top: -.85rem; left: 0; font-family: var(--mono); font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--accent-ink); }
.rail li:first-child { border-top-color: var(--accent); }
.rail h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.rail p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .rail { grid-template-columns: 1fr; gap: 0; } .rail li { padding: 1.5rem 0 1.5rem 3.5rem; border-top: 0; border-left: 2px solid var(--line); } .rail li::before { top: 1.45rem; left: -1.1rem; } .rail li:first-child { border-left-color: var(--accent); } }
