/* Tipografía alojada en nuestro propio servidor (Legal: nada de Google Fonts). Licencia OFL 1.1. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fuentes/BricolageGrotesque_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fuentes/BricolageGrotesque_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fuentes/BricolageGrotesque_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fuentes/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }

/* Lo básico de la página (antes, en la cabecera del borrador). */
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
img { max-width: 100%; }
[hidden]:not([hidden='until-found' i]) { display: none !important; }

/* Layout: bandas de color a todo el ancho unidas por olas que se desplazan con el scroll; columna de 1120px; móvil primero.
   Un solo tema claro a propósito: el mundo de la marca es amarillo + tinta, como la app en modo claro. */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
:root {
  color-scheme: light;
  --amarillo: #FFED85;
  --lila: #C2AFFF;
  --menta: #8FFBB8;
  --rosa: #FBB2D7;
  --azul: #93CBFB;
  --lima: #D4F76B;
  --tinta: #0D0D0D;
  --blanco: #FFFFFF;
  --suave: #F7F6F2;
  --texto-2: #3A3A3A;
  --error: #A50E36;
  --font: "Bricolage Grotesque", ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radio: 18px;
  --borde: 2px solid var(--tinta);
  --ancho: 1120px;
  --suelta: cubic-bezier(.2, .9, .25, 1);
  --rebote: cubic-bezier(.2, 1.5, .4, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body { background: var(--amarillo); color: var(--tinta); font-family: var(--font); font-size: 17px; line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 6px; }
.oscura :focus-visible { outline-color: var(--amarillo); }
.oscura .form :focus-visible { outline-color: var(--tinta); }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 11vw, 6rem); }
h2 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1.12; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--texto-2); max-width: 30em; }

.banda { position: relative; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.banda > .in { max-width: var(--ancho); margin: 0 auto; padding-block: 88px; }
.b-blanco { background: var(--blanco); } .b-lila { background: var(--lila); } .b-rosa { background: var(--rosa); } .b-tinta { background: var(--tinta); color: var(--blanco); }

.chip { display: inline-flex; align-items: center; width: fit-content; background: var(--tinta); color: var(--blanco); font-weight: 700; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.b-tinta .chip { background: var(--amarillo); color: var(--tinta); }

.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 8px 8px 8px 26px; border-radius: 999px; background: var(--tinta); color: var(--blanco); border: 0; font: 800 1.1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--rebote); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn .circ { width: 44px; height: 44px; border-radius: 50%; background: var(--amarillo); color: var(--tinta); display: grid; place-items: center; flex: none; transition: transform .35s var(--rebote); }
.btn:hover .circ { transform: rotate(-45deg); }
.btn svg { width: 22px; height: 22px; }
.btn-chico { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.b-tinta .btn { background: var(--amarillo); color: var(--tinta); }
.b-tinta .btn .circ { background: var(--tinta); color: var(--amarillo); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- olas entre secciones ---------- */
.ola { position: absolute; left: 0; right: 0; top: -34px; height: 36px; background: var(--c); pointer-events: none; z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 36'%3E%3Cpath d='M0 18 C40 -6 80 -6 80 18 S120 42 160 18 V36 H0Z'/%3E%3C/svg%3E") repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 36'%3E%3Cpath d='M0 18 C40 -6 80 -6 80 18 S120 42 160 18 V36 H0Z'/%3E%3C/svg%3E") repeat-x;
  -webkit-mask-size: 160px 36px; mask-size: 160px 36px;
  -webkit-mask-position: 0 0; mask-position: 0 0; }

.mov .ola { animation: ola 7s linear infinite; }
.mov .ola[data-ola="-1"] { animation-direction: reverse; }
@keyframes ola { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 160px 0; mask-position: 160px 0; } }

/* ---------- revelados ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.mov [data-split]:not(.partido) { opacity: 0; }
.mov [data-split] .w > span { transform: translateY(105%) rotate(4deg); transition: transform .9s var(--suelta); transition-delay: calc(var(--i) * 55ms); }
.mov [data-split].visto .w > span { transform: none; }
.mov .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--suelta); transition-delay: var(--d, 0ms); }
.mov .rv.visto { opacity: 1; transform: none; }
.marcador { position: relative; z-index: 0; font-style: normal; white-space: nowrap; }
.marcador::before { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .06em; height: .5em; background: var(--lila); border-radius: .3em; transform-origin: left; }
.mov .marcador::before { transform: scaleX(0) rotate(-1.5deg); transition: transform .8s var(--suelta) .7s; }
.mov .visto .marcador::before { transform: scaleX(1) rotate(-1.5deg); }

/* ---------- cabecera + hero ---------- */
.banda.top > .in { padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: block; width: 132px; height: auto; }
.hero .in { padding-block: 28px 120px; display: grid; gap: 48px; }
.hero-txt { display: grid; gap: 24px; align-content: center; }
.nota { font-size: .95rem; color: var(--texto-2); display: flex; align-items: center; gap: 8px; }
.nota svg { width: 18px; height: 18px; flex: none; }
.fibo { margin: 0; justify-self: center; align-self: center; align-content: start; width: min(480px, 100%); display: grid; gap: 14px; will-change: transform; }
.fibo svg { display: block; width: 100%; height: auto; overflow: visible; }
.fibo figcaption { font-weight: 700; font-size: .92rem; color: var(--texto-2); }
.fibo .sq { transform-box: fill-box; transform-origin: center; }
.fibo text { font-family: var(--font); }
.mov .fibo .sq { opacity: 0; }
.mov .fibo.visto .sq { animation: bloque .9s both; animation-delay: calc(var(--i) * 230ms + 150ms); }
@keyframes bloque {
  0% { opacity: 1; transform: translateY(-170px) rotate(var(--rot)); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  55% { opacity: 1; transform: translateY(0) rotate(0) scale(1.06, .9); animation-timing-function: ease-out; }
  72% { transform: translateY(-9px) rotate(calc(var(--rot) * -.2)) scale(.97, 1.04); animation-timing-function: ease-in; }
  86% { transform: translateY(0) scale(1.02, .98); }
  100% { opacity: 1; transform: none; }
}
.mov .fibo .av-pop { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-30deg); transition: transform .7s var(--rebote); transition-delay: calc(2.3s + var(--d2, 0ms)); }
.mov .fibo.visto .av-pop { transform: none; }
.mov .fibo svg { cursor: pointer; }
.mov .fibo #espiral { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.mov .fibo.visto #espiral { animation: dibuja 1.8s cubic-bezier(.6, 0, .2, 1) 1.7s both; }
@keyframes dibuja { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }
.mov .fibo .bob { animation: bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mov .fibo .bob.b2 { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-4deg); } }

/* ---------- cinta ---------- */
.cinta { background: var(--tinta); color: var(--amarillo); overflow: hidden; transform: rotate(-2deg); margin: -20px -10px 0; position: relative; z-index: 3; border-block: 2px solid var(--tinta); }
.cinta-pista { display: flex; width: max-content; }
.mov .cinta-pista { animation: cinta 55s linear infinite; }
.mov .cinta:hover .cinta-pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.cinta-grupo { display: flex; align-items: center; gap: 28px; padding: 16px 14px; font-weight: 800; font-size: clamp(1.3rem, 4vw, 2rem); white-space: nowrap; }
.cinta-grupo i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- círculo: de la pila a los pilares ---------- */
.circ-sec { position: relative; background: var(--blanco); overflow: hidden; overflow: clip; }
.circ-sticky { position: relative; }
.capa { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; justify-items: center; align-content: center; text-align: center; gap: 18px; padding-block: 80px; }
.capa-pila h2 { max-width: 12em; }
.capa-pila h2 span { color: var(--texto-2); }
.pila-top { position: relative; z-index: 3; background: var(--amarillo); border: var(--borde); border-radius: 22px; padding: 12px 20px; transform: rotate(-4deg); margin: 26px 0 0; font: inherit; color: inherit; cursor: pointer; }
.pt-in { display: block; }
.pista-d { display: none; font-weight: 700; font-size: .9rem; color: var(--texto-2); margin-top: -4px; }
.mov .pista-d { display: block; }
.mov .circ-sec.cae .pista-d { visibility: hidden; }
.mov .circ-sec:not(.cae) .pila-top { animation: late2 1.8s ease-in-out infinite; }
.mov .circ-sec:not(.cae) .pila-top:hover { animation-play-state: paused; transform: rotate(0deg) scale(1.08); }
@keyframes late2 { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-4deg) scale(1.08); } }
.pila-top img { width: 130px; height: auto; }
.tags { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 560px; }
.tags li { --r0: 0deg; --x0: 0%; color: var(--tinta); border: var(--borde); border-radius: 999px; padding: 12px 24px; font-weight: 800; font-size: clamp(1.18rem, 4.6vw, 1.5rem); line-height: 1.2; max-width: 96%; margin-top: -4px;
  transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(calc(var(--r0) + var(--fr, 0deg))) translateX(var(--x0)); }
.tags li:nth-child(4n+1) { --r0: 3deg; --x0: -6%; }
.tags li:nth-child(4n+2) { --r0: -2deg; --x0: 5%; }
.tags li:nth-child(4n+3) { --r0: 4deg; --x0: -3%; }
.tags li:nth-child(4n+4) { --r0: -3.5deg; --x0: 7%; }
.capa-pila { z-index: 1; } .capa-circ { background: var(--menta); z-index: 2; }
.capa { position: relative; isolation: isolate; }
.capa-circ h2 span { display: block; }
.pilares { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 1040px; text-align: left; }
.pilares li { border: var(--borde); border-radius: 28px; padding: 18px 22px; display: grid; gap: 4px; }
.pilares h3 { font-size: clamp(1.35rem, 4.6vw, 2rem); }
.pilares p { font-size: .98rem; }
.pista { font-weight: 700; font-size: .9rem; color: var(--texto-2); display: none; align-items: center; gap: 8px; }
.pista svg { width: 18px; height: 18px; transform: rotate(90deg); }
.pista { justify-content: center; }
/* con movimiento: la pila cae sola al aparecer y el círculo menta se abre */
.mov .circ-sticky { display: grid; }
.mov .circ-sticky > .capa { grid-area: 1 / 1; }
.mov .tags { cursor: pointer; }
.pila-top { transition: transform .5s var(--rebote), background-color .35s ease; }
.mov .circ-sec.gira .pila-top { transform: rotate(-16deg) scale(.92); }
.mov .circ-sec.traga .pila-top { transform: rotate(0deg) scale(1.35); background-color: var(--menta); }
.mov .capa-circ { clip-path: circle(0px at var(--cx, 50%) var(--cy, 40%)); transition: clip-path 1.3s cubic-bezier(.65,0,.25,1); }
.mov .circ-sec.abre .capa-circ { clip-path: circle(160% at var(--cx, 50%) var(--cy, 40%)); }
.mov .pilares li { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .5s ease, transform .7s var(--rebote); transition-delay: calc(var(--k, 0) * 140ms + 750ms); }
.mov .circ-sec.abre .pilares li { opacity: 1; transform: none; }
.mov .pista { display: flex; }
.repetir { display: none; margin-top: 6px; }
.mov .circ-sec.abre .repetir { display: inline-flex; }


/* pila: espera a que la toquen */
.pila-btn { display: none; margin-top: 18px; padding-right: 6px; }
.mov .pila-btn { display: inline-flex; animation: late 1.8s ease-in-out infinite; }
.mov .circ-sec.cae .pila-btn { visibility: hidden; }
@keyframes late { 50% { transform: scale(1.06); } }
.mov .pista { display: none; }
/* iconos de los beneficios */
.pilares li { grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
.pil-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--tinta); color: var(--blanco); display: grid; place-items: center; }
.pil-ico svg { width: 26px; height: 26px; }
.mov .pil-ico { transform: scale(0) rotate(-90deg); transition: transform .6s var(--rebote); transition-delay: calc(var(--k, 0) * 140ms + 1050ms); }
.mov .circ-sec.abre .pil-ico { transform: none; }
/* espiral de Fibonacci de fondo */
.espiral-fondo { position: absolute; z-index: -1; left: 50%; top: 52%; width: max(760px, 125%); transform: translate(-50%, -50%); pointer-events: none; fill: none; stroke: var(--tinta); stroke-opacity: .16; stroke-width: .5; }
.espiral-fondo path { stroke-width: .9; stroke-opacity: .3; }
.mov .espiral-fondo > * { stroke-dasharray: var(--len2, 1000); stroke-dashoffset: var(--len2, 1000); }
.mov .circ-sec.abre .espiral-fondo > * { animation: dibuja2 2.6s cubic-bezier(.6, 0, .2, 1) .5s both; }
@keyframes dibuja2 { from { stroke-dashoffset: var(--len2, 1000); } to { stroke-dashoffset: 0; } }
.lista-fondo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.espiral-lista { position: absolute; right: -220px; top: 40px; width: 720px; fill: none; stroke: var(--amarillo); stroke-opacity: .14; stroke-width: .6; transform-origin: 30% 31%; }
.espiral-lista path { stroke-width: 1; stroke-opacity: .32; }
.mov .espiral-lista { animation: gira 90s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.lista .in { position: relative; z-index: 1; }
@media (min-width: 640px) {
  .pilares li { grid-template-columns: 1fr; }
  .pil-ico { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- cómo funciona (lila con líneas) ---------- */
.b-lila { background-color: var(--lila); background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; }
.cabeza { display: grid; gap: 16px; margin-bottom: 44px; max-width: 44em; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; }
.pasos li { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding-block: 26px; border-top: 2px solid var(--tinta); }
.pasos li:last-child { border-bottom: 2px solid var(--tinta); }
.pasos .n { grid-row: span 2; font-weight: 800; font-size: clamp(4rem, 15vw, 7.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--tinta); transition: color .6s ease .3s; min-width: .7em; }
.mov .pasos li.visto .n { color: var(--blanco); }
.pasos h3 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.pasos p { color: var(--tinta); }
.cita { font-weight: 800; background: var(--blanco); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }

/* ---------- funciones ---------- */
.feat-wrap { display: grid; gap: 32px; }
