/* ═══════════════════════════════════════════════════════════════════════
   Portada de agapeapp.org — la suite de Ágape.
   Solo la usa index.html; las páginas legales siguen con styles.css.

   Movimiento: todo lo que empieza oculto o desplazado cuelga de
   `html.motion` (lo pone el <head> si el sistema no pide movimiento
   reducido). Sin esa clase, la página está en su estado final.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbf7f2;
  --bg-2: #f5efe7;
  --bg-3: #ffffff;
  --card: #ffffff;
  --card-2: rgba(29, 22, 32, 0.05);
  --line: rgba(29, 22, 32, 0.09);
  --line-2: rgba(29, 22, 32, 0.15);
  --text: #1d1620;
  --muted: #5f5463;
  --dim: #8d8290;
  --shadow: 0 1px 0 rgba(29, 22, 32, .04), 0 10px 30px -20px rgba(29, 22, 32, .35);
  --paper: #f3ebe1;
  --coral: #ff5a4a;
  --coral-ink: #d63a2c;
  --green: #1f7a4d;
  --coral-2: #ff8585;
  --amber: #f7b955;
  --peri: #a9b2ff;
  --ok: #4ade80;
  --c: var(--coral);
  --radius: 22px;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: var(--display);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 68px;
  color-scheme: light;
}

/* Las pantallas de muestra (ventanas y móviles oscuros) conservan su tema oscuro */
.win, .phone--dark {
  --card: rgba(255, 255, 255, 0.045); --card-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --text: #f6f2f7; --muted: #b2a9bd; --dim: #7d7488;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: normal; }
::selection { background: rgba(255, 90, 74, .35); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 3px; border-radius: 6px; }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 650 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: none; }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--lg { padding: 16px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-ink); }
.btn--glass { background: transparent; border: 1.5px solid var(--text); color: var(--text); }
.btn--glass:hover { background: var(--text); color: var(--bg); }
.final .btn--glass { border-color: #fff; color: #fff; }
.final .btn--glass:hover { background: #fff; color: var(--coral-ink); }
.btn--white { background: #fff; color: #1b1220; }
.btn--ofrena { background: #c64981; color: #fff; }
.btn--ofrena:hover { background: #a6386a; }

/* ── Cabecera ────────────────────────────────────────────────────────── */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 16px 0; transition: padding .3s var(--ease); pointer-events: none; }
.nav-wrap .nav { pointer-events: auto; } /* (el menú del móvil, cerrado, ocupa sitio en la caja: que no tape la «a» al ratón) */
.nav {
  max-width: 1200px; margin: 0 auto; height: 56px; padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 24px; border-radius: 999px;
  border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav-wrap.scrolled .nav { background: rgba(251, 247, 242, .82); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 40px -20px rgba(60, 30, 20, .35); }
.nav-wrap.scrolled.on-coral .nav { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; } /* sin desenfoque sobre el lienzo animado: se recalcularía en cada fotograma */
.nav-wrap.on-coral .brand, .nav-wrap.on-coral .nav__login, .nav-wrap.on-coral .nav__links a { color: #fff; }
.nav-wrap.on-coral .nav__links a:hover { background: rgba(255, 255, 255, .16); }
.nav-wrap.on-coral .btn--primary { background: #fff; color: var(--coral-ink); }
.nav-wrap.on-coral .nav__toggle { background: rgba(255, 255, 255, .2); }
.nav-wrap.on-coral .nav__toggle span { background: #fff; }
.nav-wrap.on-coral .brand img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-variation-settings: var(--dfv); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.on { color: var(--text); background: rgba(29, 22, 32, .05); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__login { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav__login:hover { color: var(--text); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: rgba(29, 22, 32, .06); border-radius: 50%; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 4px; max-width: 1200px; margin: 8px auto 0; padding: 12px;
    border-radius: 22px; background: rgba(251, 247, 242, .97); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__mobile.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__mobile a:not(.btn) { text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
  .nav__mobile a:not(.btn) { color: var(--text); }
  .nav__mobile a:not(.btn):hover { background: rgba(29, 22, 32, .05); }
  .nav__mobile .btn { margin-top: 6px; }
  /* sin desenfoque en el móvil: recalcularlo mientras pasa todo por debajo
     es lo que más tironea al deslizar; opaca, el texto no se transparenta */
  .nav-wrap.scrolled .nav { background: #fbf7f2; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__mobile { background: #fbf7f2; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 18px 40px -22px rgba(60, 30, 20, .45); }
}
/* al tocar: sin el recuadro gris del navegador y con un pequeño hundimiento */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); transition-duration: .08s; }

/* ── Raíl lateral ────────────────────────────────────────────────────── */
/* Raíl: una raya por sección; la de la sección en la que estás es larga y se
   llena según avanzas por ella, y su nombre va a su lado. Sobre el coral de
   la portada, en blanco. */
.rail { --ink: 29, 22, 32; --fill: var(--coral); position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; pointer-events: none; }
.rail.on-coral { --ink: 255, 255, 255; --fill: #fff; }
.rail__label { position: absolute; right: calc(100% + 8px); top: calc(var(--ri, 0) * 16px); line-height: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: rgba(var(--ink), .6); transition: top .55s var(--ease), color .3s; animation: railIn .5s var(--ease) both; }
.rail__dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rail__dots li { position: relative; width: 30px; height: 12px; cursor: pointer; pointer-events: auto; }
.rail__dots li::before, .rail__dots li::after { content: ''; position: absolute; right: 0; top: 5px; height: 2px; border-radius: 2px; }
.rail__dots li::before { width: 10px; background: rgba(var(--ink), .22); transition: width .55s var(--ease), background .3s; }
.rail__dots li.seen::before { background: rgba(var(--ink), .42); }
.rail__dots li:hover::before { width: 16px; background: rgba(var(--ink), .6); }
.rail__dots li.on::before { width: 28px; background: rgba(var(--ink), .16); }
.rail__dots li::after { width: 28px; background: var(--fill); transform-origin: left; transform: scaleX(0); transition: transform .2s linear, background .3s; }
.rail__dots li.on::after { transform: scaleX(var(--f, 0)); }
@keyframes railIn { from { opacity: 0; transform: translateX(6px); } }
@media (min-width: 1280px) { .rail { display: flex; } }

/* ── Comunes de sección ──────────────────────────────────────────────── */
main > section { position: relative; }
.head { max-width: 760px; margin: 0 auto; text-align: center; padding: 0 16px; }
.kicker { font-size: 16px; font-weight: 600; color: var(--coral-ink); margin-bottom: 14px; }
.kicker--light { color: rgba(255, 255, 255, .8); }
.title, .hero__title, .final h2, .step__id h3, .plan__name, .faq__title, .stat__n, .plan__amount, .kiosk__ask, .splash b {
  font-family: var(--display); font-variation-settings: var(--dfv); font-optical-sizing: auto; font-weight: var(--dw) !important;
}
.brand { font-weight: var(--dw) !important; }

:root { --dfv: normal; --dw: 750; }
.title { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; }
.title em, .hero__title em { color: var(--coral-ink); }
.lead { margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }

.eyebrow { color: var(--muted); font-size: 16px; font-weight: 500; }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap; }
.pill--ok { background: rgba(74, 222, 128, .14); color: #6ee7a0; }
.pill--warn { background: rgba(247, 185, 85, .15); color: #f7c26e; }

/* ── Revelados y palabras ────────────────────────────────────────────── */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.motion [data-reveal].in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
.motion [data-split] .w > span { transform: translateY(110%) rotate(4deg); transition: transform 1s var(--ease) calc(var(--i) * 70ms + var(--d, 0s)); }
.motion [data-split].in .w > span { transform: none; }

/* ═══════ HERO ═══════ */
.hero { position: relative; }
.hero__pin { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--nav-h) + 48px) 16px 80px; overflow: hidden; }
/* centrado con márgenes automáticos: si el texto no cabe (móviles bajos), se
   pega arriba en vez de cortarse por los dos lados */
.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: auto; display: grid; justify-items: center; text-align: center; }
.hero__text { max-width: 920px; }
.hero__title { margin-top: 18px; font-size: clamp(50px, 8.4vw, 116px); line-height: .92; letter-spacing: -.035em; }
.hero__title > span, .hero__title > em { display: block; }
.hero__lead { margin: 26px auto 0; max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__note { margin-top: 16px; color: var(--dim); font-size: 14px; }
.hero__stores { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; font-size: 14px; color: var(--dim); }
.hero__stores a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.hero__stores a:hover { color: var(--text); }

/* La portada coral con el corazón (solo con JS y movimiento) */
.hero__canvas, .hero__scroll { display: none; }
/* La portada fija mide la pantalla GRANDE (lvh, con las barras del navegador
   recogidas): al bajar, Safari y Chrome del móvil recogen la barra y con svh
   quedaba abajo una franja sin coral. Lo que hay que ver nada más entrar se
   coloca dentro del alto pequeño (svh; ver landing.js). El recorrido fijo
   (el alto de más) es una pantalla en escritorio y algo menos en el móvil,
   para no tener que deslizar en balde. */
.hero.journey { height: 200vh; height: calc(100lvh + 100svh); }
.hero.journey .hero__pin { position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; }
.hero__probe { position: absolute; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
@media (max-width: 760px) { .hero.journey { height: 180vh; height: calc(100lvh + 80svh); } }
.hero.journey .hero__canvas { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero.journey .hero__canvas.done { display: none; }
.hero.journey .hero__canvas--a { inset: auto; display: none; }
.hero.journey .hero__canvas--a.on { display: block; }
/* la cita, bajo la «a» */
.hero__quote { display: none; }
.hero.journey .hero__quote { display: block; position: absolute; z-index: 4; left: 16px; right: 16px; top: var(--qy, 70%); text-align: center; color: #fff; pointer-events: none; opacity: calc(1 - var(--P, 0) * 8); }
.hero__quote blockquote { margin: 0; }
/* cambio de frase: la anterior sube y se va; la nueva entra palabra a palabra */
/* fundido cruzado: la frase que se va y la que llega ocupan el mismo sitio a
   la vez, así no hay hueco entre una y otra */
#heroPhrase, #heroCite { display: inline-grid; }
#heroPhrase > .ph, #heroCite > .ph { grid-area: 1 / 1; transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
#heroPhrase > .ph.leaving, #heroCite > .ph.leaving { opacity: 0; transform: translateY(-.18em); }
#heroPhrase .w2 { display: inline-block; opacity: 0; transform: translateY(.2em); animation: wordIn .8s cubic-bezier(.22, 1, .36, 1) calc(.15s + var(--i) * 38ms) forwards; }
#heroCite > .ph.entering { animation: wordIn .8s cubic-bezier(.22, 1, .36, 1) .2s backwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.2em); } to { opacity: 1; transform: none; } }
/* en reposo el coral lo pinta la página (el canvas solo lleva los puntos) */
.hero.journey .hero__pin.coral-bg { background: var(--coral); }
/* las pestañas de la suite: la activa se alarga y se llena mientras dura */
.hero__tabs { margin-top: 14px; display: flex; gap: 0; justify-content: center; pointer-events: auto; }
.hero__tabs button { position: relative; box-sizing: content-box; width: 8px; height: 8px; padding: 0; margin: -10px -7px; border: 10px solid transparent; border-radius: 99px; background: rgba(255, 255, 255, .4) padding-box; cursor: pointer; overflow: hidden; transition: width .4s var(--ease), background-color .3s; } /* (el borde transparente agranda la zona de toque, no el dibujo) */
.hero__tabs button:hover { background-color: rgba(255, 255, 255, .75); }
.hero__tabs button.on { width: 34px; background-color: rgba(255, 255, 255, .35); }
.hero__tabs button.on::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: left; animation: tabFill 5s linear both; }
.hero__tabs button.on.held::after { animation: none; }
@keyframes tabFill { from { transform: scaleX(0); } }
.hero.past-intro .hero__tabs { pointer-events: none; }
@media (max-width: 600px) {
  .hero__quote blockquote p { font-size: 20px; min-height: 2.2em; }
}
.hero__go { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; pointer-events: auto; }
.btn--line { background: transparent; border: 1.5px solid rgba(255, 255, 255, .8); color: #fff; }
.btn--line:hover { background: #fff; color: var(--coral-ink); }
.hero.past-intro .hero__go { pointer-events: none; }
.hero__quote blockquote p { font-family: var(--display); font-weight: 650; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.hero__quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .85; }
/* mientras la «a» es una palabra, la frase se aparta (las letras bajan hasta ahí)
   y vuelve sin prisa cuando la «a» regresa */
.hero__quote blockquote p { transition: opacity .7s cubic-bezier(.4, 0, .2, 1) .15s; }
.hero__quote cite { transition: color .7s cubic-bezier(.4, 0, .2, 1) .15s; }
.hero.word-on .hero__quote blockquote p { opacity: 0; transition-duration: .45s; transition-delay: 0s; }
.hero.word-on .hero__quote cite { color: transparent; transition-duration: .45s; transition-delay: 0s; }
.motion .hero.journey:not(.skip-intro) .hero__quote > *, .motion .hero.journey:not(.skip-intro) .hero__quote cite { animation: quoteIn .8s cubic-bezier(.16, 1, .3, 1) 1.1s both; }
.motion .hero.journey:not(.skip-intro) .hero__quote cite { animation-delay: 1.25s; }
.motion .hero.journey:not(.skip-intro) .hero__quote .hero__go { animation-delay: 1.55s; }
@keyframes quoteIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 600px) {
  .hero__go .btn { padding-left: 18px; padding-right: 18px; }
}
/* «Desliza»: el texto y, debajo, un círculo blanco con una flecha que cae y
   rebota (otra forma que los botones: no se confunde con ellos) */
/* «Desliza»: un ratón de contorno con la rueda que baja y un halo que late
   detrás, para llamar sin gritar. Solo transform y opacidad (no repinta). */
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.hero__scroll span { font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; opacity: .92; }
.hero__scroll i { position: relative; box-sizing: border-box; width: 26px; height: 40px; border: 2px solid #fff; border-radius: 13px; transition: background .25s, transform .3s var(--ease); }
.hero__scroll i::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #fff; opacity: 0; animation: halo 2.2s cubic-bezier(.2, .7, .1, 1) infinite; }
.hero__scroll i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 2.2s cubic-bezier(.45, 0, .2, 1) infinite; }
.hero__scroll:hover i { background: #fff; transform: translateY(3px); }
.hero__scroll:hover i::after { background: var(--coral-ink); }
.hero__scroll:focus-visible { outline: none; }
.hero__scroll:focus-visible i { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 20% { opacity: 1; } 60% { opacity: 1; transform: translateY(11px); } 80%, 100% { opacity: 0; transform: translateY(13px); } }
@keyframes halo { 0%, 45% { opacity: 0; transform: scale(1); } 55% { opacity: .55; } 100% { opacity: 0; transform: scale(1.5, 1.35); } }
.hero.journey .hero__scroll { display: flex; opacity: calc(1 - var(--P, 0) * 8); bottom: auto; top: calc(100vh - 84px); top: calc(100svh - 84px); }
@media (max-height: 700px) { .hero.journey .hero__scroll { display: none; } }
@media (max-width: 600px) { .hero.journey .hero__scroll { gap: 8px; top: calc(100vh - 72px); top: calc(100svh - 72px); } .hero__scroll span { font-size: 10.5px; } .hero__scroll i { width: 22px; height: 34px; } }
.hero.journey .hero__inner { opacity: clamp(0, calc((var(--P, 0) - .1) * 4), 1); transform: scale(calc(.94 + var(--P, 0) * .06)); }
.hero.journey:not(.text-on) .hero__inner { pointer-events: none; }
/* antes de que arranque, la portada ya es coral (sin parpadeo) */
.motion .hero:not(.journey):not(.static) .hero__pin { background: var(--coral); }
.motion .hero:not(.journey):not(.static) .hero__inner { opacity: 0; }
@media (max-width: 600px) {
  .hero__pin { padding: calc(var(--nav-h) + 14px) 16px 28px; }
  .hero__inner { text-align: left; justify-items: stretch; }
  .eyebrow { font-size: 14px; }
  .hero__title { margin-top: 12px; font-size: clamp(38px, 11.6vw, 52px); }
  .hero__lead { margin: 18px 0 0; font-size: 16px; line-height: 1.5; }
  /* los dos botones, uno encima del otro y a todo el ancho: en fila no caben
     y se partían cada uno a su manera */
  .hero__cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .hero__cta .btn--lg { padding: 15px 20px; font-size: 15.5px; }
  .hero__note { margin-top: 12px; font-size: 13px; }
  .hero__stores { justify-content: flex-start; margin-top: 4px; }
}
/* móviles bajos (iPhone SE de 1.ª generación y parecidos): más apretado */
@media (max-width: 600px) and (max-height: 620px) {
  .hero__pin { padding-top: calc(var(--nav-h) + 6px); padding-bottom: 16px; }
  .hero__title { margin-top: 8px; font-size: 34px; }
  .hero__lead { margin-top: 12px; font-size: 14.5px; line-height: 1.45; }
  .hero__cta { margin-top: 16px; gap: 8px; }
  .hero__cta .btn--lg { padding: 13px 18px; font-size: 15px; }
  .hero__note { display: none; }
}

/* Red de seguridad: si landing.js no llega a cargar, nada se queda oculto */
html.motion:not(.live) [data-reveal], html.motion:not(.live) .hero__inner { animation: failsafe .01s 3s forwards; }
html.motion:not(.live) .hero__pin { animation: failsafeBg .01s 3s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; filter: none; } }
@keyframes failsafeBg { to { background: var(--bg); } }

/* ═══════ LA SUITE ═══════ */
.suite { padding: 130px 0 40px; }
.suite__grid { max-width: 1240px; margin: 70px auto 0; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 50px; }
.steps { order: 1; padding-bottom: 20vh; }
.stage { order: 2; position: sticky; top: 0; height: 100vh; display: grid; place-items: center; --c: var(--coral); }
/* el dock: ancho justo para las diez apps; la activa se eleva, coge su
   color y enseña su nombre debajo, como el de un ordenador */
.stage__dock { position: absolute; top: calc(var(--nav-h) + 24px); left: 50%; transform: translateX(-50%); width: max-content; display: flex; gap: 7px; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line), 0 22px 44px -26px rgba(29, 22, 32, .5); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); z-index: 3; }
.dock__app { position: relative; flex: none; display: block; width: 34px; height: 34px; transition: transform .5s var(--ease); }
.dock__app img { display: block; width: 100%; height: 100%; border-radius: 10px; opacity: .45; filter: saturate(.35); transition: opacity .45s var(--ease), filter .45s var(--ease), box-shadow .45s var(--ease); }
.dock__app.seen img { opacity: .9; filter: none; }
.dock__app.on { transform: translateY(-3px) scale(1.16); z-index: 1; }
.dock__app.on img { opacity: 1; filter: none; box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--c) 75%, transparent); }
/* el puntito de «abierta» */
.dock__app::before { content: ''; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c); opacity: 0; transition: opacity .4s var(--ease); }
.dock__app.on::before { opacity: 1; }
/* el nombre, en una etiqueta oscura bajo la app activa */
.dock__app::after { content: attr(data-name); position: absolute; top: calc(100% + 14px); left: 50%; padding: 5px 10px; border-radius: 999px; background: var(--text); color: #fff; font: 600 11px/1.2 var(--sans); letter-spacing: .01em; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -4px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.dock__app.on::after { opacity: 1; transform: translate(-50%, 0); }
.stage__screens { position: relative; width: 100%; height: 560px; display: grid; place-items: center; }
.scr { position: absolute; inset: 0; display: grid; place-items: center; }
.motion .scr { opacity: 0; transform: translateY(40px) scale(.94) rotateX(8deg); filter: blur(10px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); pointer-events: none; }
.motion .scr.is-on { opacity: 1; transform: none; filter: none; }
.motion .scr.is-past { transform: translateY(-40px) scale(.94) rotateX(-8deg); }
html:not(.motion) .scr:not(.is-on) { display: none; }

.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; max-width: 500px; }
.step__ch { font-size: 15px; font-weight: 600; color: var(--c); }
.step__id { margin-top: 18px; display: flex; align-items: center; gap: 16px; }
.step__id img { width: 64px; height: 64px; border-radius: 18px; }
.step__id h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1.02; font-weight: 700; }
.step__id small { color: var(--dim); font-size: 14px; font-weight: 500; }
.step__lead { margin-top: 22px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--text); letter-spacing: -.01em; }
.step__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.step__list li { position: relative; padding-left: 30px; color: var(--muted); }
.step__list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.step__list li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 5px; height: 8px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.motion .step > * { opacity: .18; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .step.on > * { opacity: 1; transform: none; }
.motion .step.on > :nth-child(2) { transition-delay: .05s; }
.motion .step.on > :nth-child(3) { transition-delay: .1s; }
.motion .step.on > :nth-child(4) { transition-delay: .15s; }

/* — Marcos — */
.phone { width: 270px; height: 548px; border-radius: 44px; padding: 11px; background: #2a242e; box-shadow: 0 50px 90px -40px rgba(60, 30, 20, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .12); position: relative; }
.phone__island { position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: #000; border-radius: 14px; z-index: 2; }
.phone > div:last-child { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fbf8f5; color: #1d1620; position: relative; }
.phone--dark > div:last-child { background: #0f0c14; color: var(--text); }
.win { width: min(560px, 100%); border-radius: 18px; overflow: hidden; background: #16121b; border: 1px solid var(--line-2); box-shadow: 0 50px 90px -40px rgba(60, 30, 20, .55); }
.win__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1f1a25; border-bottom: 1px solid var(--line); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3442; }
.win__bar i:first-child { background: #ff6159; } .win__bar i:nth-child(2) { background: #ffbd2e; } .win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { margin-left: 10px; flex: 1; text-align: center; font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, .05); border-radius: 7px; padding: 4px 10px; margin-right: 40px; }
.win__body { padding: 20px; min-height: 340px; font-size: 13px; }
.cap { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 4px 0 10px; }

/* — 0 · App — */
.app { --brand: #ff4136; padding: 52px 14px 0; font-size: 12px; }
.app__top b, .post__head i, .post__img, .tile--event .pill, .app__tabs span.on, .app__stories i { transition: color .6s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease); }
.app__top { display: flex; justify-content: space-between; align-items: center; }
.app__top b { font-size: 21px; letter-spacing: -.03em; color: var(--brand); transition: color .6s var(--ease), opacity .25s, transform .25s; }
.app__top b.swap { opacity: 0; transform: translateY(-4px); }
.app__stories { display: flex; gap: 8px; margin: 14px 0; }
.app__stories i { width: 40px; height: 40px; border-radius: 50%; background: #ffb1a3; box-shadow: 0 0 0 2px #fbf8f5, 0 0 0 4px var(--brand); }
.app__stories i:nth-child(2) { background: #a3a9f5; } .app__stories i:nth-child(3) { background: #f7b955; } .app__stories i:nth-child(4) { background: #7fcfb5; }
.post { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 4px 14px rgba(40, 20, 30, .07); }
.post__head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.post__head i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); }
.post__head small, .tile small { display: block; color: #8a7f8d; font-size: 10.5px; }
.post__img { height: 118px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 20px; }
.post p { margin-top: 8px; color: #4b404e; }
.tile { margin-top: 10px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 4px 14px rgba(40, 20, 30, .07); }
.tile--event { display: flex; align-items: center; gap: 10px; }
.tile--event i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #5b62e8; }
.tile--event > div { flex: 1; min-width: 0; }
.tile--event b, .tile--event small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile--event .pill { flex: none; background: var(--brand); color: #fff; }
.app .pill--ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.bar { height: 7px; border-radius: 4px; background: #f1e8e6; margin: 7px 0 5px; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: 4px; background: #ff5a4a; }
.motion .scr .bar span, .motion .scr .cap-bar i, .motion .scr .chan i { width: 0; transition: width 1.2s var(--ease) .35s; }
.motion .scr.is-on .bar span, .motion .scr.is-on .cap-bar i, .motion .scr.is-on .chan i { width: var(--w); }
.app__tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: #fff; border-top: 1px solid #f0e8e6; display: flex; justify-content: space-around; align-items: center; padding-bottom: 8px; }
.app__tabs span { width: 22px; height: 22px; border-radius: 7px; background: #e9e0df; }
.app__tabs span.on { background: var(--brand); }
/* la tarjeta de «tus colores» que asoma junto al móvil: la app cambia de parroquia sola */
.themes { position: absolute; right: -118px; top: 92px; z-index: 3; display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 18px 40px -18px rgba(40, 20, 30, .45); border: 1px solid var(--line); }
.themes small { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.themes div { display: flex; gap: 7px; }
.themes i { width: 18px; height: 18px; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px transparent; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.themes i.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--t); transform: scale(1.12); }

/* — 1 · App Studio — */
.studio-app { display: grid; grid-template-columns: 1fr 170px; gap: 22px; align-items: start; }
.row-tog { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); margin-bottom: 7px; }
.tog { width: 32px; height: 19px; border-radius: 10px; background: #3a3342; position: relative; transition: background .4s; }
.tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.tog.on { background: #7b5cf5; }
.tog.on::after { transform: translateX(13px); }
.motion .scr.is-on .tog--flip { animation: flipBg 4s 1s infinite; }
.motion .scr.is-on .tog--flip::after { animation: flipKnob 4s 1s infinite; }
.drop { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 12px; }
.drop img { width: 28px; height: 28px; border-radius: 8px; }
.mini-phone { height: 300px; border-radius: 26px; border: 6px solid #2d2633; background: #fbf8f5; padding: 12px 10px; position: relative; overflow: hidden; }
.mini-phone__head { display: flex; align-items: center; gap: 6px; color: #1d1620; font-weight: 700; font-size: 11px; margin-bottom: 12px; }
.mini-phone__head img { width: 22px; height: 22px; border-radius: 7px; }
.mini-phone > i { display: block; height: 52px; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(40, 20, 30, .08); margin-bottom: 8px; }
.mini-phone > i.s { height: 30px; width: 70%; }
.mini-phone__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 9px 4px 10px; background: #fff; border-top: 1px solid #efe6e4; font-size: 8.5px; font-weight: 700; color: #7b5cf5; }
.mini-phone__tabs .flip { display: none; }
.motion .scr.is-on .mini-phone__tabs .flip { display: inline; animation: flipTab 4s 1s infinite; }

/* — 2 · Events — */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs span { padding: 6px 11px; border-radius: 8px; color: var(--dim); font-size: 12px; font-weight: 600; }
.tabs span.on { background: rgba(244, 83, 60, .18); color: #ffb3a7; }
.trow { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.trow--head { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 0; }
.cap-bar { position: relative; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.cap-bar::before { content: ''; order: 2; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.cap-bar i { position: absolute; left: 0; bottom: 0; height: 5px; border-radius: 3px; width: var(--w); background: #f4533c; }
.toast { margin-top: 18px; display: inline-flex; padding: 9px 13px; border-radius: 12px; background: rgba(74, 222, 128, .12); color: #7cecaa; border: 1px solid rgba(74, 222, 128, .25); font-weight: 600; font-size: 12.5px; }
.motion .scr .toast { opacity: 0; transform: translateY(10px); transition: all .6s var(--ease) 1.1s; }
.motion .scr.is-on .toast { opacity: 1; transform: none; }


/* — 4 · Donation — */
.big { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; color: #f7b955;  }
.chan { display: grid; grid-template-columns: 178px 1fr 64px; gap: 12px; align-items: center; padding: 6px 0; color: var(--muted); font-size: 12.5px; }
.chan span { white-space: nowrap; }
.chan i { height: 8px; border-radius: 4px; width: var(--w); background: #d2601d; }
.chan b { text-align: right; color: var(--text); }
.note-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

/* — 5 · Finance — */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis div { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.kpis small { display: block; color: var(--dim); font-size: 11px; }
.kpis b { font-size: 19px; letter-spacing: -.02em; }
.mov { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mov .ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 146, 173, .25); color: #5fd0e8; font-size: 11px; font-weight: 800; }
.mov b { color: var(--text); } .mov b.in { color: #6ee7a0; }
.chart { margin-top: 16px; height: 70px; display: flex; align-items: flex-end; gap: 10px; }
.chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: #1aa3c2; }
.motion .scr .chart i { transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease) calc(.3s + var(--n, 0) * 60ms); }
.motion .scr.is-on .chart i { transform: none; }

/* — 6 · People — */
.person { display: flex; align-items: center; gap: 12px; }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #2b4777; }
.person small { display: block; color: var(--dim); font-size: 11.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.chip { padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--card-2); color: var(--muted); }
.chip--smart { background: rgba(74, 112, 176, .28); color: #b6cbf1; }
.motion .scr .chip--smart:first-child { animation: none; }
.motion .scr.is-on .chip--smart:first-child { animation: pop .6s var(--ease) 1s both; }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tl li { position: relative; padding: 6px 0 6px 20px; color: var(--muted); font-size: 12.5px; }
.tl li i { position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #4a70b0; box-shadow: 0 0 0 3px rgba(74, 112, 176, .25); }
.tl li:not(:last-child)::after { content: ''; position: absolute; left: 3.5px; top: 22px; bottom: -6px; width: 1px; background: var(--line-2); }
.tl b { color: var(--text); }
.send { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.send span { font-weight: 600; margin-right: 4px; }
.send em { padding: 4px 9px; border-radius: 8px; font-size: 11px; background: rgba(255, 255, 255, .07); color: var(--muted); }

/* — 7 · Studio — */
.site { padding: 0; }
.site__hero { padding: 26px 22px; background: #ff6b6b; color: #fff; }
.site__hero small { text-transform: uppercase; letter-spacing: .2em; font-size: 10px; opacity: .85; }
.site__hero b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.site__hero span { font-size: 12px; opacity: .9; }
.site .cap { padding: 16px 22px 0; }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 22px; }
.site__cards div { padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.site__cards i { display: block; height: 54px; border-radius: 8px; margin-bottom: 8px; background: #5b62e8; }
.site__cards i.c2 { background: #d2601d; } .site__cards i.c3 { background: #0b6b5c; }
.site__cards b { display: block; font-size: 12px; } .site__cards small { color: var(--dim); font-size: 10.5px; }
.ai-badge { margin: 16px 22px 20px; display: inline-flex; padding: 7px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255, 116, 105, .14); color: #ffa79e; }

/* — 8 · Paper — */
.sheet { width: 380px; padding: 30px 30px 24px; background: #fffdf9; color: #2a2125; border-radius: 6px; box-shadow: 0 40px 80px -36px rgba(60, 30, 20, .45); transform: rotate(-2deg); font-size: 12px; }
.sheet__head { border-bottom: 2px solid #0b6b5c; padding-bottom: 12px; margin-bottom: 10px; }
.sheet__head b { font-family: var(--serif); font-size: 28px; font-weight: 400; display: block; color: #0b6b5c; }
.sheet__head small { color: #7d7279; }
.sheet__cap { margin-top: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #13836f; }
.sheet__txt { margin-top: 4px; }
.sheet__lines { margin-top: 6px; display: grid; gap: 6px; }
.sheet__lines i { display: block; height: 6px; border-radius: 3px; background: #ece4e0; }
.sheet__lines i.s { width: 60%; }
.motion .scr .sheet__lines i { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .5s; }
.motion .scr.is-on .sheet__lines i { transform: none; }
.sheet__two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sheet__out { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.sheet__out span { padding: 5px 10px; border-radius: 999px; background: #0b6b5c; color: #fff; font-size: 10.5px; font-weight: 600; }

/* — 9 · Music — */
.music { padding: 58px 16px 0; }
.music__mass { font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; }
.music__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; }
.music__list li { display: grid; grid-template-columns: 1fr auto; padding: 10px 12px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); }
.music__list span { grid-column: 1; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.music__list b { grid-column: 1; font-size: 13px; }
.music__list li.on { background: rgba(255, 107, 107, .16); border-color: rgba(255, 107, 107, .4); }
.eq { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.eq i { width: 3px; height: 40%; border-radius: 2px; background: #ff8a80; }
.motion .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.music__lyrics { margin-top: 20px; text-align: center; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--dim); }
.music__lyrics p.on { color: #fff; text-shadow: 0 0 20px rgba(255, 107, 107, .7); }

@media (max-width: 980px) {
  .suite { padding-top: 100px; }
  .suite__grid { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  /* la escena queda fija arriba, opaca, y el texto pasa por debajo */
  .stage { order: 0; top: var(--nav-h); height: 50vh; height: 50svh; z-index: 5; margin: 0 -16px; overflow: hidden; display: block; background: linear-gradient(var(--bg) 0 90%, rgba(13, 10, 18, 0)); }
  .stage__dock { top: 6px; gap: 5px; padding: 6px; border-radius: 16px; }
  .dock__app { width: 24px; height: 24px; }
  .dock__app img { border-radius: 7px; }
  .dock__app::before { bottom: -5px; width: 3px; height: 3px; margin-left: -1.5px; }
  .dock__app::after { display: none; }
  .stage__screens { position: absolute; left: 0; right: 0; top: 46px; bottom: 11%; height: auto; }
  .scr > * { position: absolute; left: 50%; top: 50%; flex: none; transform: translate(-50%, -50%) scale(var(--s, .54)); }
  .scr > .win { width: 560px; }
  .scr > .sheet { transform: translate(-50%, -50%) scale(var(--s, .54)) rotate(-2deg); }
  .steps { order: 1; padding-bottom: 6vh; }
  .step { min-height: 70vh; justify-content: flex-start; padding: 3vh 0 0; }
  .step__id img { width: 52px; height: 52px; border-radius: 15px; }
  .motion .step > * { transform: translateY(10px); }
}
@media (max-width: 980px) and (min-height: 780px) { .scr > * { --s: .6; } }
@media (max-width: 980px) and (max-height: 680px) { .scr > * { --s: .46; } }

/* ═══════ CÓMO ENCAJA ═══════ */
.flow { padding: 130px 16px; background: var(--paper); }
.flow__track { position: relative; max-width: 980px; margin: 80px auto 0; display: grid; gap: 34px; }
.flow__line { position: absolute; left: 50%; top: 20px; bottom: 20px; width: 2px; margin-left: -1px; background: rgba(29, 22, 32, .08); border-radius: 2px; }
.flow__line span { position: absolute; inset: 0 0 auto; height: calc(var(--fp, 1) * 100%); border-radius: 2px; background: var(--coral); }
.flow__line i { position: absolute; left: 50%; top: calc(var(--fp, 1) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--coral); }
html:not(.motion) .flow__line i { display: none; }
.flow__node { position: relative; width: calc(50% - 46px); display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .5s, background .5s, box-shadow .5s, opacity .5s, transform .6s var(--ease); }
.flow__node:nth-of-type(odd) { justify-self: start; }
.flow__node:nth-of-type(even) { justify-self: end; }
.flow__node::after { content: ''; position: absolute; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid rgba(29, 22, 32, .18); transition: all .5s; }
.flow__node:nth-of-type(odd)::after { right: -54px; }
.flow__node:nth-of-type(even)::after { left: -54px; }
.flow__node img { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.flow__app { font-size: 14px; font-weight: 650; color: var(--c); }
.flow__node h3 { margin-top: 6px; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.motion .flow__node { opacity: .35; transform: translateY(16px); }
.motion .flow__node.lit, .flow__node.lit { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--c) 55%, transparent); background: #fff; box-shadow: var(--shadow); }
.flow__node.lit::after { background: var(--c); border-color: var(--c); }
@media (max-width: 760px) {
  .flow { padding: 100px 16px; }
  .flow__line { left: 22px; }
  .flow__node, .flow__node:nth-of-type(even) { width: auto; margin-left: 50px; justify-self: stretch; }
  .flow__node::after, .flow__node:nth-of-type(even)::after { left: -36px; right: auto; }
  }

/* ═══════ CIFRAS ═══════ */
.stats { max-width: 1200px; margin: 0 auto; padding: 40px 16px 110px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat__n { font-size: clamp(44px, 5.4vw, 66px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.stat__n b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.stat__n--txt { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; line-height: 1.25; padding: 8px 0; }
.stat small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .stats { gap: 10px; padding-bottom: 90px; }
  .stat { padding: 20px 16px; }
  .stat__n { font-size: clamp(36px, 11vw, 48px); }
  .stat__n--txt { font-size: 19px; overflow-wrap: anywhere; }
}

/* ═══════ PRECIO ═══════ */
.pricing { padding: 120px 16px; }
.plans { max-width: 1060px; margin: 64px auto 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.plan { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; padding: 34px 32px 30px; border-radius: 30px; background: var(--bg-3); border: 1px solid var(--line-2); overflow: hidden; transition: transform .2s ease-out, box-shadow .4s; }
@media (hover: hover) { .plan { will-change: transform; } } /* (la inclinación es solo con ratón: en el móvil, dos capas grandes de balde) */
.plan--suite { --text: #fff; --muted: rgba(255, 255, 255, .9); --dim: rgba(255, 255, 255, .75); --line: rgba(255, 255, 255, .25); color: #fff; background: var(--coral); border-color: transparent; box-shadow: none; }
.plan--ofrena { background: #fff; border-color: var(--line-2); box-shadow: none; }
.plan { box-shadow: none; }
.plan--suite .plan__badge { background: #fff; color: var(--coral-ink); }
.plan--suite .btn--primary { background: #fff; color: var(--coral-ink); }
.plan--suite .btn--primary:hover { background: #1d1620; color: #fff; } /* aquí --text es blanco */
.plan--suite .plan__list li::before { border-color: #fff; }
.plan--suite .plan__list strong, .plan--suite .plan__list strong.hl { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.plan--suite .plan__apps small { color: rgba(255, 255, 255, .92); }
/* sobre el coral, las comisiones en blanco (el verde y el lila son de Donation) */
.plan--suite .plan__free { background: #fff; border-color: #fff; color: var(--coral-ink); }
.plan--suite .plan__plus { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); color: #fff; }
.plan--suite .plan__free b { color: var(--coral-ink); }
.plan--suite .plan__plus b { color: #fff; }
.plan__badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--coral); color: #fff; }
.plan__badge--ofrena { background: #fbe4ee; color: #8f2d5a; }
.plan__id { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.plan__id img { width: 40px; height: 40px; border-radius: 12px; }
.plan__id .plan__name { margin-top: 0; }
.plan__name { margin-top: 18px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.plan__pitch { margin-top: 4px; color: var(--muted); }
.plan__price { margin-top: 22px; display: flex; align-items: flex-start; gap: 6px; }
.plan__amount { font-size: clamp(76px, 9vw, 112px); line-height: .9; font-weight: 700; letter-spacing: -.04em; color: inherit; font-variant-numeric: tabular-nums; }

.plan__cur { font-size: 34px; font-weight: 800; margin-top: 6px; }
.plan__per { margin: 10px 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }
/* opacas: el mismo color sobre el blanco de Donation y sobre el coral de la Suite */
.plan__fees { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.plan__free { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 14px; background: #e8f4ec; border: 1px solid #addfc0; color: #166534; }
.plan__free b { font-size: 22px; color: var(--green); letter-spacing: -.02em; }
.zero { white-space: nowrap; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; background: rgba(74, 222, 128, .16); color: #6ee7a0; }
.coins__src--free { color: #166534 !important; background: rgba(22, 163, 74, .1) !important; border-color: rgba(22, 163, 74, .32) !important; }
.plan__plus { display: inline-flex; align-self: flex-start; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 14px; background: #faf0f5; border: 1px solid #efccdc; color: #8f2d5a; }
.plan__plus b { font-size: 22px; color: #b13d72; letter-spacing: -.02em; }
.plan__apps { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; }
.plan__apps span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.plan__apps img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.plan__apps small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.motion .plan__apps span { opacity: 0; transform: translateY(14px) scale(.8); transition: all .6s var(--ease) calc(.3s + var(--i) * 60ms); }
.motion .plan.in .plan__apps span { opacity: 1; transform: none; }
.plan__list { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan__list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.plan__list strong, .step__list strong { color: var(--green); font-weight: 650; }
.plan__list strong.hl, .step__list strong.hl { color: var(--coral-ink); }
.plan__list li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 6px; height: 11px; border: solid var(--coral-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan--ofrena .plan__list li::before { border-color: #d673a1; }

/* monedas que caen en Donation */
.coins { position: relative; container-type: inline-size; margin-top: 22px; height: 112px; border-radius: 18px; background: rgba(198, 73, 129, .05); border: 1px solid rgba(198, 73, 129, .16); overflow: hidden; }
.coins__srcs { position: absolute; top: 10px; left: 8px; right: 8px; display: flex; justify-content: space-around; gap: 4px; }
.coins__src { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #8f2d5a; background: rgba(198, 73, 129, .08); border: 1px solid rgba(198, 73, 129, .22); }
.coins__box { position: absolute; left: 50%; bottom: 10px; margin-left: -22px; width: 44px; height: 44px; }
.coins__box img { width: 100%; height: 100%; border-radius: 13px; }
.motion .coins__box img { animation: gulp 2.4s ease-in-out infinite; }
.coins > i { --x: calc((var(--i) * 25 - 37.5) * 1cqw); position: absolute; top: 36px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; background: #f7b955; box-shadow: 0 0 10px rgba(247, 185, 85, .8); opacity: 0; }
.motion .coins > i { animation: coin 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * .6s); }
html:not(.motion) .coins > i { display: none; }

.pricing__promise { max-width: 760px; margin: 34px auto 0; padding: 18px 24px; border-radius: 18px; background: var(--paper); text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pricing__promise p { margin: 0; }
.pricing__promise strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.pricing__promise-btn { display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.pricing__promise-btn:hover { background: var(--coral-ink); }
.pricing__note { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--dim); font-size: 14px; }
.pricing__note a, .faq a { color: var(--coral-ink); }
.faq { max-width: 820px; margin: 90px auto 0; }
.faq__title { font-size: 36px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 4px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 4px 22px; color: var(--muted); }
.plan__free, .plan__plus, .coins__src { white-space: nowrap; }
@media (max-width: 860px) {
  .pricing { padding: 100px 16px; }
  .plans { grid-template-columns: 1fr; margin-top: 44px; gap: 16px; }
  .plan { padding: 28px 22px 24px; border-radius: 26px; }
  .plan__apps { gap: 12px 4px; }
  .plan__apps img { width: 42px; height: 42px; }
  .faq { margin-top: 70px; }
  .faq__title { font-size: 30px; }
  .faq summary { font-size: 16px; padding: 18px 40px 18px 2px; }
}
@media (max-width: 380px) {
  .plan { padding: 24px 16px 20px; }
  .plan__apps img { width: 38px; height: 38px; border-radius: 12px; }
  .plan__apps small { font-size: 9.5px; }
  .plan__free, .plan__plus { padding: 7px 11px; font-size: 14px; }
  .coins__srcs { left: 4px; right: 4px; }
  .coins__src { padding: 3px 7px; font-size: 10px; }
  .plan__amount { font-size: 66px; }
  .plan__cur { font-size: 28px; }
  .plan__per { margin-left: 2px; font-size: 12px; }
}


/* ═══════ CIERRE ═══════ */
.final { padding: 40px 16px 110px; }
.final__card { position: relative; max-width: 1200px; margin: 0 auto; min-height: 480px; border-radius: 36px; overflow: hidden; display: flex; align-items: center; background: var(--coral); box-shadow: none; }
.final__logo { position: absolute; right: 7%; top: 50%; width: min(300px, 30vw); height: auto; border-radius: 22%; transform: translateY(-50%) rotate(8deg); box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); }
.final__text { position: relative; padding: 56px; max-width: 600px; }
.final h2 { margin-top: 6px; font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -.03em; font-weight: 700; color: #fff; }
.final h2 em { color: var(--text); }
.final__text > p:not(.kicker) { margin-top: 18px; font-size: 19px; color: rgba(255, 255, 255, .88); }
@media (max-width: 760px) {
  .final { padding-bottom: 80px; }
  .final__card { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 28px; }
  /* el logo, pequeño y arriba (abajo dejaba medio bloque coral vacío) */
  .final__logo { position: relative; right: auto; top: auto; width: 84px; margin: 30px 24px 0; transform: rotate(8deg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
  .final__text { padding: 22px 24px 30px; }
  .final h2 { font-size: clamp(40px, 12vw, 56px); }
  .final__text > p:not(.kicker) { font-size: 17px; }
}

/* ═══════ PIE ═══════ */
.footer { border-top: 1px solid var(--line); padding: 60px 16px 30px; background: var(--bg); }
.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h4 { font-size: 14px; font-weight: 650; color: var(--text); margin: 0 0 6px; }
.footer__col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__col a:hover { color: var(--text); }
.footer__col--brand p { color: var(--muted); font-size: 14px; max-width: 260px; margin-top: 6px; }
.footer__col--brand p a { color: var(--coral-ink); }
.footer__copy { max-width: 1200px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; text-align: center; }
.footer__copy a { color: var(--muted); }
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__spacer { visibility: hidden; }
  .footer__col { gap: 0; }
  .footer__col h4 { margin-bottom: 4px; }
  .footer__col a { padding: 9px 0; }
}

/* ═══════ Animaciones ═══════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes beat { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 74, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tagIn { 0% { opacity: 0; transform: translateY(12px) scale(.95); } 8%, 30% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes eq { 50% { height: 100%; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }
@keyframes flipBg { 0%, 45% { background: #3a3342; } 50%, 95% { background: #7b5cf5; } }
@keyframes flipKnob { 0%, 45% { transform: none; } 50%, 95% { transform: translateX(13px); } }
@keyframes flipTab { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } }
@keyframes gulp { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.12); } }
@keyframes coin { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; left: 50%; transform: translateY(50px) scale(.7); } }

/* Con el scroll: en los navegadores que saben atar una animación al scroll
   (sin JS, en el compositor), lo de más abajo también se mueve al llegar.
   Usan rotate/scale/translate sueltos para sumarse al transform que ya tengan. */
@supports (animation-timeline: view()) {
  .motion .final__logo { animation: logoIn linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  .motion .stat__n { animation: numIn linear both; animation-timeline: view(); animation-range: entry 5% entry 95%; }
  .motion .faq details { animation: rowIn linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .motion .flow__node img { animation: iconIn linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  .motion .footer .brand img { animation: iconIn linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@keyframes logoIn { from { rotate: -34deg; scale: .5; translate: 0 40px; } to { rotate: 0deg; scale: 1; translate: 0 0; } }
@keyframes numIn { from { opacity: .2; scale: .82; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes rowIn { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes iconIn { from { rotate: -14deg; scale: .6; } to { rotate: 0deg; scale: 1; } }

/* Pausa de los bucles que no se ven */
.paused, .paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
}
