/* ==========================================================================
   Vareliuu · Video y marketing · video/escena.css
   «Un video, de tu negocio a la gente»: la escena pegada después del titular «No te preocupes. Nosotros llevamos tu marketing.»
   Negocios de todo tipo orbitan «Tu negocio»; se juntan y salen avioncitos de mensajes hacia el logo de Vareliuu; del logo sale
   el editor donde se arma el video (todo dibujado), que se separa en tres piezas; las piezas vuelan a Instagram, Facebook y Google;
   de ahí salen muchas tarjetitas que llenan la pantalla; se juntan al centro, salen personas y las personas se vuelven dinero. Todo lo que avanza con el scroll lo mueve video/escena.js con transform y opacity;
   aquí viven las formas, los estados y los detalles que se mueven solos en bucle.
   (Versiones anteriores: _fuera/escena-celular.* con un iPhone y _fuera/escena-tarjetas.* con tarjetas.)
   ========================================================================== */
.ve { grid-area: 1 / 1; position: relative; width: 100%; height: 100%; visibility: hidden; }
.ve-capa { position: absolute; inset: 0; overflow: hidden; }
.ve-capa > *, .ve-fila > *, .ve-logos > * { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* ---------- el texto: un solo bloque que viaja (izquierda → arriba al centro → al centro → arriba) ---------- */
.ve-texto { position: absolute; left: 0; top: 0; z-index: 5; display: grid; justify-items: start; gap: clamp(12px, 2.2vh, 24px); width: var(--tw, 560px); transform-origin: 50% 50%; will-change: transform, opacity; }
.ve-al, .ve-n > span, .ve-frases p { width: fit-content; will-change: transform; }
.ve-ceja { font: 600 13px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); white-space: nowrap; }
.ve-cuenta { display: flex; align-items: baseline; gap: .12em; font: 800 clamp(44px, min(5vw, 8.4vh), 84px)/1 var(--fd); font-variant-numeric: tabular-nums; }
.ve-dig { display: block; height: 1em; overflow: hidden; }
.ve-dig > span { display: block; will-change: transform; }
.ve-dig i, .ve-dig > span:not([id]) { display: block; height: 1em; font-style: normal; background: linear-gradient(180deg, #38bdf8, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ve-cuenta > span:first-child { margin-right: -.12em; }
.ve-de { margin-left: .18em; font-size: .42em; color: var(--gris-2); align-self: flex-start; margin-top: .25em; }
.ve-nombres { display: grid; width: 100%; font: 800 clamp(56px, min(6.6vw, 11.6vh), 118px)/.9 var(--fd); text-transform: uppercase; letter-spacing: .002em; }
.ve-n { grid-area: 1 / 1; display: grid; align-content: start; height: 1.8em; }
.ve-n > span { display: block; overflow: hidden; height: .9em; padding: .12em 0 .2em; margin: -.12em 0 -.2em; box-sizing: content-box; } /* aire para acentos y la cola de la g */
.ve-n > span > span { display: block; white-space: nowrap; transform: translate3d(0, 135%, 0); transition: transform .75s var(--suave); transition-delay: calc(var(--r) * 70ms); }
.ve-n.on > span > span { transform: none; transition-delay: calc(var(--r) * 70ms + 120ms); }
.ve-n.antes > span > span { transform: translate3d(0, -135%, 0); }
.ve-n .azul { background: linear-gradient(90deg, #38bdf8, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .12em .04em .2em 0; margin: -.12em 0 -.2em; } /* el degradado cubre también la cola de la g */
.ve-frases { display: grid; width: 100%; min-height: 2.9em; font: 500 clamp(16px, 1.35vw, 20px)/1.45 var(--fb); color: #4a4a50; }
.ve-frases p { grid-area: 1 / 1; max-width: 32ch; text-wrap: balance; }
.ve-frases p > span { display: block; opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(6px); transition: opacity .45s, transform .6s var(--suave), filter .45s; }
.ve-frases p.on > span { opacity: 1; transform: none; filter: none; transition-delay: .18s; }
.ve-barra { position: relative; width: 400px; max-width: 100%; height: 6px; border-radius: 999px; background: #e2e1dc; overflow: hidden; }
.ve-barra b { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #2563eb); transform-origin: 0 50%; transform: scaleX(0); }
.ve-lista { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ve .vp-remate { position: absolute; left: 0; top: calc(100% + 22px); display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 22px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.ve .vp-remate > * { transform: translate3d(0, 14px, 0); transition: transform .6s var(--suave); }
.ve.fin .vp-remate { opacity: 1; visibility: visible; transition: opacity .45s, visibility 0s; }
.ve.fin .vp-remate > * { transform: none; }

.ve > .vp-remate { top: 0; z-index: 6; }

/* ---------- 1 · las órbitas ---------- */
.ve-orbita { z-index: 2; width: 0; height: 0; }
.ve-anillos { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ve-anillos circle { fill: none; stroke: #e2e1dc; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.ve-giro { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: var(--og); height: var(--og); margin: calc(var(--og) / -2) 0 0 calc(var(--og) / -2); border-radius: 50%; background: #fff; color: #2563eb; box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .4), 0 2px 5px rgba(15, 23, 42, .06); will-change: transform, opacity; }
.ve-giro.azul { background: #2563eb; color: #fff; box-shadow: 0 14px 30px -14px rgba(37, 99, 235, .8); }
.ve-giro.negro { background: #0a0a0a; color: #fff; }
.ve-giro svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ve-insignia { z-index: 3; display: grid; place-items: center; width: var(--ig); height: var(--ig); margin: calc(var(--ig) / -2) 0 0 calc(var(--ig) / -2); border-radius: 50%; background: #fff; box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .45), 0 0 0 calc(var(--ig) * .06) rgba(37, 99, 235, .08); text-align: center; }
.ve-insignia span { font: 800 calc(var(--ig) * .2)/.88 var(--fd); text-transform: uppercase; letter-spacing: .004em; color: var(--tinta); }
.ve-insignia span::first-line { color: #2563eb; }

/* ---------- 2 · avioncitos y el logo ---------- */
.ve-rastros { z-index: 3; overflow: visible; pointer-events: none; }
.ve-rastros path { fill: none; stroke: url(#ve-ras-g); stroke-linecap: round; }
.ve-aviones { z-index: 4; }
.ve-avion { position: absolute; left: 0; top: 0; width: var(--av); height: var(--av); margin: calc(var(--av) / -2) 0 0 calc(var(--av) / -2); will-change: transform, opacity; }
.ve-avion svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(30, 58, 138, .28)); }
.ve-marca { z-index: 3; width: var(--mg); height: var(--mg); margin: calc(var(--mg) / -2) 0 0 calc(var(--mg) / -2); }
.ve-iso { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #0a0a0a; color: #fff; box-shadow: 0 26px 60px -24px rgba(15, 23, 42, .6); }
.ve-iso svg { width: 52%; height: 52%; margin: 4% 0 0 4%; }
.ve-onda { position: absolute; inset: 0; border-radius: 50%; background: rgba(37, 99, 235, .18); animation: ve-onda 2.2s ease-out infinite; }
.ve-onda + .ve-onda { animation-delay: 1.1s; }
@keyframes ve-onda { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- 3 · el editor ---------- */
.ve-ed { z-index: 3; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: var(--ew); height: var(--eh); border-radius: 26px; background: #fff; box-shadow: 0 50px 100px -40px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .05); overflow: hidden; transform-origin: 50% 50%; }
.ve-ed-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #f6f5f2; }
.ve-ed-pts { display: flex; gap: 6px; } .ve-ed-pts i { width: 10px; height: 10px; border-radius: 50%; background: #d9d8d3; }
.ve-ed-bar b { font: 800 18px/1 var(--fd); text-transform: uppercase; } .ve-ed-bar small { margin-left: auto; font: 600 12px/1 var(--fb); color: var(--gris); }
.ve-ed-cuerpo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 14px 18px; min-height: 0; }
.ve-ed-lado { align-self: stretch; display: grid; align-content: start; gap: 10px; padding: 14px; border-radius: 16px; background: #f6f5f2; font: 600 13px/1.2 var(--fb); color: var(--gris); }
.ve-ed-lado > b { font: 700 11px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--gris-2); }
.ve-ed-lado li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; opacity: .35; transition: opacity .35s, background-color .35s; }
.ve-ed-lado li.on { opacity: 1; background: #fff; color: var(--tinta); }
.ve-ed-lado li i { width: 14px; height: 14px; border-radius: 4px; }
.ve-mues { display: flex; gap: 8px; } .ve-mues i { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ve-fuente { padding: 9px 10px; border-radius: 10px; background: #fff; color: var(--tinta); }
.ve-desl { position: relative; height: 6px; margin: 8px 2px; border-radius: 999px; background: #e2e1dc; } .ve-desl i { position: absolute; left: 62%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #2563eb; } .ve-desl.b i { left: 30%; }
.ve-lienzo { position: relative; height: var(--lh); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #e2e1dc; box-shadow: 0 16px 34px -18px rgba(15, 23, 42, .5); }
.ve-esc { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.ve-esc.on { opacity: 1; }
.ve-esc svg, .ve-v svg { display: block; width: 100%; height: 100%; }
.ve-sub { position: absolute; left: 8%; right: 8%; bottom: 9%; display: flex; justify-content: center; }
.ve-sub span { max-width: 100%; text-wrap: balance; padding: .35em .6em; border-radius: .4em; background: rgba(10, 10, 10, .78); color: #fff; font: 700 calc(var(--lh) * .045)/1.25 var(--fb); text-align: center; min-height: 1.6em; }
.ve-sub b { font-weight: 700; opacity: 0; } .ve-sub b.on { opacity: 1; }
.ve-tit { position: absolute; left: 8%; top: 7%; padding: .3em .55em; border-radius: 999px; background: #fff; color: #2563eb; font: 800 calc(var(--lh) * .06)/1 var(--fd); text-transform: uppercase; transform: scale(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.ve-estrella { position: absolute; right: 8%; top: 40%; width: 22%; transform: scale(0); transition: transform .5s cubic-bezier(.2, 1.5, .4, 1) .1s; }
.ve-lienzo.tit .ve-tit, .ve-lienzo.tit .ve-estrella { transform: none; }
.ve-linea { position: relative; display: grid; gap: 6px; padding: 10px 18px 16px; background: #f6f5f2; }
.ve-regla { height: 8px; background: repeating-linear-gradient(90deg, #cfcec9 0 1px, transparent 1px 24px); }
.ve-pista { position: relative; height: var(--ph); border-radius: 8px; background: #ebeae5; }
.ve-pista.v i, .ve-pista.t i { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; will-change: transform, opacity; }
.ve-pista.v i { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.ve-pista.t i { display: flex; align-items: center; padding: 0 10px; background: #bae6fd; color: #075985; font: 600 11.5px/1 var(--fb); font-style: normal; white-space: nowrap; overflow: hidden; opacity: 0; }
.ve-pista.a { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.ve-pista.a i { flex: 1; border-radius: 2px; background: #1e3a8a; transform: scaleY(0); }
.ve-tijera { position: absolute; top: 4px; width: 26px; height: 26px; margin-left: -13px; display: grid; place-items: center; border-radius: 50%; background: #0a0a0a; opacity: 0; }
.ve-tijera svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ve-cab { position: absolute; z-index: 2; top: 6px; bottom: 10px; left: 18px; width: 2px; margin-left: -1px; background: #0a0a0a; }
.ve-cab::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 3px 3px 6px 6px; background: #0a0a0a; }

/* las tres piezas terminadas */
.ve-fila { inset: 0; position: absolute; z-index: 3; pointer-events: none; }
.ve-v { width: var(--vw); height: var(--vh); border-radius: calc(var(--vw) * .1); overflow: hidden; background: #2563eb; box-shadow: 0 34px 70px -34px rgba(15, 23, 42, .6); --lh: var(--vh); }
.ve-v .ve-prog { position: absolute; left: 7%; right: 7%; top: 4%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.ve-v .ve-prog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; animation: ve-reel 5s linear infinite; }
.ve-v .ve-prog i { animation-delay: calc(var(--k) * -.53s); }
@keyframes ve-reel { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ve-v .ve-sub span { font-size: calc(var(--vw) * .085); }
.ve-v .ve-prog { height: 3px; }
.ve-estelas { z-index: 2; overflow: visible; pointer-events: none; }
.ve-estelas path { fill: none; stroke: #60a5fa; stroke-linecap: round; }

/* ---------- 4 · los logotipos, con sus colores ---------- */
.ve-logos { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ve-logo { display: grid; justify-items: center; gap: 14px; width: var(--lg); margin-left: calc(var(--lg) / -2); margin-top: calc(var(--lg) / -2); }
.ve-logo-c { display: grid; place-items: center; width: var(--lg); height: var(--lg); border-radius: 28%; box-shadow: 0 26px 50px -24px rgba(15, 23, 42, .55); }
.ve-logo-c svg { width: 68%; height: 68%; }
.ve-logo.meta .ve-logo-c { border-radius: 50%; background: #fff; } .ve-logo.meta svg { width: 70%; height: auto; }
.ve-logo.go .ve-logo-c { border-radius: 50%; background: #fff; } .ve-logo.go svg { width: 58%; height: 58%; }

/* 5 · la cuadrícula de tarjetitas → 6 · personas */
.ve-rejilla { position: absolute; inset: 0; z-index: 1; }
.ve-t { position: absolute; left: 0; top: 0; width: var(--tw2); height: var(--th2); will-change: transform, opacity; }
.ve-t .f { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #dfe5ee; box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .5); }
.ve-t img, .ve-t video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ve-t .per { position: absolute; left: 50%; bottom: 0; width: 70%; translate: -50% 0; opacity: 0; }
.ve-t .per svg { display: block; width: 100%; }
.ve-t.camina .per svg { animation: ve-paso .42s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.07s); }
@keyframes ve-paso { from { transform: translateY(0); } to { transform: translateY(-7%); } }
.ve-blanca { z-index: 2; width: var(--bw); height: var(--bh); border-radius: 30px; background: #fff; box-shadow: 0 50px 100px -40px rgba(15, 23, 42, .45); }

/* 6 · el dinero: billetes dibujados en colores planos que caen girando y entran a una cartera */
.ve-dinero { position: absolute; inset: 0; z-index: 3; }
.ve-bi { position: absolute; left: 0; top: 0; will-change: transform, opacity; width: var(--bw2); height: var(--bh3); margin: calc(var(--bh3) / -2) 0 0 calc(var(--bw2) / -2); filter: drop-shadow(0 6px 10px rgba(30, 58, 138, .22)); }
.ve-bi svg { display: block; width: 100%; height: 100%; }

.ve-cart { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform, opacity; filter: drop-shadow(0 10px 18px rgba(30, 58, 138, .25)); }
.ve-cart svg { display: block; width: 100%; height: 100%; }
/* ---------- celular ---------- */
@media (max-width: 760px) {
  .ve-texto { gap: 8px; }
  .ve-ceja { display: none; }
  .ve-cuenta { font-size: 30px; }
  .ve-nombres { font-size: clamp(34px, 10.6vw, 46px); }
  .ve-frases { font-size: 14.5px; min-height: 2.9em; line-height: 1.4; }
  .ve-barra { width: 200px; height: 5px; }
  .ve > .vp-remate { flex-wrap: wrap; justify-content: center; gap: 8px 16px; width: calc(100% - 40px); }
  .ve > .vp-remate .v-boton { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
  .ve .vp-liga { font-size: 13.5px; }
  .ve-ed { border-radius: 20px; }
  .ve-ed-lado { display: none; }
  .ve-ed-cuerpo { grid-template-columns: 1fr; justify-items: center; padding: 10px; }
  .ve-ed-bar { padding: 10px 14px; } .ve-ed-bar b { font-size: 15px; }
  .ve-linea { padding: 8px 12px 12px; gap: 5px; }
  .ve-pista.t i { font-size: 10px; padding: 0 6px; }
  .ve-v { border-radius: 16px; }

  .ve-t .f { border-radius: 10px; }
  .ve-blanca { border-radius: 24px; }
}

/* ---------- sin movimiento: los seis pasos en lista, las tres piezas quietas y el remate ---------- */
.vp-pista.quieto .ve { visibility: visible; height: auto; display: grid; justify-items: center; gap: 36px; padding: 0 var(--m); }
.vp-pista.quieto .ve-texto { position: static; width: auto; max-width: 640px; transform: none; }
.vp-pista.quieto .ve-cuenta, .vp-pista.quieto .ve-nombres, .vp-pista.quieto .ve-frases, .vp-pista.quieto .ve-barra { display: none; }
.vp-pista.quieto .ve-lista { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: grid; gap: 12px; counter-reset: paso; }
.vp-pista.quieto .ve-lista li { counter-increment: paso; position: relative; padding-left: 44px; font: 500 16px/1.45 var(--fb); color: #4a4a50; }
.vp-pista.quieto .ve-lista li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 800 22px/1.1 var(--fd); color: #2563eb; }
.vp-pista.quieto .ve-lista b { color: var(--tinta); font-weight: 700; }
.vp-pista.quieto .ve .vp-remate { position: static; margin-top: 10px; opacity: 1; visibility: visible; flex-wrap: wrap; }
.vp-pista.quieto .ve .vp-remate > * { transform: none; }
.vp-pista.quieto .ve-capa { position: static; overflow: visible; grid-row: 2; }
.vp-pista.quieto .ve-capa > :not(.ve-fila) { display: none; }
.vp-pista.quieto .ve-fila { position: static; display: flex; justify-content: center; gap: 16px; }
.vp-pista.quieto .ve-v:nth-child(n+4) { display: none; }
.vp-pista.quieto .ve-v { position: relative; --vw: min(220px, 28vw); --vh: calc(var(--vw) * 16 / 9); transform: none !important; opacity: 1 !important; visibility: visible !important; }
@media (prefers-reduced-motion: reduce) { .ve-onda, .ve-v .ve-prog i, .ve-t.camina .per svg { animation: none; } }
