/* ===== CAPA DE JUEGO + SCROLL — homes (ES/EN) · 2026-10-25 =====
   El viaje de niveles, los botones vivos, [luz de progreso RETIRADA
   2026-11-04 · SACAR-BARRITA-COLORES], las secciones que Posty trae
   y la semana de ejemplo que se arma — y se publica — mientras el
   visitante baja. Sin scroll-jacking: todo acompaña.
   Dorado de la website: #DFA856 / #DBA453 / #D6A463 · celeste #2793C8. */
:root{--gj-gold1:#DFA856;--gj-gold2:#DBA453;--gj-gold3:#D6A463;--gj-cel:#2793C8;--gj-navy:#0A1E33}

/* ---------- botones vivos ---------- */
.btn-primary{transition:transform .16s cubic-bezier(.34,1.56,.64,1),box-shadow .3s ease}
.btn-primary:active{transform:scale(.965)}
.nav .btn-primary,.hero .btn-primary,.gj-levels .btn-primary{animation:gjBreathe 2.8s ease-in-out infinite}
@keyframes gjBreathe{
  0%,100%{box-shadow:0 6px 18px rgba(39,147,200,.28),0 0 0 0 rgba(223,168,86,0)}
  50%{box-shadow:0 8px 24px rgba(39,147,200,.30),0 0 0 6px rgba(223,168,86,.32),0 0 22px 2px rgba(219,164,83,.35)}
}

/* ---------- [RETIRADA 2026-11-04 · SACAR-BARRITA-COLORES: .gj-light ya no existe] ---------- */

/* ---------- las secciones entran como si Posty las trajera ---------- */
html.gj-armed [data-gj-rv]{opacity:0;transform:translateY(16px)}
html.gj-armed [data-gj-rv].gj-in{opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.22,.8,.32,1)}

/* ---------- la semana de ejemplo se arma posteo a posteo ---------- */
html.gj-armed .gj-piece{opacity:0;transform:translateY(14px) scale(.98)}
html.gj-armed .gj-piece.gj-in{opacity:1;transform:none;transition:opacity .55s ease,transform .55s cubic-bezier(.22,.8,.32,1)}
.gj-pub-wrap{position:relative}
.gj-pub{position:absolute;top:8px;right:8px;z-index:5;display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(180deg,#FDF3D8,#F6DC96);color:#0A1E33;border:1.5px solid var(--gj-gold2);
  font-size:12px;font-weight:900;padding:5px 10px;border-radius:999px;box-shadow:0 8px 20px rgba(185,126,28,.35);
  opacity:0;transform:scale(.5) rotate(-6deg);pointer-events:none}
.gj-pub.on{animation:gjPub .55s cubic-bezier(.34,1.56,.64,1) forwards}
.gj-pub-l.on{animation-name:gjPubL}
@keyframes gjPubL{from{opacity:0;transform:translateX(-100%) scale(.5) rotate(-6deg)}to{opacity:1;transform:translateX(-100%) scale(1) rotate(-3deg)}}
.gj-pub .gj-demo{font-size:9px;letter-spacing:.08em;background:#0A1E33;color:#F6DC96;border-radius:99px;padding:2px 6px}
@keyframes gjPub{to{opacity:1;transform:scale(1) rotate(-3deg)}}

/* ---------- sección: el viaje de niveles ---------- */
.gj-levels{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#FFFBF1 55%,#fff 100%)}
.gj-levels::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(560px 200px at 18% 0%,rgba(254,193,77,.20),rgba(254,193,77,0) 70%),
             radial-gradient(560px 200px at 82% 100%,rgba(223,168,86,.16),rgba(223,168,86,0) 70%)}
.gj-levels .wrap{position:relative}
.gj-eyebrow{text-align:center;font-weight:800;letter-spacing:.14em;font-size:12.5px;color:#B07E2B;margin:0 0 8px}
.gj-levels h2{text-align:center;margin:0 0 8px}
.gj-lede{text-align:center;color:#47617A;font-size:16.5px;line-height:1.55;max-width:640px;margin:0 auto}
.gj-stem{display:flex;align-items:flex-start;max-width:1020px;margin:38px auto 6px;padding:0 4px}
.gj-node{flex:0 0 auto;width:172px;text-align:center;position:relative;z-index:1}
.gj-dot{width:52px;height:52px;margin:0 auto;border-radius:50%;background:#fff;border:3px solid #D7E6F2;color:#8AA5BB;
  display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:900;
  transition:all .5s ease;box-shadow:0 4px 12px rgba(10,30,51,.06)}
.gj-node b{display:block;margin-top:11px;font-size:14.5px;color:var(--gj-navy);line-height:1.3}
.gj-node small{display:block;margin-top:4px;font-size:12.5px;line-height:1.45;color:#5A7186}
.gj-seg{flex:1 1 auto;height:5px;border-radius:99px;background:#E4EEF5;margin-top:24px;overflow:hidden}
.gj-seg i{display:block;height:100%;width:0;border-radius:99px;
  background:linear-gradient(90deg,var(--gj-cel),var(--gj-gold1) 55%,var(--gj-gold2));
  transition:width .8s ease}
.gj-levels.gj-in .gj-seg i{width:100%}
.gj-levels.gj-in .gj-node .gj-dot{border-color:var(--gj-gold2);color:var(--gj-navy);
  background:linear-gradient(180deg,#FDF3D8,#F9E3AC);box-shadow:0 6px 18px rgba(219,164,83,.35)}
.gj-levels.gj-in .gj-node{animation:gjPop .55s cubic-bezier(.34,1.56,.64,1) both}
.gj-levels.gj-in .gj-node:nth-of-type(1){animation-delay:.05s}
.gj-levels.gj-in .gj-node:nth-of-type(3){animation-delay:.5s}
.gj-levels.gj-in .gj-node:nth-of-type(5){animation-delay:.95s}
.gj-levels.gj-in .gj-node:nth-of-type(7){animation-delay:1.4s}
.gj-levels.gj-in .gj-node:nth-of-type(9){animation-delay:1.85s}
.gj-levels.gj-in .gj-seg:nth-of-type(2) i{transition-delay:.3s}
.gj-levels.gj-in .gj-seg:nth-of-type(4) i{transition-delay:.75s}
.gj-levels.gj-in .gj-seg:nth-of-type(6) i{transition-delay:1.2s}
.gj-levels.gj-in .gj-seg:nth-of-type(8) i{transition-delay:1.65s}
@keyframes gjPop{from{transform:translateY(10px) scale(.92);opacity:.35}to{transform:none;opacity:1}}
.gj-cta-row{text-align:center;margin-top:30px}
.gj-note{text-align:center;color:#8AA5BB;font-size:12.5px;margin-top:12px}
@media(max-width:820px){
  .gj-stem{flex-direction:column;align-items:stretch;max-width:430px;margin-top:28px}
  .gj-node{width:auto;display:flex;gap:14px;text-align:left;align-items:flex-start}
  .gj-dot{margin:0;flex:0 0 auto;width:46px;height:46px;font-size:19px}
  .gj-node b{margin-top:2px}
  .gj-seg{flex:0 0 auto;width:5px;height:26px;margin:4px 0 4px 22px}
  .gj-seg i{width:100%!important;height:0;transition:height .7s ease}
  .gj-levels.gj-in .gj-seg i{height:100%}
}
/* ---------- la oficina: el scroll entra y aterriza en su sector ---------- */
.gj-office{position:relative}
.gj-stage-wrap{max-width:1080px;margin:30px auto 0;padding:0 16px;position:relative}
html.gj-armed .gj-stage-wrap{height:300vh}
.gj-stage{position:relative}
html.gj-armed .gj-stage{position:sticky;top:6vh}
.gj-room{position:relative;border-radius:28px;overflow:hidden;display:grid;grid-template-columns:1.25fr .85fr;gap:20px;
  padding:24px;min-height:540px;border:1.5px solid #F0E2C4;
  background:linear-gradient(180deg,#FFF6E1 0%,#FFFDF4 52%,#FBEDCF 100%);
  box-shadow:0 24px 60px rgba(185,126,28,.14),inset 0 1px 0 #fff}
.gj-sectors{position:absolute;inset:0;pointer-events:none}
.gj-sectors i{position:absolute;border-radius:50%;filter:blur(34px);opacity:.5}
.gj-sectors i:nth-child(1){width:300px;height:150px;left:-70px;top:-50px;background:#F6D7E0}
.gj-sectors i:nth-child(2){width:320px;height:160px;left:32%;top:-70px;background:#D9EDD2}
.gj-sectors i:nth-child(3){width:300px;height:150px;right:-60px;top:-50px;background:#FDE9B8}
.gj-sectors i:nth-child(4){width:420px;height:200px;left:22%;bottom:-120px;background:#FFEFC4}
.gj-sectorlight{position:absolute;right:-6%;top:6%;width:55%;height:75%;pointer-events:none;
  background:radial-gradient(circle,rgba(39,147,200,.20),rgba(39,147,200,0) 65%)}
.gj-wallp{position:relative;background:rgba(255,255,255,.82);border:1.5px solid #EFE3C2;border-radius:20px;padding:16px;
  box-shadow:0 10px 26px rgba(10,30,51,.07)}
.gj-wallhead{display:flex;align-items:center;gap:14px;margin-bottom:13px}
.gj-plaque{width:54px;height:54px;border-radius:50%;box-shadow:0 6px 16px rgba(185,126,28,.35);flex:0 0 auto}
.gj-cal-t{display:block;font-weight:900;font-size:13px;color:var(--gj-navy);letter-spacing:.02em}
.gj-days{display:flex;gap:5px;margin-top:4px}
.gj-days i{font-style:normal;width:24px;height:24px;border-radius:8px;background:#EEF4F9;color:#8AA5BB;
  font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;transition:all .35s ease}
.gj-days i.on{background:linear-gradient(180deg,#FDF3D8,#F6DC96);color:var(--gj-navy);box-shadow:0 3px 8px rgba(219,164,83,.4)}
.gj-feedwall{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.gj-op{margin:0;border-radius:12px;overflow:hidden;aspect-ratio:4/5;background:#E8EDF2;position:relative;
  transition:opacity .5s ease,transform .5s cubic-bezier(.22,.8,.32,1)}
.gj-op img{width:100%;height:100%;object-fit:cover;display:block}
html.gj-armed .gj-op{opacity:0;transform:translateY(12px) scale(.97)}
html.gj-armed .gj-op.on{opacity:1;transform:none}
.gj-deskp{position:relative;display:flex;flex-direction:column;gap:12px}
.gj-posty{width:100%;aspect-ratio:1/1.02;object-fit:cover;object-position:50% 18%;border-radius:20px;
  box-shadow:0 16px 34px rgba(10,30,51,.16)}
.gj-comment{display:flex;flex-direction:column;gap:8px}
.gj-cin,.gj-cout{max-width:94%;padding:10px 13px;border-radius:14px;font-size:13.5px;line-height:1.42;color:var(--gj-navy);
  transition:opacity .45s ease,transform .45s cubic-bezier(.22,.8,.32,1)}
html.gj-armed .gj-cin,html.gj-armed .gj-cout{opacity:0;transform:translateY(8px)}
html.gj-armed .gj-cin.on,html.gj-armed .gj-cout.on{opacity:1;transform:none}
.gj-cin{background:#fff;border:1.5px solid #E4EEF5;align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 6px 16px rgba(10,30,51,.06)}
.gj-cout{background:#EAF6FD;border:1.5px solid #BFE3F5;align-self:flex-end;border-bottom-right-radius:4px;display:flex;gap:8px;align-items:flex-start}
.gj-cout img{width:22px;height:22px;border-radius:50%;flex:0 0 auto;margin-top:1px}
.gj-glow{position:absolute;right:-12%;bottom:-32%;width:62%;height:62%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,rgba(254,193,77,.55),rgba(254,193,77,0) 65%)}
.gj-cap{text-align:center;font-size:16.5px;font-weight:700;color:var(--gj-navy);margin:16px auto 0;max-width:580px;min-height:26px;transition:opacity .28s ease}
.gj-cap.gj-capfade{opacity:0}
@media(max-width:820px){
  .gj-room{grid-template-columns:1fr;min-height:0;padding:16px}
  .gj-posty{aspect-ratio:16/9.5;object-position:50% 22%}
  html.gj-armed .gj-stage-wrap{height:265vh}
  html.gj-armed .gj-stage{top:3vh}
  .gj-cap{font-size:15px}
}
@media (prefers-reduced-motion: reduce){
  html.gj-armed .gj-stage-wrap{height:auto}
  html.gj-armed .gj-stage{position:static}
  html.gj-armed .gj-op,html.gj-armed .gj-cin,html.gj-armed .gj-cout{opacity:1!important;transform:none!important;transition:none!important}
  .gj-glow{opacity:.35!important}
}
@media (prefers-reduced-motion: reduce){
  .nav .btn-primary,.hero .btn-primary,.gj-levels .btn-primary{animation:none}
  .btn-primary{transition:none}
  html.gj-armed [data-gj-rv],html.gj-armed .gj-piece{opacity:1!important;transform:none!important;transition:none!important}
  .gj-pub{animation:none!important}
  .gj-pub.on{opacity:1;transform:scale(1) rotate(-3deg)}
  .gj-pub-l.on{transform:translateX(-100%) scale(1) rotate(-3deg)}
  .gj-seg i{transition:none;width:100%}
  .gj-levels .gj-node{animation:none!important}
  .gj-levels .gj-node .gj-dot{border-color:var(--gj-gold2);color:var(--gj-navy);background:linear-gradient(180deg,#FDF3D8,#F9E3AC)}
}

/* ===== CAPA DE CIERRE DE MAGIA — homes · 2026-10-25 =====
   1) El mundo de Posty como FONDO de la página: su pared de posteos
      apenas sugerida (grilla de tarjetas al 3%), su luz celeste de sector
      arriba a la derecha, el calor de su escritorio abajo y la placa de
      Bambooty como presencia lejana. Escenografía en contraste muy bajo:
      el texto se lee AA sobre el fondo real (medido). Vive SOLO en la
      landing (marcas .nav-landing / [data-gj-office]): en la app no existe.
      Es CSS puro: sin JS se ve igual; el JS solo le suma un parallax
      mínimo (--gjbg). Con reduced-motion: fondo plano y lindo. */
body:has(.nav-landing)::before,body:has([data-gj-office])::before{
  content:"";position:fixed;inset:-34px 0;z-index:-1;pointer-events:none;
  transform:translateY(var(--gjbg,0px));
  background:
    radial-gradient(760px 400px at 88% -60px, rgba(39,147,200,.13), rgba(39,147,200,0) 70%),
    radial-gradient(920px 500px at -12% 106%, rgba(219,164,83,.13), rgba(219,164,83,0) 70%),
    repeating-linear-gradient(90deg, rgba(10,30,51,.030) 0 76px, rgba(10,30,51,0) 76px 92px),
    repeating-linear-gradient(0deg, rgba(10,30,51,.030) 0 98px, rgba(10,30,51,0) 98px 114px),
    linear-gradient(180deg, rgba(242,249,253,0) 22%, rgba(242,249,253,.5) 55%, rgba(255,246,227,.55) 88%, rgba(253,241,220,.6));
}
body:has(.nav-landing)::after,body:has([data-gj-office])::after{
  content:"";position:fixed;z-index:-1;pointer-events:none;
  width:min(400px,58vw);aspect-ratio:1;right:-110px;top:5%;
  background:url(/bambooty-placa.webp) center/contain no-repeat;
  opacity:.05;filter:blur(1px) saturate(.92);
  transform:translateY(calc(var(--gjbg,0px) * -.6));
}
@media (prefers-reduced-motion: reduce){
  body:has(.nav-landing)::before,body:has([data-gj-office])::before{transform:none;background:linear-gradient(180deg,#fff,#FFFBF2)}
  body:has(.nav-landing)::after,body:has([data-gj-office])::after{display:none}
}

/* ---------- tipografía cinética: las letras juegan al llegar ----------
   El armado lo hace gj.js (sin JS el texto queda nativo, completo).
   Solo transform/opacity: el espacio del titular nunca cambia (CLS 0).
   Al final del juego el texto queda completo y quieto, como siempre. */
.kt-w{display:inline-block;white-space:nowrap}
.kt-l{display:inline-block}
html.gj-armed .kt-cascade .kt-l{opacity:0;transform:translateY(.38em) scale(.92)}
html.gj-armed .kt-cascade.kt-in .kt-l{opacity:1;transform:none;
  transition:opacity .45s ease,transform .55s cubic-bezier(.34,1.45,.64,1)}
html.gj-armed .kt-scrub .kt-l{opacity:0}
html.gj-armed .kt-scrub.kt-in .kt-l{opacity:1!important;transform:none!important}
@media (prefers-reduced-motion: reduce){
  html.gj-armed .kt-cascade .kt-l,html.gj-armed .kt-scrub .kt-l{opacity:1!important;transform:none!important;transition:none!important}
}

/* ===== MAGIA POST-PAGO (2026-10-25 · «ARMA TODO» + addendum un solo lenguaje) =====
   El cliente que pagó ve la magia TAMBIÉN dentro del producto: el mismo
   dorado, el mismo movimiento, la misma celebración. Guardas v447 intactas:
   solo transform/opacity, reduced-motion = página estática y completa. */
/* Tallo vivo: estado por nudo (sin el dorado total del modo visitante). */
.gj-levels.gj-live .gj-node.gj-done .gj-dot,.gj-levels.gj-live .gj-node.gj-cur .gj-dot{border-color:var(--gj-gold2);color:var(--gj-navy);
  background:linear-gradient(180deg,#FDF3D8,#F9E3AC);box-shadow:0 6px 18px rgba(219,164,83,.35)}
.gj-levels.gj-live.gj-in .gj-node .gj-dot{border-color:#D7E6F2;color:#8AA5BB;background:#fff;box-shadow:0 4px 12px rgba(10,30,51,.06)}
.gj-levels.gj-live.gj-in .gj-node.gj-done .gj-dot,.gj-levels.gj-live.gj-in .gj-node.gj-cur .gj-dot{border-color:var(--gj-gold2);color:var(--gj-navy);
  background:linear-gradient(180deg,#FDF3D8,#F9E3AC);box-shadow:0 6px 18px rgba(219,164,83,.35)}
.gj-levels.gj-live .gj-node.gj-cur .gj-dot{outline:3px solid rgba(219,164,83,.45);outline-offset:2px}
.gj-live-cele{text-align:center;font-size:14px;font-weight:700;line-height:1.5;color:#0A1E33;
  background:linear-gradient(90deg,#DFA856,#DBA453,#D6A463);border-radius:12px;padding:10px 14px;max-width:640px;margin:18px auto 0}
/* Fondo ambiental dentro del producto, SOLO para el cliente que pagó
   (body.pz-paid, puesto por la app cuando plan_status = 'active'): la
   misma pared sugerida, la misma luz celeste, el mismo calor dorado y
   la misma placa lejana que la landing. En la app no existía: la guarda
   vieja de v447 queda supersedeada solo para estas superficies. */
body.pz-paid::before{content:"";position:fixed;inset:-34px 0;z-index:-1;pointer-events:none;
  transform:translateY(var(--gjbg,0px));
  background:
    radial-gradient(760px 400px at 88% -60px, rgba(39,147,200,.13), rgba(39,147,200,0) 70%),
    radial-gradient(920px 500px at -12% 106%, rgba(219,164,83,.13), rgba(219,164,83,0) 70%),
    repeating-linear-gradient(90deg, rgba(10,30,51,.030) 0 76px, rgba(10,30,51,0) 76px 92px),
    repeating-linear-gradient(0deg, rgba(10,30,51,.030) 0 98px, rgba(10,30,51,0) 98px 114px),
    linear-gradient(180deg, rgba(242,249,253,0) 22%, rgba(242,249,253,.5) 55%, rgba(255,246,227,.55) 88%, rgba(253,241,220,.6))}
body.pz-paid::after{content:"";position:fixed;z-index:-1;pointer-events:none;
  width:min(400px,58vw);aspect-ratio:1;right:-110px;top:5%;
  background:url(/bambooty-placa.webp) center/contain no-repeat;
  opacity:.05;filter:blur(1px) saturate(.92);
  transform:translateY(calc(var(--gjbg,0px) * -.6))}
/* La bienvenida y la Bandeja post-pago, enmarcadas en su sector: la misma
   pared (gj-wallp) y la misma placa que la oficina de la landing. */
.pz-magic-wall{position:relative;background:rgba(255,255,255,.86);border:1.5px solid #EFE3C2;border-radius:20px;
  padding:14px 16px;box-shadow:0 10px 26px rgba(10,30,51,.07)}
.pz-magic-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.pz-magic-head img{width:34px;height:34px;border-radius:50%;box-shadow:0 6px 16px rgba(185,126,28,.35);flex:0 0 auto}
.pz-magic-head b{font-size:13.5px;color:#0A1E33}
.pz-ba-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.pz-ba-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block;background:#E8EDF2}
.pz-ba-grid .pz-ba-empty{aspect-ratio:1;border-radius:10px;background:#EEF4F9}
@media (prefers-reduced-motion: reduce){
  body.pz-paid::before{transform:none;background:linear-gradient(180deg,#fff,#FFFBF2)}
  body.pz-paid::after{display:none}
  .gj-levels.gj-live .gj-node.gj-cur .gj-dot{outline:none}
}
