/* ============================================================
   leaf finance — landing
   Mismos tokens que la app (src/constants/theme.ts): crema, papel,
   tinta y un solo verde. Solo modo claro, como el resto del sitio.
   ============================================================ */

:root {
  --bg: #F5F1E8;
  --surface: #FBF8F0;
  --surface-alt: #EFE9DA;
  --border: #DDD4C3;
  --rule: rgba(17, 17, 17, 0.10);
  --accent: #123D2D;
  --accent-deep: #0B2A1F;
  --accent-tint: rgba(18, 61, 45, 0.08);
  --sage: #DDE8DB;
  --on-accent: #F5F1E8;
  --text: #111111;
  --text-muted: #6b6a63;
  --text-faint: #8a8980;
  --danger: #8b2230;
  --danger-tint: rgba(139, 34, 48, 0.07);

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 60px -24px rgba(17, 17, 17, .22), 0 8px 20px -12px rgba(17, 17, 17, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; }

.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(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }
.exp { color: var(--danger); }
.inc { color: var(--accent); }

/* ---------- tipografía editorial ---------- */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px;
}
h1.display, h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; color: var(--text);
}
h1.display { font-size: clamp(46px, 7vw, 92px); line-height: .98; margin-bottom: 26px; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 56ch; }
.lede strong { color: var(--text); font-weight: 600; }

.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head .lede { margin-top: 22px; }

/* ---------- botones ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(18, 61, 45, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn .i { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(18, 61, 45, .6); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); box-shadow: none; border-color: var(--text-faint); }
.btn-light { background: var(--bg); color: var(--accent); box-shadow: none; }
.btn-outline-light { background: transparent; color: var(--on-accent); border-color: rgba(245, 241, 232, .35); box-shadow: none; }
.btn-outline-light:hover { border-color: var(--on-accent); box-shadow: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--accent-tint); padding-bottom: 2px; transition: border-color .2s, gap .2s;
}
.text-link:hover { border-color: var(--accent); gap: 12px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, .92);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--text); letter-spacing: -0.015em;
}
.brand-leaf { width: 17px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- aparición al scrollear ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero-copy .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--text-muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .i { color: var(--accent); font-size: 17px; }

.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero .reveal:nth-child(5) { transition-delay: .32s; }

.hero-stage { position: relative; display: flex; justify-content: center; min-height: 660px; }
.leaf-draw {
  position: absolute; width: 420px; height: 740px; top: -40px; left: 50%; transform: translateX(-46%) rotate(8deg);
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; opacity: .22;
}
.leaf-draw path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.2s var(--ease) .3s forwards; }
.leaf-draw path:nth-child(2) { animation-delay: .7s; }
.leaf-draw path:nth-child(3) { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.phone-hero { animation: phoneIn 1.2s var(--ease) .15s both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(50px) rotate(-3deg); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.25;
  animation: float 6s ease-in-out infinite, fadeUp 1s var(--ease) both;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--text-muted); font-size: 12.5px; }
.fc-ico { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-size: 17px; }
.fc-1 { left: -90px; top: 470px; animation-delay: 0s, 1.1s; }
.fc-2 { right: -26px; top: 150px; animation-delay: -3s, 1.4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   TELÉFONO (común a todas las demos)
   ============================================================ */

.phone {
  position: relative; z-index: 2;
  width: 300px; height: 626px; flex: none;
  border-radius: 48px; padding: 10px;
  background: #151514;
  box-shadow: 0 50px 90px -30px rgba(17, 17, 17, .45), 0 20px 40px -20px rgba(17, 17, 17, .3), inset 0 0 0 1.5px #2b2a28;
}
.phone::before { /* isla */
  content: ""; position: absolute; top: 20px; left: 50%; width: 88px; height: 25px; transform: translateX(-50%);
  background: #000; border-radius: 999px; z-index: 20;
}
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 38px; background: var(--bg);
  font-size: 12px; line-height: 1.35;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 15;
  display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0 30px;
  font-weight: 600; font-size: 13px; transition: color .4s;
}
.sb-r { display: flex; gap: 3px; align-items: flex-end; }
.sb-r i { width: 3px; background: currentColor; border-radius: 1px; }
.sb-r i:nth-child(1) { height: 5px; } .sb-r i:nth-child(2) { height: 8px; } .sb-r i:nth-child(3) { height: 11px; }
.screen.is-lock .statusbar { color: var(--on-accent); }

.ey { font-size: 8.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); margin: 0; }

.app-top { display: flex; justify-content: space-between; align-items: center; padding: 50px 18px 0; }
.app-title { font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.app-tool { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 4px; }
.rb { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 15px; }
.rb.ghost { background: transparent; border-color: transparent; font-size: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 11.5px;
}
.pill .i { font-size: 13px; }
.pill-lg { padding: 7px 13px; font-size: 13px; }
.pill-exp { background: var(--danger-tint); border-color: transparent; color: var(--danger); }
.leaf-i { stroke-width: 14; color: var(--accent); height: 15px; width: 9px; }

.saldo { text-align: center; padding: 12px 18px 8px; }
.saldo-n { font-family: var(--serif); font-weight: 600; font-size: 44px; letter-spacing: -0.04em; line-height: 1.08; margin: 4px 0 0; font-variant-numeric: tabular-nums; transition: color .3s; }
.saldo-n small { font-size: 24px; letter-spacing: -0.02em; }
.saldo-n.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(.96); color: var(--danger); } }
.saldo-n.bump-up { animation: bumpUp .6s var(--ease); }
@keyframes bumpUp { 40% { transform: scale(1.04); color: var(--accent); } }
.saldo.dim { opacity: .35; }

.flow { display: flex; align-items: center; margin: 4px 18px 10px; padding: 8px 0; }
.flow > div { flex: 1; }
.flow > i { width: 1px; height: 30px; background: var(--rule); margin: 0 14px; }
.flow .mono { font-size: 12px; margin: 3px 0 0; }

.sech { display: flex; align-items: center; gap: 10px; padding: 6px 18px 4px; font-size: 8.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); }
.sech i { flex: 1; height: 1px; background: var(--rule); }

.rows { list-style: none; margin: 0; padding: 0 18px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t b { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t small { color: var(--text-muted); font-size: 10.5px; }
.row .mono { font-size: 11.5px; }
.badge { width: 30px; height: 30px; border-radius: 999px; background: var(--surface-alt); display: grid; place-items: center; font-size: 15px; color: var(--text); flex: none; transition: background .4s, color .4s; }
.badge.on { background: var(--accent-tint); color: var(--accent); }
.row.enter { background: linear-gradient(90deg, var(--accent-tint), transparent 80%); background-size: 200% 100%; animation: rowIn .7s var(--ease) both, glow 2.4s ease 0.4s both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px); max-height: 0; padding: 0; } to { opacity: 1; transform: none; max-height: 60px; } }
@keyframes glow { from { background-position: 0 0; } to { background-position: 100% 0; } }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 26px 22px; background: var(--bg); border-top: 1px solid var(--rule);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 600; color: var(--text-faint); }
.tab .i { font-size: 19px; }
.tab.on { color: var(--accent); }
.tab-plus {
  position: relative; width: 50px; height: 50px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 22px; margin-top: -24px;
  box-shadow: 0 8px 18px -6px rgba(18, 61, 45, .6); transition: transform .3s var(--ease);
}
.tab-plus .i { position: relative; z-index: 2; }

/* aviso que baja desde arriba */
.push {
  position: absolute; z-index: 18; left: 10px; right: 10px; top: 50px;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 20px;
  background: rgba(251, 248, 240, .97); border: 1px solid var(--border);
  box-shadow: 0 14px 30px -12px rgba(17, 17, 17, .35);
  transform: translateY(-130%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.push.show { transform: translateY(0); opacity: 1; }
.push-app {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: #009EE3; color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: -.02em;
}
.push-app.uala { background: #3E4AE0; font-size: 14px; }
.push-app.nx { background: #FE5000; }
.push-app.leafapp { background: var(--bg); border: 1px solid var(--border); }
.push-app.leafapp svg { width: 12px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 16; stroke-linecap: round; }
.push-body { min-width: 0; flex: 1; }
.push-t { display: flex; justify-content: space-between; font-weight: 700; font-size: 11px; margin: 0; }
.push-time { color: var(--text-faint); font-weight: 500; font-size: 10px; }
.push-m { margin: 1px 0 0; font-size: 11.5px; color: var(--text); }
.push-m b { font-weight: 700; }

/* ============================================================
   FUENTES (marquee)
   ============================================================ */

.sources { padding: 26px 0 30px; border-top: 1px solid var(--rule); text-align: center; overflow: hidden; }
.sources-label { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 500; color: var(--text); white-space: nowrap; opacity: .82; }
.marquee-track .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   PROBLEMA
   ============================================================ */

.statement { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.015em; }
.statement em { color: var(--accent); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; }
.problem-grid > div { border-top: 1px solid var(--text); padding-top: 18px; }
.problem-grid h3 { margin: 6px 0 8px; }
.problem-grid p { color: var(--text-muted); font-size: 15.5px; }
.big-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.js .problem-grid .reveal:nth-child(2) { transition-delay: .12s; }
.js .problem-grid .reveal:nth-child(3) { transition-delay: .24s; }

/* ============================================================
   TRES FORMAS
   ============================================================ */

.cargar { background: var(--surface); }
.formas { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.formas-list { display: flex; flex-direction: column; gap: 4px; }
.forma {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; text-align: left;
  padding: 24px 22px; border-radius: 22px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background .35s, border-color .35s, opacity .35s; opacity: .55;
}
.forma:hover { opacity: .85; }
.forma.on { background: var(--bg); border-color: var(--border); opacity: 1; }
.forma-ico { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 22px; transition: background .35s, color .35s; }
.forma.on .forma-ico { background: var(--accent); color: var(--on-accent); }
.forma-txt b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 6px; }
.forma-txt span { color: var(--text-muted); font-size: 15.5px; }
.forma-bar { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: transparent; overflow: hidden; border-radius: 2px; }
.forma.on .forma-bar { background: var(--rule); }
.forma-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

.formas-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.formas-stage::before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 999px; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: radial-gradient(circle, var(--sage), transparent 68%); opacity: .8;
}
.demo-ctl {
  position: absolute; right: calc(50% - 200px); bottom: 30px; z-index: 5;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.ctl-pause { width: 12px; height: 12px; border-left: 3.5px solid var(--text); border-right: 3.5px solid var(--text); }
.demo-ctl.paused .ctl-pause { width: 0; height: 0; border-left: 11px solid var(--text); border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }

/* escena: escribir */
.add-top { padding: 46px 12px 0; }
.add-chips { display: flex; gap: 6px; padding: 8px 18px 0; flex-wrap: wrap; }
.add-field { padding: 22px 20px 0; font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; min-height: 58px; }
.add-amt { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 44px; padding-top: 6px; letter-spacing: -0.03em; }
.add-amt .cur { font-size: 26px; color: var(--text-faint); font-weight: 500; }
.typed.ph { color: var(--text-faint); }
.typed.caret::after { content: ""; display: inline-block; width: 2px; height: .9em; background: var(--accent); margin-left: 2px; vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.add-cats { padding: 18px 18px 0; }
.add-cats .ey { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sug { display: inline-flex; align-items: center; gap: 4px; letter-spacing: 0; text-transform: none; font-size: 10px; color: var(--accent); background: var(--accent-tint); padding: 2px 8px; border-radius: 999px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.sug.show { opacity: 1; transform: none; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 11px;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.cchip .i { font-size: 13px; }
.cchip.sel { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: scale(1.06); }
.save {
  position: absolute; left: 18px; right: 18px; bottom: 26px;
  text-align: center; padding: 13px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 13px; opacity: .35; transition: opacity .3s, transform .2s;
}
.save.ready { opacity: 1; }
.save.press { transform: scale(.95); }
.save.sm { position: static; flex: 1; padding: 10px; opacity: 1; }
.save.ghost { background: var(--surface-alt); color: var(--text); }
.toast {
  position: absolute; left: 50%; top: 74%; z-index: 9;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 13px;
  transform: translate(-50%, -30%) scale(.9); opacity: 0; transition: all .45s var(--ease);
}
.toast .i { font-size: 16px; color: var(--sage); }
.toast.show { opacity: 1; transform: translate(-50%, -50%); }

/* escena: dictar */
.listen { position: absolute; left: 0; right: 0; top: 190px; text-align: center; opacity: 0; transition: opacity .4s; }
.listen.show { opacity: 1; }
.listen-t { font-weight: 600; color: var(--accent); font-size: 12px; letter-spacing: .02em; }
.wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 60px; margin: 10px 0 12px; }
.wave i { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); }
.wave.on i { animation: wv 0.9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s !important; }
.wave i:nth-child(3n) { animation-delay: -.6s !important; }
.wave i:nth-child(5n) { animation-delay: -.15s !important; }
@keyframes wv { 0%, 100% { height: 8px; } 50% { height: 46px; } }
.transcript { font-family: var(--serif); font-size: 26px; min-height: 36px; padding: 0 20px; letter-spacing: -0.01em; }
.transcript .w { display: inline-block; animation: fadeUp .35s var(--ease) both; margin-right: .25em; }
.ring { position: absolute; inset: 0; border-radius: 999px; background: var(--accent); opacity: 0; }
.tab-plus.hold { transform: scale(1.14); }
.tab-plus.hold .ring { animation: ring 1.6s ease-out infinite; }
.tab-plus.hold .ring.r2 { animation-delay: .8s; }
@keyframes ring { from { transform: scale(1); opacity: .35; } to { transform: scale(2.4); opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 18px 26px;
  box-shadow: 0 -20px 40px -20px rgba(17, 17, 17, .3);
  transform: translateY(105%); transition: transform .55s var(--ease);
}
.sheet.show { transform: none; }
.grab { display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--border); margin: 0 auto 14px; }
.sheet-t { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sheet-row span { color: var(--text-muted); }
.sheet-row b { font-weight: 600; }
.with-i { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.sheet-btns { display: flex; gap: 8px; margin-top: 16px; }

/* escena: pantalla bloqueada */
.scene.lock { background: radial-gradient(120% 70% at 50% 0%, #1d5741 0%, var(--accent) 45%, var(--accent-deep) 100%); color: var(--on-accent); }
.scene.lock::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -2 194 340'%3E%3Cg fill='none' stroke='%23F5F1E8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M59 5C38 30 8 90 3 145C-2 205 40 248 103 266C128 274 147 292 147 316L147 334'/%3E%3Cpath d='M59 5C105 32 165 95 179 158C187 200 170 238 138 262'/%3E%3Cpath d='M83 110C103 152 117 205 114 234C112 251 108 260 104 266'/%3E%3C/g%3E%3C/svg%3E") no-repeat 60% 85% / 70% auto;
  opacity: .12;
}
.lock-clock { text-align: center; padding-top: 64px; }
.lock-date { font-weight: 600; font-size: 13px; opacity: .85; margin: 0; }
.lock-time { font-family: var(--serif); font-size: 78px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; margin: 0; }
.lock-stack { position: absolute; left: 10px; right: 10px; top: 250px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.lnotif {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 20px;
  background: rgba(251, 248, 240, .94); color: var(--text); overflow: hidden;
  opacity: 0; transform: translateY(-16px) scale(.96); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -8px;
  transition: all .6s var(--ease);
}
.lnotif.show { opacity: 1; transform: none; max-height: 80px; padding-top: 10px; padding-bottom: 10px; margin-bottom: 0; }
.lnotif.leafn { background: var(--bg); box-shadow: 0 0 0 2px var(--sage); }
.lock-hint { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; opacity: 0; transition: opacity .6s; z-index: 2; }
.lock-hint.show { opacity: .9; }

/* ============================================================
   CAPTURA
   ============================================================ */

/* Un proceso de cuatro pasos: cada ícono se une con el siguiente por una
   flecha que se va pintando de verde, en orden, al entrar en pantalla. */
.pipeline {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 36px 34px;
}
.pipe-step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pipe-step h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.pipe-step p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.pipe-n { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-top: 10px; }
.pipe-ico {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--border); color: var(--text-muted);
  display: grid; place-items: center; font-size: 21px;
  transition: background .4s, color .4s, border-color .4s;
}
.pipe-step:not(:last-child)::after { /* la línea hacia el paso siguiente */
  content: ""; position: absolute; top: 23px; left: 60px; right: -28px; height: 2px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%, var(--border);
  transition: background-size .8s var(--ease);
}
.pipe-step:not(:last-child)::before { /* la punta de la flecha */
  content: ""; position: absolute; top: 19px; right: -28px; width: 8px; height: 8px;
  border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: rotate(45deg);
  transition: border-color .3s;
}
.pipeline.run .pipe-step .pipe-ico { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pipeline.run .pipe-step:nth-child(1) .pipe-ico { transition-delay: .1s; }
.pipeline.run .pipe-step:nth-child(2) .pipe-ico { transition-delay: 1.1s; }
.pipeline.run .pipe-step:nth-child(3) .pipe-ico { transition-delay: 2.1s; }
.pipeline.run .pipe-step:nth-child(4) .pipe-ico { transition-delay: 3.1s; }
.pipeline.run .pipe-step::after { background-size: 100% 100%, auto; }
.pipeline.run .pipe-step::before { border-color: var(--accent); }
.pipeline.run .pipe-step:nth-child(1)::after { transition-delay: .3s; }
.pipeline.run .pipe-step:nth-child(1)::before { transition-delay: 1s; }
.pipeline.run .pipe-step:nth-child(2)::after { transition-delay: 1.3s; }
.pipeline.run .pipe-step:nth-child(2)::before { transition-delay: 2s; }
.pipeline.run .pipe-step:nth-child(3)::after { transition-delay: 2.3s; }
.pipeline.run .pipe-step:nth-child(3)::before { transition-delay: 3s; }
.pipe-chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 7px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--border); font-size: 12.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease);
}
.pipe-chip .k { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); font-weight: 400; }
.pipe-chip .i { color: var(--accent); font-size: 15px; }
.pipeline.run .pipe-step .pipe-chip { opacity: 1; transform: none; }
.pipeline.run .pipe-step:nth-child(1) .pipe-chip { transition-delay: .2s; }
.pipeline.run .pipe-step:nth-child(2) .pipe-chip { transition-delay: 1.2s; }
.pipeline.run .pipe-step:nth-child(3) .pipe-chip { transition-delay: 2.2s; }
.pipeline.run .pipe-step:nth-child(4) .pipe-chip { transition-delay: 3.2s; }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 44px; }
.channel { padding: 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg); transition: transform .35s var(--ease), box-shadow .35s; }
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.channel-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sage); color: var(--accent); font-size: 19px; margin-bottom: 16px; }
.channel h3 { margin-bottom: 8px; }
.channel p { color: var(--text-muted); font-size: 15px; }
.channel b { color: var(--text); }
.js .channels .reveal:nth-child(2) { transition-delay: .1s; }
.js .channels .reveal:nth-child(3) { transition-delay: .2s; }

/* ============================================================
   SPLIT (aprende / presupuestos)
   ============================================================ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 26px; }
.split-copy p { color: var(--text-muted); max-width: 52ch; }
.split-copy p.muted { font-size: 15.5px; }

.learn-card, .budget-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  padding: 30px; box-shadow: var(--shadow); font-size: 14px;
}
.learn-card .row-t b { font-size: 15px; }
.learn-card .row-t small { font-size: 12.5px; transition: color .3s; }
.learn-card .badge { width: 40px; height: 40px; font-size: 19px; }
.learn-card .mono { font-size: 14px; }
.lc-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--rule); }
.lc-pick { position: relative; display: flex; gap: 8px; padding: 0 4px; max-height: 0; opacity: 0; transform: translateY(-6px); transition: all .4s var(--ease); }
.lc-pick.show { opacity: 1; transform: none; max-height: 120px; padding: 14px 4px 4px; }
.lc-pick .cchip { font-size: 13px; padding: 8px 14px; }
.cursor {
  position: absolute; width: 22px; height: 22px; border-radius: 999px; background: rgba(17, 17, 17, .18); border: 2px solid rgba(17, 17, 17, .5);
  left: 20px; top: 60px; opacity: 0; transition: left .8s var(--ease), top .8s var(--ease), opacity .3s, transform .15s;
}
.cursor.show { opacity: 1; }
.cursor.tap { transform: scale(.7); }
.lc-note { display: flex; align-items: center; gap: 8px; margin: 16px 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); font-size: 13.5px; opacity: 0; transition: opacity .4s; }
.lc-note.show { opacity: 1; }
.lc-note .i { font-size: 16px; }
.lc-new { opacity: 0; transform: translateY(14px); transition: all .6s var(--ease); }
.lc-new.show { opacity: 1; transform: none; }
.learned { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.lc-caption { text-align: right; margin: 0 4px 8px; font-family: var(--serif); font-style: italic; color: var(--text-faint); font-size: 15px; opacity: 0; transition: opacity .4s; }
.learn-card:has(.lc-new.show) .lc-caption { opacity: 1; }

.bc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.bc-head .ey { font-size: 11px; }
.bc-days { font-size: 12px; color: var(--text-faint); }
.bc-alert {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px;
  background: var(--danger-tint); color: var(--danger); font-size: 13.5px; font-weight: 600;
  max-height: 0; opacity: 0; overflow: hidden; transition: all .6s var(--ease);
}
.bc-alert span { flex: 1; }
.bc-alert .i { font-size: 18px; }
.bc-alert.show { max-height: 70px; opacity: 1; padding: 12px 14px; margin-bottom: 18px; }
.bc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.bc-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.bc-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bc-name .i { font-size: 17px; color: var(--text-muted); }
.bc-val { font-size: 12.5px; }
.bc-val small { color: var(--text-faint); font-weight: 400; }
.bc-track { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 99px; background: var(--surface-alt); }
.bc-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--accent); transition: background .4s; }
.bc-list li.over .bc-track i { background: var(--danger); }
.bc-list li.over .bc-val span { color: var(--danger); }
.bc-mark { position: absolute; left: 80%; top: -4px; bottom: -4px; border-left: 1.5px dashed var(--text-faint); }
.bc-push {
  position: absolute; right: -24px; top: -30px; width: 290px;
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12px;
  opacity: 0; transform: translateY(-14px) scale(.96); transition: all .6s var(--ease);
}
.bc-push.show { opacity: 1; transform: none; }

/* ============================================================
   LEAFY
   ============================================================ */

.leafy { background: var(--accent); color: var(--on-accent); border-top: 0; position: relative; overflow: hidden; }
.leafy::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -200px; top: -160px; border-radius: 999px;
  background: radial-gradient(circle, rgba(221, 232, 219, .14), transparent 65%);
}
.leafy .eyebrow { color: rgba(245, 241, 232, .6); }
.leafy h2 { color: var(--on-accent); margin-bottom: 26px; }
.leafy h2 em { color: var(--sage); }
.leafy p { color: rgba(245, 241, 232, .78); max-width: 52ch; }
.leafy-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.leafy-stage { display: flex; justify-content: center; }
.leafy .phone { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6), inset 0 0 0 1.5px #2b2a28; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; font-style: italic; }
.ticks .i { font-size: 18px; color: var(--sage); }

.leafy .screen { color: var(--text); }
.leafy .screen p { color: inherit; max-width: none; }
.an-sum { display: flex; justify-content: space-between; align-items: flex-end; padding: 12px 18px 12px; }
.an-n { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; margin: 2px 0 0; line-height: 1; }
.an-cmp { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--accent); font-weight: 600; line-height: 1.25; }
.an-cmp .i { transform: rotate(180deg); font-size: 14px; }
.rec { margin: 0 14px 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); }
.rec .ey { display: flex; align-items: center; gap: 5px; color: var(--accent); margin-bottom: 5px; }
.rec-t { font-family: var(--serif); font-size: 15.5px; line-height: 1.35; margin: 0; }
.rec-t em { color: var(--danger); font-style: italic; }
.chat { position: absolute; left: 14px; right: 14px; top: 296px; bottom: 112px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 12px; line-height: 1.4; animation: fadeUp .4s var(--ease) both; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--rule); border-bottom-left-radius: 5px; font-family: var(--serif); font-size: 14px; line-height: 1.35; }
.bubble.bot b { color: var(--accent); font-weight: 600; }
.dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--text-faint); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.sugs { position: absolute; left: 0; right: 0; bottom: 66px; display: flex; gap: 6px; padding: 0 14px; overflow: hidden; }
.sugchip { flex: none; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 10.5px; font-weight: 600; white-space: nowrap; transition: all .3s; }
.sugchip.pick { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); transform: scale(.95); }
.sugs.slide { transition: transform .5s var(--ease); }
.chat-in { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.chat-in-t { flex: 1; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-in-t.ph { color: var(--text-faint); }
.send { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-alt); color: var(--text-faint); font-size: 15px; transition: all .3s; }
.send.on { background: var(--accent); color: var(--on-accent); }
.send.press { transform: scale(.85); }

/* ============================================================
   BENTO
   ============================================================ */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-wide { grid-column: span 2; }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--text-muted); font-size: 14.5px; }
.tile-art { height: 120px; margin-bottom: 20px; border-radius: 16px; background: var(--bg); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

.fake-search { display: flex; align-items: center; gap: 10px; width: 78%; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; }
.fake-search .i { color: var(--text-muted); font-size: 18px; }
.typed-loop::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 1px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }

.art-theme { padding: 0; }
.art-theme span { flex: 1; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 44px; font-weight: 500; }
.th-l { background: var(--bg); color: var(--text); }
.th-d { background: #0E0E0D; color: #F2EFE7; }
.th-d::first-letter { color: #8FBFA4; }
.th-l::first-letter { color: var(--accent); }
.art-theme::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--accent); animation: sweep 5s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { left: 30%; } 50% { left: 70%; } }
.art-theme .th-l { flex: none; width: 50%; animation: split 5s ease-in-out infinite; }
@keyframes split { 0%, 100% { width: 30%; } 50% { width: 70%; } }

.cur-roll { display: flex; flex-direction: column; height: 44px; overflow: hidden; }
.cur-roll b { display: block; height: 44px; line-height: 44px; font-family: var(--serif); font-size: 34px; font-weight: 500; text-align: center; animation: roll 7.5s var(--ease) infinite; }
@keyframes roll { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-100%); } 66%, 92% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }

.art-xls { gap: 12px; }
.art-xls .i { font-size: 40px; color: var(--accent); animation: float 4s ease-in-out infinite; }
.art-xls .mono { font-size: 13px; color: var(--text-muted); }

.art-swipe { justify-content: flex-start; }
.sw-row, .sw-del { position: absolute; top: 50%; height: 50px; margin-top: -25px; border-radius: 14px; display: flex; align-items: center; }
.sw-del { right: 14px; width: 60px; justify-content: center; background: var(--danger); color: var(--surface); font-size: 20px; }
.sw-row { left: 14px; right: 14px; z-index: 1; justify-content: space-between; padding: 0 16px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; animation: swipe 4s var(--ease) infinite; }
.sw-row .mono { color: var(--danger); font-size: 13px; }
@keyframes swipe { 0%, 30%, 100% { transform: translateX(0); } 45%, 80% { transform: translateX(-70px); } }

.art-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 14px 18px; justify-items: center; }
.art-icons .i { font-size: 26px; color: var(--text); stroke-width: 1.5; animation: pop 6s ease-in-out infinite; }
.art-icons .i:nth-child(odd) { animation-delay: -1.5s; }
.art-icons .i:nth-child(3n) { animation-delay: -3s; }
.art-icons .i:nth-child(4n) { animation-delay: -4.5s; }
@keyframes pop { 0%, 80%, 100% { color: var(--text); transform: none; } 88% { color: var(--accent); transform: scale(1.2); } }

.js .bento .reveal:nth-child(2) { transition-delay: .08s; }
.js .bento .reveal:nth-child(3) { transition-delay: .16s; }
.js .bento .reveal:nth-child(4) { transition-delay: .08s; }
.js .bento .reveal:nth-child(5) { transition-delay: .16s; }
.js .bento .reveal:nth-child(6) { transition-delay: .24s; }

/* ============================================================
   PLATAFORMAS
   ============================================================ */

.platforms { background: var(--surface); }
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plat { display: flex; flex-direction: column; padding: 32px; border-radius: 26px; background: var(--bg); border: 1px solid var(--border); }
.plat-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); padding: 5px 11px; border-radius: 999px; margin-bottom: 20px; }
.plat h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.015em; margin-bottom: 10px; }
.plat > p { color: var(--text-muted); font-size: 15px; }
.plat ul { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; flex: 1; }
.plat li { display: flex; align-items: center; gap: 9px; }
.plat li .i { color: var(--accent); font-size: 16px; }
.plat .btn { align-self: flex-start; }
.js .plat-grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .plat-grid .reveal:nth-child(3) { transition-delay: .2s; }

/* ============================================================
   PRIVACIDAD
   ============================================================ */

.privacy h2 { margin-bottom: 50px; }
.priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-bottom: 40px; }
.priv-grid > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.priv-grid h3 { margin-bottom: 6px; }
.priv-grid p { color: var(--text-muted); font-size: 15.5px; }

/* ============================================================
   FAQ
   ============================================================ */

.faq h2 { margin-bottom: 44px; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 16px; height: 16px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0deg); }
.faq-list details p { color: var(--text-muted); padding: 0 40px 24px 0; max-width: 64ch; }
details[open] p { animation: fadeUp .45s var(--ease); }

/* ============================================================
   CTA FINAL + FOOTER
   ============================================================ */

.final { background: var(--accent); color: var(--on-accent); padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; text-align: center; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final h2 { color: var(--on-accent); font-size: clamp(44px, 7vw, 96px); margin-bottom: 18px; }
.final h2 em { color: var(--sage); }
.final p { color: rgba(245, 241, 232, .75); font-size: 19px; margin-bottom: 36px; }
.final .hero-ctas { justify-content: center; }
.final-leaf { position: absolute; width: 360px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-10deg); fill: none; stroke: var(--on-accent); stroke-width: 1.6; opacity: .08; }

.foot { padding: 40px 0 50px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; font-size: 14.5px; }
.foot nav a { color: var(--text-muted); text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.foot-note { width: 100%; font-size: 13px; color: var(--text-faint); margin: 10px 0 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .pipeline { grid-template-columns: 1fr 1fr; gap: 30px; }
  .pipe-step::after, .pipe-step::before { display: none; }
  .pipe-chip { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-grid, .formas, .split, .leafy-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-stage { min-height: 0; padding: 20px 0 10px; }
  .fc-1 { left: 0; top: 120px; }
  .fc-2 { right: 0; bottom: 80px; }
  .split.reverse .split-copy { order: 0; }
  .formas-stage { order: -1; }
  .demo-ctl { right: calc(50% - 190px); }
  .channels, .plat-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  .bc-push { right: 10px; left: 10px; width: auto; top: -50px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .phone { transform-origin: top center; }
  .float-card { display: none; }
  .forma { padding: 18px 14px; grid-template-columns: 40px 1fr; gap: 14px; }
  .forma-ico { width: 40px; height: 40px; font-size: 19px; }
  .forma-txt b { font-size: 23px; }
  .formas-stage::before { width: 320px; height: 320px; }
  .demo-ctl { right: 8px; bottom: 20px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .priv-grid, .pipeline { grid-template-columns: 1fr; }
  .pipeline { gap: 36px; padding: 28px 22px; }
  .pipe-step { padding-left: 64px; }
  .pipe-ico { position: absolute; left: 0; top: 0; }
  .pipe-n { margin-top: 0; }
  .pipe-step:not(:last-child)::after {
    display: block; top: 54px; left: 23px; right: auto; width: 2px; height: calc(100% - 54px + 30px);
    background-size: 100% 0%, auto;
  }
  .pipeline.run .pipe-step::after { background-size: 100% 100%, auto; }
  .learn-card, .budget-card { padding: 20px; }
  .lc-pick { flex-wrap: wrap; }
  .leaf-draw { width: 300px; height: 530px; }
  .foot nav { margin-left: 0; }
}

@media (max-width: 360px) {
  .phone { width: 280px; height: 584px; }
  .saldo-n { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
