/* Kuenta — kuentaapp.com
   Paleta Jade (Kuenta/Diseño.swift) llevada a la web. Sin dependencias:
   solo Google Fonts. Un único CSS para la landing y las páginas legales. */

:root {
  color-scheme: light;

  /* Superficies */
  --bg: #FFFDF9;
  --paper: #F7F3EC;
  --sand: #F3EEE6;
  --card: #FFFFFF;
  --line: #ECE7DE;
  --line-strong: #DED7CB;

  /* Tinta */
  --ink: #16161A;
  --ink-2: #6E6860;
  --ink-3: #8A8279;
  --ink-4: #A39C92;

  /* Jade */
  --jade: #2F9E76;
  --jade-deep: #1F7856;
  --jade-ink: #0D3B2B;
  --forest: #0C2A1F;
  --forest-2: #12382A;
  --mint: #E2EFEA;
  --mint-2: #C9E6D8;
  --mint-glow: #9BE0BF;
  --euca: #5F8C77;

  /* Ilustración */
  --slate: #D8E2EF;
  --gold: #F8ECD5;
  --ochre: #E0A93F;
  --amber: #B25E09;
  --red: #A8231C;

  /* Tipografía */
  --f-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Métrica */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 44px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-1: 0 1px 2px rgba(22, 22, 26, .04), 0 4px 16px rgba(22, 22, 26, .05);
  --shadow-2: 0 2px 6px rgba(22, 22, 26, .05), 0 24px 60px -12px rgba(22, 22, 26, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--mint-2); color: var(--jade-ink); }
:focus-visible { outline: 2.5px solid var(--jade); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ───────────────────────── Tipografía ───────────────────────── */

.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .92;
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .98;
  font-size: clamp(40px, 6.2vw, 84px);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
  text-wrap: balance;
}
.h2--md { font-size: clamp(40px, 4.8vw, 66px); }
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
  max-width: 34em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--jade-deep);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}

/* ───────────────────────── Botones ───────────────────────── */

.btn {
  --bg-btn: var(--ink); --fg-btn: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--bg-btn); color: var(--fg-btn);
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(22, 22, 26, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--jade { --bg-btn: var(--jade); --fg-btn: #fff; }
.btn--jade:hover { box-shadow: 0 12px 32px -8px rgba(31, 120, 86, .55); }
.btn--mint { --bg-btn: var(--mint-glow); --fg-btn: var(--forest); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover .shine { animation: shine 1s var(--ease); }
@keyframes shine { to { transform: translateX(120%); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ───────────────────────── Logo ───────────────────────── */

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--sand);
  box-shadow: inset 0 0 0 1px rgba(22,22,26,.06);
  display: grid; place-items: center; flex: none;
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__word { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo:hover .logo__dot { transform: translate(18px, -18px) scale(1.06); }
.logo__dot { transform-origin: 648px 400px; transition: transform .5s var(--ease-spring); }

/* ───────────────────────── Navegación ───────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: padding .3s var(--ease), background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  padding: 8px 0;
  background: rgba(255, 253, 249, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a {
  display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 15px; color: var(--ink);
  transition: background-color .2s;
}
.nav__links a:hover { background: rgba(22,22,26,.06); }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(22,22,26,.06); cursor: pointer; place-items: center;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: grid; }
  .nav__links, .nav__cta { display: none; }
  .nav.is-open { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 8px var(--gutter) 20px; gap: 2px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
  }
  .nav.is-open .nav__links a { font-size: 20px; padding: 14px 4px; font-weight: 600; font-family: var(--f-display); letter-spacing: -0.02em; }
  .nav.is-open .nav__links .nav__mobile-cta { display: block; margin-top: 10px; }
}
.nav__mobile-cta { display: none; }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  padding: clamp(120px, 16vh, 168px) 0 clamp(64px, 10vw, 120px);
  overflow: clip;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title { font-size: clamp(52px, 6.6vw, 96px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { to { transform: none; } }

.mark {
  position: relative; display: inline-block; color: var(--forest); z-index: 0;
}
.mark::before {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.1em; top: .14em; bottom: .02em;
  background: var(--mint-glow); border-radius: .2em;
  transform-origin: left center; transform: scaleX(0);
  animation: sweep .9s .75s var(--ease) forwards;
}
@keyframes sweep { to { transform: scaleX(1); } }

.hero__lead { margin-top: 28px; opacity: 0; animation: fade-up .9s .35s var(--ease) forwards; }
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px;
  opacity: 0; animation: fade-up .9s .5s var(--ease) forwards;
}
.hero__note { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--jade); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__visual {
  position: relative; display: grid; place-items: center; min-height: 640px;
  opacity: 0; animation: fade-in 1.2s .2s var(--ease) forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.hero__blob {
  position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(155, 224, 191, .55), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(216, 226, 239, .9), transparent 70%);
  filter: blur(10px);
}
@keyframes breathe { to { transform: scale(1.08) rotate(12deg); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 600px; margin-top: 8px; }
}

/* ───────────────────────── iPhone ───────────────────────── */

.phone {
  --w: 318px;
  position: relative; width: var(--w); aspect-ratio: 318 / 660;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #2a2a2e, #0e0e10 40%, #1d1d20);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.12),
    0 0 0 1px rgba(0,0,0,.4),
    0 50px 100px -30px rgba(12, 42, 31, .45),
    0 30px 60px -30px rgba(0,0,0,.35);
}
.phone::before { /* botones laterales */
  content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 70px; border-radius: 0 3px 3px 0;
  background: #1a1a1d;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--f-body);
  display: flex; flex-direction: column;
}
.phone__island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 98px; height: 29px; border-radius: 20px; background: #000;
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 26px 0 30px; height: 50px; font-size: 14px; font-weight: 600; letter-spacing: -.01em;
}
.phone__status-icons { display: flex; gap: 5px; align-items: center; }
.phone__status-icons svg { height: 11px; width: auto; }

/* Pantalla «Mi mes» */
.app { flex: 1; padding: 6px 18px 0; display: flex; flex-direction: column; min-height: 0; }
.app__top { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.app__title { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.app__month {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600;
  background: var(--paper); border-radius: 999px; padding: 6px 11px; box-shadow: inset 0 0 0 1px var(--line);
}
.app__month svg { width: 10px; height: 10px; }
.app__label { margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.app__figure { font-size: 40px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-top: 4px; }
.app__figure small { font-size: .55em; font-weight: 600; letter-spacing: -.01em; margin-left: 2px; }
.app__delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--jade-deep); }
.app__delta svg { width: 11px; height: 11px; }

.bars {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end;
  height: 104px; margin-top: 18px; padding-bottom: 18px; position: relative;
}
.bars__b {
  position: relative; height: 100%; display: flex; align-items: flex-end;
}
.bars__b i {
  display: block; width: 100%; border-radius: 5px 5px 3px 3px; background: var(--rellenoInactivo, #E6DFD3);
  height: calc(var(--h) * 1%); transform-origin: bottom; transform: scaleY(0);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 45ms + 300ms);
}
.is-in .bars__b i, .bars.is-in .bars__b i { transform: scaleY(1); }
.bars__b.is-now i { background: var(--jade); }
.bars__b.is-empty i { background: transparent; border: 1.2px dashed var(--line-strong); height: 14%; }
.bars__b span {
  position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 500; color: var(--ink-4);
}
.bars__b.is-now span { color: var(--jade-deep); font-weight: 700; }

.rows { margin-top: 16px; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.rows__r {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; font-size: 13.5px; white-space: nowrap;
}
.rows__r + .rows__r { border-top: 1px solid var(--line); }
.rows__r b { font-weight: 600; }
.rows__r .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

.tabbar {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 14px 24px;
  border-top: 1px solid var(--line); background: rgba(255,253,249,.92);
}
.tabbar__t { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 500; color: var(--ink-4); }
.tabbar__t svg { width: 22px; height: 22px; }
.tabbar__t.is-on { color: var(--jade-deep); }

/* Tarjeta «Guardado en Kuenta» dentro del teléfono */
.toast {
  position: absolute; left: 12px; right: 12px; top: 52px; z-index: 4;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 20px; background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.6);
  transform: translateY(-140%) scale(.96); opacity: 0;
  transition: transform .6s var(--ease-spring), opacity .35s var(--ease);
}
.toast.is-on { transform: none; opacity: 1; }
.toast__icon { width: 38px; height: 38px; border-radius: 10px; flex: none; overflow: hidden; }
.toast__icon img { width: 100%; height: 100%; }
.toast__body { min-width: 0; flex: 1; }
.toast__title { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.toast__title time { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.toast__text { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chips flotantes alrededor del teléfono */
.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px; background: var(--card);
  box-shadow: var(--shadow-2); font-size: 14px; white-space: nowrap;
  animation: bob 9s ease-in-out infinite;
}
.float b { font-weight: 600; }
.float small { display: block; font-size: 12px; color: var(--ink-3); }
.float__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float__ico svg { width: 18px; height: 18px; }
.float--a { left: -10%; top: 47%; animation-delay: -1s; }
.float--b { right: -4%; top: 52%; animation-delay: -3.2s; }
.float--c { right: -8%; bottom: 7%; animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 960px) {
  .float--a { left: max(0px, calc(50% - 300px)); }
  .float--c { right: max(0px, calc(50% - 300px)); }
}
@media (max-width: 520px) {
  .float { font-size: 12.5px; padding: 9px 12px; border-radius: 14px; }
  .float__ico { width: 28px; height: 28px; }
  .float--a { left: -10px; top: 14%; }
  .float--c { right: -10px; }
  .phone { --w: 286px; }
  .rows__r { font-size: 12px; padding: 10px 12px; }
  .app__figure { font-size: 36px; }
}

/* ───────────────────────── Cinta de apps ───────────────────────── */

.ticker {
  border-block: 1px solid var(--line); background: var(--paper);
  padding: 22px 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; gap: 56px; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink-2);
}
.ticker__item svg { width: 26px; height: 26px; color: var(--jade); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ───────────────────────── Secciones ───────────────────────── */

.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section__head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Revelado al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───────────────────────── Cómo funciona ───────────────────────── */

.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step {
  position: relative; border-radius: var(--r-md); padding: 24px 26px 26px 80px; cursor: pointer;
  transition: background-color .4s var(--ease);
}
.step:hover { background: rgba(22,22,26,.03); }
.step.is-active { background: var(--paper); }
.step__n {
  position: absolute; left: 24px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--sand); color: var(--ink-2); transition: background-color .3s, color .3s;
}
.step.is-active .step__n { background: var(--ink); color: var(--bg); }
.step__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.2; padding-top: 4px; }
.step__text {
  margin: 0; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
}
.step.is-active .step__text { max-height: 160px; opacity: 1; margin-top: 10px; }
.step__bar { position: absolute; left: 80px; right: 26px; bottom: 12px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.step.is-active .step__bar { opacity: 1; }
.step__bar i { display: block; height: 100%; width: 100%; background: var(--jade); transform-origin: left; transform: scaleX(0); }
.step.is-active .step__bar i { animation: progress var(--dur, 5.5s) linear forwards; }
.steps.is-paused .step.is-active .step__bar i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden;
  background: var(--mint); isolation: isolate;
}
.stage__panel {
  position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(20px, 5%, 48px);
  opacity: 0; visibility: hidden; transform: scale(.96);
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s;
}
.stage__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.stage[data-step="1"] { background: var(--slate); }
.stage[data-step="2"] { background: var(--gold); }
.stage { transition: background-color .8s var(--ease); }

/* Panel 1: hoja de compartir */
.share {
  width: min(100%, 400px); background: rgba(255,255,255,.92); border-radius: 28px; padding: 18px 18px 22px;
  box-shadow: var(--shadow-2);
}
.share__file { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.share__thumb { width: 44px; height: 56px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(0,0,0,.08); position: relative; flex: none; }
.share__thumb::before { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 26px; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 7px); }
.share__thumb::after { content: "PDF"; position: absolute; bottom: 5px; left: 6px; font-size: 8px; font-weight: 800; color: var(--red); }
.share__name { font-size: 15px; font-weight: 600; }
.share__meta { font-size: 13px; color: var(--ink-3); }
.share__apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 18px; }
.share__app { display: grid; justify-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.share__app i { width: 58px; height: 58px; border-radius: 15px; display: block; background: var(--sand); }
.share__app img { width: 58px; height: 58px; border-radius: 15px; }
.share__app .ios-ico { width: 58px; height: 58px; box-shadow: 0 1px 2px rgba(0,0,0,.08); border-radius: 13px; }
.share__app.is-kuenta { position: relative; color: var(--ink); font-weight: 600; }
.share__app.is-kuenta img { box-shadow: 0 0 0 0 rgba(47,158,118,.5); }
.stage__panel.is-active .share__app.is-kuenta img { animation: ring 1.8s .6s var(--ease) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(47,158,118,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(47,158,118,0); } }
.share__tap {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(22,22,26,.18);
  border: 2px solid rgba(255,255,255,.9); top: 8px; left: 50%; margin-left: -22px; pointer-events: none;
  opacity: 0;
}
.stage__panel.is-active .share__tap { animation: tap 1.8s 1.1s var(--ease) infinite; }
@keyframes tap { 0% { opacity: 0; transform: translate(30px, 40px) scale(1.2); } 30% { opacity: 1; transform: none; } 45% { transform: scale(.85); } 60%, 100% { opacity: 0; transform: scale(1); } }
.share__row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--paper); font-size: 14px; font-weight: 500; }
.share__row svg { width: 18px; height: 18px; color: var(--ink-3); }

/* Panel 2: lectura */
.read { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(100%, 520px); align-items: center; }
.doc {
  position: relative; background: #fff; border-radius: 10px; padding: 18px 16px; aspect-ratio: 210 / 297;
  box-shadow: var(--shadow-2); font-size: 8.5px; line-height: 1.5; color: var(--ink-2); overflow: hidden;
  transform: rotate(-3deg);
}
.doc__h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.doc__logo { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); }
.doc__h strong { display: block; color: var(--ink); font-size: 11px; letter-spacing: -.01em; }
.doc__lines { display: grid; gap: 5px; margin: 10px 0; }
.doc__lines i { display: block; height: 5px; border-radius: 3px; background: var(--sand); }
.doc__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; color: var(--ink); font-weight: 700; font-size: 10px; }
.doc__hl { border-radius: 3px; transition: background-color .4s, box-shadow .4s; }
.doc__hl.is-hit { background: rgba(155, 224, 191, .55); box-shadow: 0 0 0 2px rgba(155, 224, 191, .55); }
.doc__scan {
  position: absolute; left: 0; right: 0; height: 40px; top: -40px;
  background: linear-gradient(180deg, transparent, rgba(47,158,118,.18) 70%, rgba(47,158,118,.7) 100%);
  border-bottom: 2px solid var(--jade);
}
.stage__panel.is-active .doc__scan { animation: scan 2.6s .2s var(--ease) infinite; }
@keyframes scan { 0% { top: -40px; } 75%, 100% { top: 100%; } }
.fields { background: rgba(255,255,255,.95); border-radius: 20px; padding: 8px 0; box-shadow: var(--shadow-2); }
.fields__f { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; font-size: 13px; align-items: center; }
.fields__f + .fields__f { border-top: 1px solid var(--line); }
.fields__f span { color: var(--ink-3); }
.fields__f b { font-weight: 600; text-align: right; opacity: 0; transform: translateX(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.fields__f.is-filled b { opacity: 1; transform: none; }
.fields__f b::after { content: ""; display: inline-block; width: 0; }
.fields__badge { display: flex; align-items: center; gap: 6px; margin: 6px 14px 8px; padding: 8px 10px; border-radius: 10px; background: var(--mint); color: var(--jade-deep); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .5s; }
.fields__badge.is-on { opacity: 1; }
.fields__badge svg { width: 14px; height: 14px; }

/* Panel 3: archivo */
.archive { width: min(100%, 400px); background: var(--bg); border-radius: 28px; padding: 22px 18px; box-shadow: var(--shadow-2); }
.archive__tabs { display: flex; gap: 22px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.archive__tabs span { padding-bottom: 10px; color: var(--ink-4); }
.archive__tabs .is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.archive__sum { font-size: 34px; font-weight: 700; letter-spacing: -.035em; margin-top: 16px; }
.archive__meta { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.archive__list { display: grid; }
.archive__row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.archive__row:first-child { border-top: 0; }
.archive__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--paper); }
.archive__ic svg { width: 18px; height: 18px; color: var(--ink-2); }
.archive__row .t { flex: 1; min-width: 0; }
.archive__row .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archive__row .t small { color: var(--ink-3); font-size: 12px; }
.archive__row .a { font-weight: 600; }
.archive__row.is-new { background: linear-gradient(90deg, rgba(155,224,191,.35), transparent); border-radius: 12px; border-top-color: transparent; padding-inline: 8px; margin-inline: -6px; }
.stage__panel.is-active .archive__row.is-new { animation: slide-in .8s .3s var(--ease-spring) both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--jade-deep); margin-left: 6px; vertical-align: 1px; }

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 4.2; order: -1; }
}
@media (max-width: 520px) {
  .read { grid-template-columns: 1fr; }
  .doc { display: none; }
  .step { padding: 20px 18px 24px 68px; }
  .step__n { left: 16px; top: 18px; }
  .step__bar { left: 68px; right: 18px; }
}

/* ───────────────────────── Funciones (bento) ───────────────────────── */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  transition: transform .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile p { margin: 0; color: var(--ink-2); max-width: 30em; }
.tile--mint { background: var(--mint); }
.tile--gold { background: var(--gold); }
.tile--slate { background: var(--slate); }
.tile--ink { background: var(--ink); color: var(--bg); }
.tile--ink p { color: #BDB6AB; }
.tile--w4 { grid-column: span 4; }
.tile--w3 { grid-column: span 3; }
.tile--w2 { grid-column: span 2; }
.tile__fig { margin-top: auto; }
@media (max-width: 960px) {
  .tile--w4, .tile--w3, .tile--w2 { grid-column: span 6; }
  .tile { min-height: 0; }
}

/* Gráfica grande interactiva */
.chart { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(6px, 1vw, 12px); align-items: end; height: 200px; margin-top: 18px; padding-bottom: 26px; }
.chart__b { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.chart__b i {
  display: block; width: 100%; height: calc(var(--h) * 1%); border-radius: 8px 8px 4px 4px;
  background: rgba(31, 120, 86, .22); transform-origin: bottom; transform: scaleY(0);
  transition: transform 1.1s var(--ease), background-color .25s;
  transition-delay: calc(var(--i) * 50ms), 0s;
}
.chart.is-in .chart__b i { transform: scaleY(1); }
.chart__b:hover i, .chart__b.is-sel i { background: var(--jade); }
.chart__b.is-future i { background: transparent; border: 1.5px dashed rgba(31,120,86,.3); height: 10%; }
.chart__b span { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.chart__b.is-sel span { color: var(--jade-deep); font-weight: 700; }
.chart__readout { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart__value { font-family: var(--f-display); font-size: clamp(36px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.chart__month { font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* Reserva de IRPF */
.irpf { background: rgba(255,255,255,.7); border-radius: var(--r-md); padding: 20px; display: grid; gap: 16px; }
.irpf__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.irpf__top span { font-size: 14px; color: var(--ink-2); }
.irpf__amount { font-family: var(--f-display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.irpf__pct { font-weight: 700; font-size: 18px; min-width: 3.2em; text-align: right; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--ochre) var(--p), rgba(22,22,26,.1) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--ochre) var(--p), rgba(22,22,26,.1) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -10px; box-shadow: 0 2px 8px rgba(0,0,0,.2), inset 0 0 0 1px rgba(0,0,0,.05); transition: transform .2s var(--ease-spring); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.irpf__split { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 3px; }
.irpf__split i { display: block; height: 100%; border-radius: 10px; transition: flex-grow .4s var(--ease); }
.irpf__legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); gap: 10px; }
.irpf__legend b { color: var(--ink); font-weight: 600; }

/* Huecos visibles */
.gap-demo { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.gap-demo__r { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 15px; gap: 12px; }
.gap-demo__r + .gap-demo__r { border-top: 1px solid var(--line); }
.gap-demo__r span { color: var(--ink-3); }
.gap-demo__r b { font-weight: 600; }
.gap-demo__r.is-gap { background: rgba(224, 154, 58, .08); }
.gap-demo__r.is-gap b { color: var(--amber); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.gap-demo__r.is-gap b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
.gap-demo__blank { display: inline-block; width: 74px; height: 22px; border-radius: 6px; border: 1.5px dashed rgba(178, 94, 9, .45); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178,94,9,.4); } 50% { box-shadow: 0 0 0 6px rgba(178,94,9,0); } }

/* Exportar */
.export { display: flex; flex-wrap: wrap; gap: 10px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-1); font-weight: 600; font-size: 15px;
}
.file-chip em { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; }

/* Árbol de Archivos */
.tree { font-size: 15px; display: grid; gap: 2px; }
.tree__n { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; }
.tree__n svg { width: 20px; height: 20px; flex: none; }
.tree__n:nth-child(2) { padding-left: 32px; }
.tree__n:nth-child(3) { padding-left: 54px; }
.tree__n:nth-child(4), .tree__n:nth-child(5) { padding-left: 76px; color: #BDB6AB; }
.tree__n.is-hl { background: rgba(255,255,255,.08); }

/* ───────────────────────── Privacidad ───────────────────────── */

.privacy {
  background: var(--forest); color: #E9F3EE; border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 1.5vw, 20px); overflow: hidden; position: relative;
}
.privacy::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -400px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47,158,118,.35), transparent); pointer-events: none;
}
.privacy .eyebrow { color: var(--mint-glow); }
.privacy .lead { color: #A9C4B7; }
.privacy .h2 em { font-style: normal; color: var(--mint-glow); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.points li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.points__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(155,224,191,.12); color: var(--mint-glow); }
.points__ic svg { width: 22px; height: 22px; }
.points b { display: block; font-size: 18px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.points span { color: #A9C4B7; font-size: 15.5px; }
.privacy .link-arrow { color: var(--mint-glow); margin-top: 28px; }

.flow { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; margin-inline: auto; }
.flow svg { width: 100%; height: 100%; overflow: visible; }
.flow .node rect { fill: var(--forest-2); stroke: rgba(155,224,191,.25); stroke-width: 1.5; }
.flow .node text { fill: #E9F3EE; font-family: var(--f-body); }
.flow .node .sub { fill: #8FB3A3; font-size: 13px; }
.flow .node .ttl { font-size: 17px; font-weight: 600; }
.flow .node--off rect { fill: transparent; stroke: rgba(255,255,255,.18); stroke-dasharray: 6 6; }
.flow .node--off text { fill: #6F8E80; }
.flow .wire { fill: none; stroke: rgba(155,224,191,.35); stroke-width: 2; stroke-dasharray: 4 7; }
.flow .wire--off { stroke: rgba(255,255,255,.14); }
.flow .packet { fill: var(--mint-glow); }
.flow .x { stroke: #E86A5F; stroke-width: 3; stroke-linecap: round; }
.flow .lock { fill: none; stroke: var(--mint-glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow .tag rect { fill: var(--mint-glow); }
.flow .tag text { fill: var(--forest); font-size: 12px; font-weight: 700; font-family: var(--f-body); letter-spacing: .02em; }

@media (max-width: 900px) { .privacy__grid { grid-template-columns: 1fr; } }

/* ───────────────────────── Precio ───────────────────────── */

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px;
  background: var(--sand); margin-bottom: 24px;
}
.toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); transition: color .3s; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; box-shadow: var(--shadow-1); transition: transform .45s var(--ease-spring); }
.toggle[data-plan="anual"] .toggle__thumb { transform: translateX(100%); }
.save { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--mint-glow); color: var(--forest); }

.price-card {
  position: relative; background: var(--card); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
}
.price-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.price-card__head img { width: 52px; height: 52px; border-radius: 14px; }
.price-card__name { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.price-card__trial { font-size: 14px; color: var(--jade-deep); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-display); }
.price__v { font-size: clamp(64px, 8vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; display: inline-flex; }
.price__v .digit { display: inline-block; transition: transform .5s var(--ease), opacity .3s; }
.price__u { font-size: 22px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.02em; }
.price__alt { font-size: 15px; color: var(--ink-3); margin-top: 10px; min-height: 1.5em; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { width: 22px; height: 22px; color: var(--jade); flex: none; margin-top: 1px; }
.price-card .btn { width: 100%; }
.fine { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin: 18px 0 0; }
.req {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--paper); font-size: 15px; color: var(--ink-2);
}
.req svg { width: 24px; height: 24px; color: var(--ink); flex: none; }
.req b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ───────────────────────── FAQ ───────────────────────── */

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 4px; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sand); flex: none; position: relative;
  transition: background-color .3s, transform .45s var(--ease-spring);
}
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .45s var(--ease), background-color .3s; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--ink); transform: rotate(180deg); }
.faq details[open] summary i::before { background: var(--bg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); background: var(--bg); }
.faq summary:hover i { background: var(--line-strong); }
.faq details[open] summary:hover i { background: var(--ink); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0 0 26px; padding: 0 4px; color: var(--ink-2); max-width: 44em; font-size: 17px; }

/* ───────────────────────── CTA final ───────────────────────── */

.cta {
  position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px);
  background: var(--mint-glow); color: var(--forest); text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.cta .display { font-size: clamp(52px, 10vw, 148px); }
.cta p { font-size: clamp(18px, 1.6vw, 21px); margin: 24px auto 40px; max-width: 30em; color: var(--jade-ink); }
.cta__k { position: absolute; width: clamp(240px, 32vw, 460px); opacity: .14; right: -6%; bottom: -18%; transform: rotate(-12deg); pointer-events: none; }
.cta__k2 { left: -8%; top: -24%; right: auto; bottom: auto; transform: rotate(18deg); width: clamp(180px, 22vw, 320px); }
.cta .btn { --bg-btn: var(--forest); --fg-btn: #fff; }

/* App Store badge (dibujada, sin imagen externa) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 20px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(22,22,26,.4); }
.appstore svg { width: 28px; height: 28px; }
.appstore small { display: block; font-size: 11px; line-height: 1.1; opacity: .85; font-weight: 500; }
.appstore b { display: block; font-size: 21px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.cta .appstore { background: var(--forest); }

/* ───────────────────────── Footer ───────────────────────── */

.footer { padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__tag { color: var(--ink-2); margin: 16px 0 0; max-width: 22em; font-size: 15px; }
.footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink); font-size: 15px; }
.footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; color: var(--ink-3); }
.footer__big {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.06em; line-height: .8;
  font-size: clamp(96px, 26vw, 380px); color: var(--sand); margin: 48px 0 -0.08em; user-select: none;
  display: flex; align-items: flex-end; gap: .04em;
}
.footer__big i { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--mint-2); margin-bottom: .52em; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ───────────────────────── Páginas legales ───────────────────────── */

.legal-hero { padding: clamp(128px, 16vh, 168px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-hero .display { font-size: clamp(48px, 7.5vw, 104px); }
.legal-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.badge svg { width: 16px; height: 16px; color: var(--jade); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 128px); }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; color: var(--ink-2);
  transition: background-color .2s, color .2s; line-height: 1.35;
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--ink-4); font-size: 12px; padding-top: 2px; }
.toc a:hover { background: var(--paper); color: var(--ink); }
.toc a.is-current { background: var(--mint); color: var(--jade-ink); font-weight: 600; }
.toc a.is-current::before { color: var(--jade-deep); }
.toc__progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 20px; overflow: hidden; }
.toc__progress i { display: block; height: 100%; width: 100%; background: var(--jade); transform-origin: left; transform: scaleX(0); }

.prose { max-width: 720px; font-size: 17.5px; line-height: 1.7; }
.prose h2 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  margin: 72px 0 18px; padding-top: 8px; display: flex; gap: 14px; align-items: baseline;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h2 .n { font-size: .55em; color: var(--jade-deep); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 32px 0 8px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 18px; color: #3B3833; }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; color: #3B3833; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--jade-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--jade-ink); }
.summary {
  background: var(--forest); color: #E9F3EE; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); margin: 0 0 64px;
}
.summary h2 { margin: 0 0 18px !important; color: #fff; font-size: 24px !important; }
.summary ul { display: grid; gap: 14px; margin: 0; }
.summary li { color: #C3DACE !important; padding-left: 34px !important; }
.summary li::before { width: 20px !important; height: 20px !important; top: .2em !important; left: 0 !important; background: rgba(155,224,191,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239BE0BF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 100% no-repeat !important; }
.summary strong { color: #fff; }
.callout { border-radius: var(--r-md); background: var(--paper); padding: 20px 22px; margin: 24px 0; font-size: 16px; }
.callout p:last-child { margin-bottom: 0; }
.todo { background: #FFF1D6; color: #7A4A06; border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: .92em; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--paper); border-radius: var(--r-md); padding: 20px; }
  .toc__progress { display: none; }
}

/* ───────────────────────── Movimiento reducido ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .mark::before { transform: none; }
  .ticker__track { animation: none; }
}
