/* SendyPro — escenas inmersivas sobre la base Emberline.
   Vendedor IA = Orvane Particle Hero (estilos originales, acotados a .sp-ia);
   Una venta = escena fija ligada al scroll sobre Neural Noise Cursor;
   Funciones = galería horizontal con Border Glow; Cierre = Dust Vortex. */

html.lenis, html.lenis body { height: auto; }

/* ---------- Títulos que se revelan palabra por palabra ---------- */
[data-sp-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-sp-words] .w > span { display: inline-block; will-change: transform; }
[data-sp-words] .w > span.sp-ember { padding-right: .04em; }

/* ---------- Componentes originales con la paleta de SendyPro ---------- */
.hlb-btn { font-family: var(--font); text-decoration: none; }
.hlb-btn.sp-halo[data-tone="ink"] { --ring-a: #ffffff; --ring-b: #4fb4ff; --ring-c: #021026; --ring-d: #9fd6ff; }
.sp-plan .hlb-btn { width: 100%; margin-top: auto; }

.sp-bgl {
  --bgl-x: 0px; --bgl-y: 0px; --bgl-lit: 0;
  --bgl-radius: 30px; --bgl-halo: 20px; --bgl-spread: 140px; --bgl-brightness: 1; --bgl-wash: .12; --bgl-rim: 1px; --bgl-ink: #fff;
  --bgl-wheel: conic-gradient(from -90deg at 50% 50%, #2f7bff, #9fd6ff, #5b82ff, #2f7bff);
  position: relative; overflow: visible; outline: none;
}
.sp-bgl > :not(.bgl-lamp) { position: relative; z-index: 1; }
.sp-tile.sp-bgl, .sp-fcard.sp-bgl { --bgl-radius: 32px; }

.sp-plan--hot.ngc-card {
  --ngc-w: 440px; --ngc-u: calc(var(--ngc-w) / 20); --ngc-radius: 30px; --ngc-frost: 17px; --ngc-tint: 6%; --ngc-lift: 14px;
  --ngc-glow: .78; --ngc-spread: .6; --ngc-sweep-opacity: 1; --ngc-sweep-play: running; --ngc-sweep-duration: 4600ms;
  --ngc-neon: #2f7bff; --ngc-neon-alt: #9fd6ff; --ngc-ink: #ffffff; --ngc-surface: #061022; --ngc-duration: 400ms;
  --ngc-hairline: color-mix(in srgb, var(--ngc-ink) 18%, transparent);
  --ngc-glass: color-mix(in srgb, var(--ngc-ink) var(--ngc-tint), transparent);
  width: auto; height: auto; overflow: hidden; border: 0; box-shadow: none; background: #060b14;
}
.sp-plan--hot > :not(.ngc-bloom):not(.ngc-pane):not(.ngc-ring):not(.sp-plan__flag) { position: relative; z-index: 3; }
.sp-plan--hot .sp-plan__flag { z-index: 4; }

/* ---------- Escena 2: Vendedor IA (Orvane) ---------- */
.sp-ia {
  --ia-ink: #eef1ff; --ia-mute: rgba(206, 214, 255, .52); --ia-faint: rgba(206, 214, 255, .32);
  --ia-line: rgba(128, 150, 255, .1); --ia-ice: #a9bdff; --ia-blue: #5b82ff; --ia-gold: #ffb45e;
  --ia-pad: clamp(20px, 2.4vw, 40px); --ia-display: clamp(44px, 5.3vw, 94px);
  --ia-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --ia-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; color: var(--ia-ink);
  background: radial-gradient(60% 70% at 58% 62%, #0b1552 0%, #050825 55%, #03041a 100%);
}
.sp-ia::before, .sp-ia::after { content: ""; position: absolute; left: 0; right: 0; height: 18%; z-index: 0; pointer-events: none; }
.sp-ia::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.sp-ia::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }
.ia-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.sp-ia.no-gl .ia-gl { display: none; }
.ia-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.ia-grid line { stroke: var(--ia-line); stroke-width: 1; shape-rendering: crispEdges; }
.ia-grid path { stroke: rgba(169, 189, 255, .4); stroke-width: 1; fill: none; shape-rendering: crispEdges; }
.ia-eyebrow { position: absolute; z-index: 1; left: var(--ia-pad); top: clamp(64px, 10vh, 96px); margin: 0; font: 500 11px/1 var(--ia-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ia-ice); }
.ia-h1 { position: absolute; z-index: 1; left: var(--ia-pad); top: clamp(100px, 15.5vh, 150px); margin: 0; font-weight: 400; font-size: var(--ia-display); line-height: .95; letter-spacing: -.045em; pointer-events: none; }
.ia-h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.ia-h1 .line > span { display: inline-block; }
.ia-cycle { position: absolute; z-index: 1; right: var(--ia-pad); bottom: calc(var(--ia-pad) - .08em); min-width: 7.4em; margin: 0; font-weight: 400; font-size: var(--ia-display); line-height: .95; letter-spacing: -.045em; pointer-events: none; }
.ia-cycle .ln { display: block; white-space: nowrap; }
.ia-cycle .ch { display: inline-block; transition: opacity .75s var(--ia-ease), filter .75s var(--ia-ease), transform .75s var(--ia-ease); transition-delay: calc(var(--i) * 24ms); }
.ia-cycle.is-out .ch { opacity: 0; filter: blur(12px); transform: translateY(-.1em); transition-duration: .5s; }
.ia-cycle.is-pre .ch { opacity: 0; filter: blur(16px); transform: translateY(.16em); transition: none; }
.ia-lede { position: absolute; z-index: 1; left: var(--ia-pad); bottom: var(--ia-pad); margin: 0; font: 400 12px/1.5 var(--ia-mono); color: var(--ia-ink); letter-spacing: -.01em; }
.ia-stats { margin: 0; padding: 0; list-style: none; }
.ia-stat { position: absolute; z-index: 1; display: grid; gap: 4px; padding-left: 14px; font-family: var(--ia-mono); pointer-events: none; }
.ia-stat::before { content: ""; position: absolute; left: 0; top: 5px; width: 5px; height: 5px; background: var(--ia-ice); box-shadow: 0 0 10px var(--ia-blue); }
.ia-stat b { font-weight: 500; font-size: 13px; color: var(--ia-ink); letter-spacing: .02em; }
.ia-stat span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ia-faint); }
.ia-stat--a { right: 6.5vw; top: 27%; }
.ia-stat--b { left: 71%; top: 55%; }
.ia-stat--c { left: 14%; top: 68%; }
.ia-cta { position: absolute; z-index: 2; right: var(--ia-pad); top: clamp(56px, 9vh, 88px); overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 11px 14px 11px 16px; border: 1px solid rgba(124, 155, 255, .5); font: 500 11px/1 var(--ia-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ia-ice); transition: color .45s var(--ia-ease), border-color .45s var(--ia-ease); }
.ia-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #8aa4ff, #c7d3ff); transform: translateX(-101%); transition: transform .6s var(--ia-ease); }
.ia-cta:hover, .ia-cta:focus-visible { color: #060a2c; border-color: #c7d3ff; }
.ia-cta:hover::before, .ia-cta:focus-visible::before { transform: none; }
.ia-cta__arrows { display: inline-flex; gap: 2px; }
.ia-cta__arrows i { width: 5px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); animation: ia-chev 1.6s steps(1) infinite; opacity: .25; }
.ia-cta__arrows i:nth-child(2) { animation-delay: .2s; }
.ia-cta__arrows i:nth-child(3) { animation-delay: .4s; }
.ia-cta__arrows i:nth-child(4) { animation-delay: .6s; }
.ia-cta:hover .ia-cta__arrows i { animation-duration: .8s; }
@keyframes ia-chev { 0% { opacity: 1; } 25% { opacity: .25; } }
.ia-hint { position: absolute; z-index: 1; left: 50%; bottom: calc(var(--ia-pad) + 2px); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; margin: 0; font: 400 10px/1 var(--ia-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ia-faint); }
.ia-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--ia-gold); box-shadow: 0 0 12px var(--ia-gold); animation: ia-pulse 2.4s ease-in-out infinite; }
@keyframes ia-pulse { 50% { opacity: .3; transform: scale(.7); } }
.ia-credit { position: absolute; z-index: 1; left: var(--ia-pad); bottom: calc(var(--ia-pad) + 46px); margin: 0; font: 400 9px/1.4 var(--ia-mono); letter-spacing: .06em; color: var(--ia-faint); }
.ia-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 2px; }
.ia-credit a:hover { color: var(--ia-ink); }
/* entrada (antes .js / .is-in en el documento; aquí en la sección) */
.sp-ia .ia-h1 .line > span { transform: translateY(108%); }
.sp-ia .ia-stat, .sp-ia .ia-lede, .sp-ia .ia-hint, .sp-ia .ia-credit, .sp-ia .ia-grid, .sp-ia .ia-cta, .sp-ia .ia-eyebrow { opacity: 0; }
.sp-ia.is-in .ia-h1 .line > span { transform: none; transition: transform 1.3s var(--ia-ease); }
.sp-ia.is-in .ia-h1 .line:nth-child(2) > span { transition-delay: .09s; }
.sp-ia.is-in .ia-stat, .sp-ia.is-in .ia-lede, .sp-ia.is-in .ia-hint, .sp-ia.is-in .ia-credit, .sp-ia.is-in .ia-grid, .sp-ia.is-in .ia-cta, .sp-ia.is-in .ia-eyebrow { opacity: 1; transition: opacity 1.2s ease .35s; }
.sp-ia.is-in .ia-stat--b { transition-delay: .55s; }
.sp-ia.is-in .ia-stat--c { transition-delay: .75s; }

/* ---------- Escena 3: una venta, de principio a fin ---------- */
.sp-story { position: relative; height: calc(100svh + 5 * 70svh); }
.sp-story__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.sp-story__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sp-story__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 6, 11, .9) 0%, rgba(5, 6, 11, .5) 48%, rgba(5, 6, 11, .15) 100%), linear-gradient(180deg, var(--bg) 0, transparent 16%, transparent 84%, var(--bg) 100%); }
.sp-story__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; pointer-events: none; }
.sp-story__steps { position: relative; min-height: 270px; }
.sp-story__step { position: absolute; left: 0; top: 0; right: 0; opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease); }
.sp-story__step.is-on { opacity: 1; transform: none; filter: none; }
.sp-story__n { font: 500 13px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; color: var(--accent-hi); }
.sp-story__step h3 { margin: 16px 0 0; font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; background: linear-gradient(180deg, #fff 30%, #d2ecff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-story__step p { max-width: 40ch; margin: 18px 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }
.sp-story__bar { width: 240px; height: 2px; margin-top: 28px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.sp-story__bar i { display: block; width: calc(var(--p, 0) * 100%); height: 100%; background: linear-gradient(90deg, #2f7bff, #9fd6ff); box-shadow: 0 0 12px #2f7bff; }
.sp-story__device { position: relative; display: grid; place-items: center; height: min(80svh, 700px); perspective: 1400px; }
.sp-story__glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, .38), rgba(91, 130, 255, .12) 45%, transparent 68%); filter: blur(36px); }
.sp-story__tilt { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -18deg)) rotateX(var(--rx, 6deg)) scale(var(--s, .94)); will-change: transform; }
.sp-story__phone { width: min(300px, 62vw); }
.sp-story__phone .sp-wa { font-size: 12.5px; }
.sp-story [data-at] { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .55s var(--ease); }
.sp-story [data-at].is-on { opacity: 1; transform: none; }
.sp-story__chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: rgba(12, 13, 18, .72); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .9); }
.sp-story__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.sp-story__chip.c1 { left: 2%; top: 14%; }
.sp-story__chip.c2 { right: 0; top: 28%; }
.sp-story__chip.c3 { left: 0; top: 50%; }
.sp-story__chip.c4 { right: -2%; top: 64%; }
.sp-story__chip.c5 { left: 6%; bottom: 10%; }

/* ---------- Escena 4: galería horizontal ---------- */
.sp-gallery { position: relative; }
.sp-gallery__pin { overflow: hidden; padding: clamp(90px, 13vh, 150px) 0 clamp(50px, 8vh, 90px); }
.sp-gallery__head { margin-bottom: 18px; }
.sp-gallery__track { display: flex; gap: 26px; width: max-content; padding: 40px max(20px, calc((100vw - 1200px) / 2)) 30px; will-change: transform; }
.sp-fcard { flex: none; width: min(440px, 82vw); padding: 22px; border-radius: 32px; background: linear-gradient(180deg, var(--sp-panel-2), var(--sp-panel)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.sp-fcard h3 { margin: 24px 4px 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -.035em; }
.sp-fcard p { margin: 10px 4px 4px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Escena 5: pasos que se apilan ---------- */
.sp-steps--stack { gap: 26px; }
.sp-steps--stack .sp-step { position: sticky; top: calc(84px + var(--k, 0) * 22px); transform-origin: 50% 0; box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .95); background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 65%), color-mix(in srgb, var(--c) 7%, #08090c); }
.sp-steps--stack .sp-step:nth-child(2) { --k: 1; }
.sp-steps--stack .sp-step:nth-child(3) { --k: 2; }
.sp-steps--stack .sp-step:nth-child(4) { --k: 3; }

/* ---------- Escena 7: cierre ---------- */
.sp-end { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 100svh; padding: 120px 0; text-align: center; }
.sp-end__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sp-end__veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 40% at 50% 52%, rgba(7, 8, 10, .78), transparent 72%), linear-gradient(180deg, var(--bg) 0, transparent 18%, transparent 82%, var(--bg) 100%); }
.sp-end__inner { position: relative; z-index: 2; }
.sp-end__title { max-width: 14ch; margin-inline: auto; font-size: clamp(2.6rem, 1.3rem + 5vw, 5.8rem); }
.sp-end .sp-sub { margin-inline: auto; }
.sp-end .cta-row { justify-content: center; margin-top: 34px; }

/* ---------- Pantallas ---------- */
@media (max-width: 1024px) and (orientation: portrait) {
  .sp-ia { --ia-display: clamp(40px, 8.4vw, 76px); }
  .ia-h1 { top: 118px; }
  .ia-stat--a { right: var(--ia-pad); top: 24%; }
  .ia-stat--b { left: auto; right: var(--ia-pad); top: 61%; }
  .ia-stat--c { left: var(--ia-pad); top: 58%; }
  .ia-hint { display: none; }
}
@media (max-width: 1024px) {
  .sp-gallery__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-top: 30px; }
  .sp-gallery__track::-webkit-scrollbar { display: none; }
  .sp-fcard { scroll-snap-align: center; }
}
@media (max-width: 900px) {
  .sp-story { height: calc(100svh + 5 * 60svh); }
  .sp-story__grid { grid-template-columns: 1fr; gap: 6px; align-content: center; height: 100svh; padding-top: 70px; }
  .sp-story__veil { background: linear-gradient(180deg, var(--bg) 0, rgba(5, 6, 11, .82) 34%, rgba(5, 6, 11, .35) 70%, var(--bg) 100%); }
  .sp-story__steps { min-height: 190px; }
  .sp-story__step h3 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .sp-story__step p { font-size: .95rem; margin-top: 10px; }
  .sp-story__bar { margin-top: 12px; }
  .sp-story__device { height: 52svh; }
  .sp-story__phone { width: min(220px, 52vw); }
  .sp-story__phone .sp-wa { font-size: 10px; }
  .sp-story__chip { font-size: 11px; padding: 7px 11px; }
  .sp-story__chip.c1, .sp-story__chip.c3 { left: 0; }
  .sp-story__chip.c2, .sp-story__chip.c4 { right: 0; }
}
@media (max-width: 700px) {
  .sp-ia { --ia-display: clamp(36px, 10.6vw, 52px); min-height: 600px; }
  .ia-eyebrow { top: 64px; }
  .ia-h1 { top: 88px; }
  .ia-cta { top: auto; right: auto; left: var(--ia-pad); bottom: calc(var(--ia-pad) + 100px); padding: 10px 11px 10px 12px; gap: 9px; font-size: 10px; }
  .ia-cycle { left: var(--ia-pad); right: auto; bottom: calc(var(--ia-pad) + 150px); }
  .ia-lede { font-size: 11px; bottom: var(--ia-pad); color: var(--ia-mute); text-shadow: 0 1px 12px #03041a, 0 0 4px #03041a; }
  .ia-stat--a { right: auto; left: 52%; top: calc(92px + 2.3 * var(--ia-display)); }
  .ia-stat--b { display: none; }
  .ia-stat--c { left: var(--ia-pad); top: calc(92px + 2.3 * var(--ia-display)); }
  .ia-hint { display: none; }
  .ia-credit { left: auto; right: var(--ia-pad); bottom: auto; top: 64px; font-size: 8px; }
  .sp-steps--stack .sp-step { top: calc(70px + var(--k, 0) * 14px); }
  .sp-end { min-height: 86svh; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-ia .ia-h1 .line > span { transform: none; }
  .ia-cta__arrows i, .ia-hint i { animation: none; opacity: 1; }
  .ia-cycle .ch { transition: opacity .3s; filter: none !important; transform: none !important; }
  .sp-story__step, .sp-story [data-at] { transition: none; filter: none; }
}

/* ---------- Ajustes de celular (al final para prevalecer) ---------- */
.sp-gallery__hint { display: none; }
@media (max-width: 1024px) {
  .sp-gallery__hint { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
  .sp-gallery__hint span { color: var(--accent-hi); animation: sp-nudge 1.6s ease-in-out infinite; }
  @keyframes sp-nudge { 50% { transform: translateX(6px); } }
}
@media (max-width: 900px) {
  .sp-story__device { height: 50svh; }
  .sp-story__phone { width: min(210px, 52vw, calc(44svh * 9 / 18.5)); }
  /* Una sola etiqueta a la vez, la del paso actual, centrada bajo el teléfono. */
  .sp-story .sp-story__chip { left: 50%; right: auto; top: auto; bottom: 0; }
  .sp-story .sp-story__chip[data-at] { opacity: 0; transform: translate(-50%, 10px); }
  .sp-story .sp-story__chip[data-at].is-now { opacity: 1; transform: translate(-50%, 0); }
  .sp-story__glow { width: 100%; }
}
@media (max-width: 700px) {
  .ia-credit { top: auto; right: auto; left: var(--ia-pad); bottom: calc(var(--ia-pad) + 62px); }
  .sp-ia::before { height: 12%; }
  .sp-end__title { max-width: 12ch; }
  .sp-end .cta-row { flex-direction: column; align-items: stretch; width: min(100%, 360px); margin-inline: auto; }
  .sp-end .cta-row .btn, .sp-end .cta-row .hlb-btn { justify-content: center; }
}
@media (max-width: 380px) {
  .sp-story__steps { min-height: 210px; }
  .sp-story__step h3 { font-size: 1.55rem; }
}

/* Botón flotante de registro: solo en celular, cuando la cabecera ya no se ve. */
.sp-float { display: none; }
@media (max-width: 700px) {
  .sp-float { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #021026; background: linear-gradient(180deg, #ffffff, #e3f2ff); box-shadow: 0 0 0 1px rgba(159, 214, 255, .6), 0 12px 40px -6px rgba(47, 123, 255, .65); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
  .sp-float.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
}

/* ---------- Respaldo sin WebGL: nunca un lienzo blanco ---------- */
.sin-gl > canvas { display: none !important; }
.sp-story.sin-gl .sp-story__pin { background: radial-gradient(60% 50% at 75% 55%, rgba(47, 123, 255, .22), transparent 70%), radial-gradient(50% 40% at 20% 30%, rgba(91, 130, 255, .14), transparent 70%), #05060b; }
.sp-end.sin-gl { background: radial-gradient(closest-side at 50% 52%, transparent 62%, rgba(255, 210, 168, .9) 64%, rgba(47, 123, 255, .55) 67%, transparent 76%), radial-gradient(50% 45% at 50% 52%, rgba(47, 123, 255, .18), transparent 72%), #07080a; }
.sp-ia.no-gl { background: radial-gradient(38% 44% at 62% 58%, rgba(91, 130, 255, .32), transparent 70%), radial-gradient(60% 70% at 58% 62%, #0b1552 0%, #050825 55%, #03041a 100%); }
.sp-ia.no-gl .ia-hint { display: none; }
@media (max-width: 900px) {
  .sp-step__card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 11, 14, .92); }
}

/* Chat de la escena: como en WhatsApp, lo más reciente queda abajo y lo que aún no llegó no ocupa lugar. */
.sp-story .sp-wa__body { justify-content: flex-end; overflow: hidden; }
.sp-story .sp-wa__m[data-at] { flex-shrink: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: -3px 0; overflow: hidden; transition: opacity .5s var(--ease), transform .55s var(--ease), max-height .6s var(--ease), padding .45s var(--ease), margin .45s var(--ease); }
.sp-story .sp-wa__m[data-at].is-on { max-height: 220px; padding-top: 7px; padding-bottom: 7px; margin: 0; }
@media (max-width: 700px) {
  .ia-cta { background: rgba(3, 4, 26, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .ia-credit { top: calc(92px + 2.3 * var(--ia-display) + 52px); bottom: auto; }
  .ia-cycle, .ia-lede { text-shadow: 0 2px 18px #03041a, 0 0 6px #03041a; }
}

/* Detalles vistos en capturas reales (iPhone SE y escritorio). */
.sp-chat__head .sp-ia-pill { white-space: nowrap; flex: none; }
.sp-wa .sp-msg--file > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 901px) {
  .sp-story__chip.c1 { left: -10%; top: 9%; }
}
@media (max-width: 700px) {
  /* El crédito del escaneo va abajo a la derecha, junto al texto, fuera de la figura. */
  .ia-credit { top: auto; left: auto; right: var(--ia-pad); bottom: var(--ia-pad); max-width: 130px; text-align: right; }
}

/* ---------- Ajustes vistos en un celular real (Android, pantalla baja por la barra del navegador) ---------- */

/* Primera pantalla: el panel se desvanece en vez de cortarse en seco contra la franja siguiente. */
.stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(7, 8, 10, 0) 0%, rgba(7, 8, 10, .75) 55%, var(--bg) 100%); }

/* Chat de la escena: aviso del sistema dentro de la conversación, nombre de archivo en una línea y
   los mensajes viejos se desvanecen arriba en lugar de verse cortados. */
.sp-wa__ev { align-self: center; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px !important; font-size: .92em; font-weight: 600; color: #9cf0c5; background: rgba(63, 209, 138, .14); border: 1px solid rgba(63, 209, 138, .35); padding-left: 10px; padding-right: 10px; }
.sp-wa__ev svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-wa .sp-msg--file > span:last-child { overflow-wrap: normal; }
.sp-file__nombre { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-file__nombre small { white-space: nowrap; }
.sp-story .sp-wa__body { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px); mask-image: linear-gradient(180deg, transparent 0, #000 26px); }

@media (max-width: 900px) {
  .sp-story__grid { height: 100svh; padding: 60px 0 14px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; align-content: stretch; }
  .sp-story__copy .sp-eyebrow { margin-bottom: 8px; }
  .sp-story__steps { min-height: 136px; }
  .sp-story__n { font-size: 11px; }
  .sp-story__step h3 { margin-top: 8px; font-size: clamp(1.45rem, 6.4vw, 2rem); }
  .sp-story__step p { margin-top: 6px; font-size: .9rem; line-height: 1.5; }
  .sp-story__bar { margin-top: 8px; }
  .sp-story__device { height: auto; min-height: 0; }
  .sp-story__phone { width: min(240px, 60vw, calc((100svh - 270px) * 9 / 18.5)); }
  .sp-story__phone .sp-wa { font-size: clamp(9px, 2.55vw, 10.5px); }
  .sp-story .sp-story__chip { display: none; }
}
.sp-wa__ev { white-space: nowrap; }

/* ---------- Panel del inicio: notificaciones de ventas en cascada ---------- */
.sp-board--ventas { display: flex; flex-direction: column; gap: 14px; min-height: 560px; grid-template-columns: none; }
.sp-ventas__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px; }
.sp-ventas__head b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.sp-ventas__head small { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.sp-ventas__head small i { width: 7px; height: 7px; border-radius: 50%; background: #3fd18a; box-shadow: 0 0 0 3px rgba(63, 209, 138, .2); animation: sp-latido 1.8s ease-in-out infinite; }
@keyframes sp-latido { 50% { box-shadow: 0 0 0 6px rgba(63, 209, 138, .05); } }
.sp-ventas__chip { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #9fd6ff; background: rgba(47, 123, 255, .12); border: 1px solid rgba(79, 180, 255, .35); }
.sp-ventas__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.sp-feed { display: flex; flex-direction: column; gap: 10px; }
.sp-noti { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(30, 36, 52, .78), rgba(17, 20, 30, .82)); border: 1px solid rgba(160, 200, 255, .14); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sp-noti__ico { position: relative; width: 42px; height: 42px; border-radius: 12px; background: #fff url("/logo-text.png") 6px center / auto 30px no-repeat; box-shadow: 0 6px 18px -6px rgba(47, 123, 255, .6); }
.sp-noti__ico::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #12151e; background: #3fd18a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e1a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 9px no-repeat; }
.sp-noti__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink-3); }
.sp-noti__top b { font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.sp-noti__tit { margin-top: 2px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-noti__tit em { font-style: normal; background: linear-gradient(180deg, #ffffff 15%, #8fd0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-noti__sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.sp-noti__sub span { overflow: hidden; text-overflow: ellipsis; }
.sp-flag { flex: none; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.sp-noti__ok { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: #9cf0c5; background: rgba(63, 209, 138, .12); border: 1px solid rgba(63, 209, 138, .3); }
.sp-noti.is-nueva { animation: sp-noti-in .7s cubic-bezier(.2, .9, .25, 1.15) both; }
.sp-noti.is-nueva::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(79, 180, 255, .7), 0 0 34px rgba(47, 123, 255, .55); animation: sp-noti-brillo 1.4s ease-out forwards; }
@keyframes sp-noti-in { from { opacity: 0; transform: translateY(-26px) scale(.94); max-height: 0; margin-bottom: -10px; } to { opacity: 1; transform: none; max-height: 120px; margin-bottom: 0; } }
@keyframes sp-noti-brillo { to { opacity: 0; } }
.sp-noti.is-sale { animation: sp-noti-out .5s ease forwards; }
@keyframes sp-noti-out { to { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 1180px) { .sp-ventas__cols { grid-template-columns: 1fr; } .sp-feed--b { display: none; } }
@media (max-width: 760px) {
  .sp-board--ventas { min-height: 470px; gap: 12px; }
  .sp-noti { grid-template-columns: 38px minmax(0, 1fr); padding: 11px 12px; }
  .sp-noti__ico { width: 38px; height: 38px; background-size: auto 27px; }
  .sp-noti__tit { font-size: 14px; }
  .sp-noti__ok { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sp-noti.is-nueva, .sp-noti.is-nueva::before, .sp-noti.is-sale { animation: none; } }

/* Celular: el flujo de ventas sube y se compacta para que se vean varias notificaciones a la vez. */
@media (max-width: 760px) {
  :root { --arc-zone: clamp(78px, 11vh, 110px); }
  .app .topbar { display: none; }
  .app-body { padding: 12px; }
  .stage::before { height: 13%; }
  .sp-board--ventas { gap: 10px; }
  .sp-ventas__head b { font-size: 14.5px; }
  .sp-ventas__head small { font-size: 11.5px; }
  .sp-ventas__chip { display: none; }
  .sp-feed { gap: 8px; }
  .sp-noti { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 9px 11px; border-radius: 15px; }
  .sp-noti__ico { width: 34px; height: 34px; border-radius: 10px; background-size: auto 24px; background-position: 5px center; }
  .sp-noti__ico::after { width: 13px; height: 13px; background-size: 7px; }
  .sp-noti__top { font-size: 10px; }
  .sp-noti__tit { margin-top: 0; font-size: 13.5px; }
  .sp-noti__sub { margin-top: 2px; font-size: 11.5px; }
}

/* Escena de la venta en celular: menos aire arriba, teléfono centrado en el espacio libre. */
@media (max-width: 900px) {
  .sp-story__grid { padding: 22px 0 26px; gap: 14px; }
  .sp-story__steps { min-height: 124px; }
  .sp-story__phone { width: min(250px, 62vw, calc((100svh - 236px) * 9 / 18.5)); }
}

/* Galería: también en celular avanza de lado con el scroll; todo cabe en una pantalla mientras está fija. */
.sp-gallery__hint { display: none !important; }
@media (max-width: 1024px) {
  .sp-gallery__track { width: max-content; overflow: visible; scroll-snap-type: none; padding-top: 22px; }
  .sp-fcard { scroll-snap-align: none; }
}
@media (max-width: 760px) {
  .sp-gallery__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
  .sp-gallery__head .sp-title { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .sp-gallery__head .sp-eyebrow { margin-bottom: 10px; }
  .sp-gallery__track { gap: 14px; padding-top: 18px; padding-bottom: 8px; }
  .sp-fcard { width: min(310px, 78vw); padding: 14px; border-radius: 26px; }
  .sp-fcard .sp-vis { aspect-ratio: 16 / 9; border-radius: 18px; }
  .sp-fcard h3 { margin-top: 14px; font-size: 1.3rem; }
  .sp-fcard p { margin-top: 6px; font-size: .92rem; line-height: 1.5; }
  .sp-fcard .sp-chip { font-size: 11px; padding: 3px 8px; }
}

/* Más recorrido para cada escena: aunque se baje rápido, da tiempo de leer y ver. */
.sp-story { height: calc(100svh + 5 * 110svh); }
.sp-steps--stack { gap: 45svh; }
.sp-story__step { transition-duration: .8s, .9s, .8s; }
@media (max-width: 900px) {
  .sp-story { height: calc(100svh + 5 * 100svh); }
  .sp-steps--stack { gap: 40svh; }
}

/* Punto medio de recorrido (ni muy rápido ni muy lento). */
.sp-story { height: calc(100svh + 5 * 85svh); }
.sp-steps--stack { gap: 24svh; }
@media (max-width: 900px) {
  .sp-story { height: calc(100svh + 5 * 75svh); }
  .sp-steps--stack { gap: 20svh; }
}

/* Galería: puntos de progreso y, en celular, la tarjeta activa centrada. */
.sp-gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.sp-gallery__dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: width .35s var(--ease), background .35s; }
.sp-gallery__dots i.is-on { width: 24px; background: linear-gradient(90deg, #2f7bff, #4fb4ff); box-shadow: 0 0 12px rgba(47, 123, 255, .6); }
@media (max-width: 760px) {
  .sp-gallery__track { padding-left: 0; padding-right: 0; gap: 16px; }
  .sp-gallery__dots { margin-top: 14px; }
}

/* ---------- Escena 5: integraciones alrededor del núcleo ---------- */
.sp-integra { position: relative; padding: clamp(90px, 13vh, 150px) 0 clamp(70px, 10vh, 120px); overflow: hidden; }
.sp-integra::before { content: ""; position: absolute; left: 50%; top: 32%; width: 1100px; height: 900px; margin-left: -550px; background: radial-gradient(closest-side, rgba(47, 123, 255, .16), transparent 70%); pointer-events: none; }
.sp-hub { position: relative; height: min(78vh, 700px); min-height: 520px; margin-top: 10px; }
.sp-hub__rayos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.sp-hub__orb.pob-viewport { position: absolute; left: 50%; top: 50%; z-index: 3; width: min(430px, 56vw) !important; height: min(430px, 56vw) !important; transform: translate(-50%, -50%); --pob-bg: transparent; background: transparent; border-radius: 50%; }
.sp-hub__orb .pob-stage { position: absolute; inset: 0; touch-action: manipulation; }
.sp-hub__orb .pob-status { display: none; }
.sp-hub__nodos { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sp-nodo { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #e8f2ff; background: rgba(10, 16, 30, .78); border: 1px solid rgba(120, 190, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .9); will-change: transform, opacity; transition: box-shadow .3s, border-color .3s; }
.sp-nodo i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.sp-nodo.is-carga { border-color: rgba(140, 215, 255, .9); box-shadow: 0 0 0 1px rgba(111, 208, 255, .6), 0 0 34px rgba(47, 123, 255, .8), 0 10px 30px -12px rgba(0, 0, 0, .9); }
.sp-integra__cards { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -10px; }
.sp-icard { display: flex; flex-direction: column; padding: 18px; border-radius: 28px; background: linear-gradient(180deg, var(--sp-panel-2), var(--sp-panel)); }
.sp-icard h3 { margin: 18px 4px 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
.sp-icard p { margin: 8px 4px 4px; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.sp-icard__vis { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; height: 150px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(90% 90% at 50% 110%, rgba(47, 123, 255, .2), transparent 60%), #070a12; overflow: hidden; }
.sp-ads__row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 11.5px; }
.sp-ads__row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sp-ads__row small { color: var(--ink-3); font-size: 10.5px; min-width: 58px; text-align: right; }
.sp-tgl { position: relative; flex: none; width: 26px; height: 15px; border-radius: 999px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.sp-tgl::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .3s; }
.sp-tgl.is-on { background: #2f7bff; box-shadow: 0 0 10px rgba(47, 123, 255, .7); }
.sp-tgl.is-on::after { transform: translateX(11px); }
.sp-roas { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.sp-roas__barras { display: flex; align-items: flex-end; gap: 12px; height: 100%; }
.sp-roas__barras span { position: relative; width: 34px; height: var(--h); border-radius: 8px 8px 4px 4px; background: rgba(160, 190, 230, .28); transform-origin: bottom; animation: sp-barra 2.8s var(--ease) infinite alternate; }
.sp-roas__barras span.is-ing { background: linear-gradient(180deg, #8fd0ff, #2f7bff); box-shadow: 0 0 20px rgba(47, 123, 255, .6); animation-delay: .2s; }
.sp-roas__barras i { position: absolute; bottom: -1px; left: 50%; transform: translate(-50%, 100%); font-size: 9.5px; font-style: normal; color: var(--ink-3); white-space: nowrap; }
@keyframes sp-barra { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.sp-roas__num { text-align: right; }
.sp-roas__num small { display: block; font-size: 11px; color: var(--ink-3); }
.sp-roas__num b { font-size: 38px; font-weight: 600; letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #8fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-capi { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.sp-capi__a, .sp-capi__b { flex: none; padding: 7px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); }
.sp-capi__a { color: #9cf0c5; border-color: rgba(63, 209, 138, .4); }
.sp-capi__b { color: #9fd6ff; border-color: rgba(79, 180, 255, .45); }
.sp-capi__linea { position: relative; flex: 1; height: 2px; background: rgba(120, 190, 255, .2); }
.sp-capi__linea i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #8fd0ff; box-shadow: 0 0 12px #4fb4ff, 0 0 24px #2f7bff; animation: sp-viaje 1.6s ease-in-out infinite; }
@keyframes sp-viaje { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.sp-apps { flex-direction: row; align-items: center; justify-content: center; gap: 22px; }
.sp-apps__tel { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); }
.sp-apps__tel i { position: relative; width: 50px; height: 92px; border-radius: 12px; border: 3px solid #1b2232; background: linear-gradient(160deg, #10203f, #07101f); box-shadow: 0 0 24px rgba(47, 123, 255, .35); animation: sp-flota 3.2s ease-in-out infinite; }
.sp-apps__tel--b i { animation-delay: -1.6s; }
.sp-apps__tel i::before { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 14px; border-radius: 5px; background: rgba(63, 209, 138, .85); box-shadow: 0 0 10px rgba(63, 209, 138, .7); animation: sp-aviso 3.2s ease-in-out infinite; }
.sp-apps__tel i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 32px; height: 26px; border-radius: 5px; background: rgba(120, 190, 255, .18); }
.sp-apps__tel b { font-weight: 600; }
@keyframes sp-flota { 50% { transform: translateY(-6px); } }
@keyframes sp-aviso { 0%, 20% { opacity: 0; transform: translateY(-6px); } 35%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (max-width: 1100px) { .sp-integra__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .sp-hub { height: 560px; min-height: 0; }
  .sp-hub__orb.pob-viewport { width: 230px !important; height: 230px !important; }
  .sp-nodo { font-size: 11.5px; gap: 6px; padding: 5px 10px 5px 5px; }
  .sp-nodo i { width: 22px; height: 22px; font-size: 10px; }
  .sp-nodo--extra { display: none; }
  .sp-integra__cards { grid-template-columns: 1fr; margin-top: 0; }
  .sp-icard__vis { height: 132px; }
}
@media (prefers-reduced-motion: reduce) { .sp-roas__barras span, .sp-capi__linea i, .sp-apps__tel i, .sp-apps__tel i::before { animation: none; } }

/* Logo de Meta junto a "Partner oficial de Meta Business". */
.announce .sp-meta-logo { flex: none; width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(0, 130, 251, .55)); }

/* Logos reales (Simple Icons, CC0) en blanco sobre el color de cada marca. */
.sp-nodo i svg { width: 58%; height: 58%; fill: #fff; }
.sp-nodo i svg.sp-trazo { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
/* Órbita centrada entre el título y las tarjetas. */
.sp-integra .sp-head { margin-bottom: clamp(10px, 3vh, 30px); }
.sp-integra__cards { margin-top: clamp(24px, 4vh, 48px); }
@media (max-width: 760px) {
  .sp-integra .sp-head { margin-bottom: 0; }
  .sp-hub { height: 500px; margin-top: 0; }
  .sp-integra__cards { margin-top: 36px; }
}
