/* LLupay · landing. Colores tomados de Llupay-design/tokens.css (claro y oscuro). Sin dependencias ni fuentes externas:
   se usa la fuente del sistema, igual que la app (Roboto en Android). */
:root {
  --primary: #0F766E;
  --on-primary: #FFFFFF;
  --primary-dark: #0B5A54;
  --primary-soft: #E0F2EF;
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-muted: #5B6270;
  --border: #E5DED3;
  --segment-bg: #EFE9E1;
  --income: #2E7D32;
  --income-soft: #DCFCE7;
  --expense: #C62828;
  --expense-soft: #FEE2E2;
  --band: #FFFFFF;
  --final-bg: #0B5A54;
  --final-text: #FFFFFF;
  --final-muted: #CDE9E4;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --phone-shadow: 0 24px 48px rgba(31, 41, 55, 0.14);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2EC4B0;
    --on-primary: #04211D;
    --primary-dark: #7FE0D2;
    --primary-soft: #133430;
    --bg: #151311;
    --card: #201D1A;
    --text: #F2EEE8;
    --text-muted: #B3ABA0;
    --border: #36312C;
    --segment-bg: #2B2723;
    --income: #4ADE80;
    --income-soft: #10301D;
    --expense: #F87171;
    --expense-soft: #3A1818;
    --band: #1B1916;
    --final-bg: #133430;
    --final-text: #F2EEE8;
    --final-muted: #B3ABA0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --phone-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
section[id] { scroll-margin-top: 80px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 10; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand__logo { display: block; height: 32px; width: auto; }
.nav { display: none; gap: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: color 300ms var(--ease); }
.nav a:hover { color: var(--primary); }
@media (min-width: 640px) { .nav { display: flex; } }

/* Botones */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: transform 300ms var(--ease), background-color 300ms var(--ease); }
.btn:active { transform: translateY(1px); }
@media (max-width: 479px) { .cta-row .btn { flex: 1 1 100%; } }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { color: var(--primary); border: 1px solid var(--border); background: var(--card); }
.btn--ghost:hover { background: var(--primary-soft); }
/* «Muy pronto»: aviso, no botón. Sin cursor de mano ni hover para que no parezca un enlace roto. */
.btn--soon { background: var(--primary-soft); color: var(--primary-dark); border: 1px dashed var(--primary); cursor: default; }
.btn--on-dark { background: transparent; color: var(--final-text); border-color: var(--final-muted); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; max-width: 680px; }
.lead { margin-top: 24px; font-size: 1.125rem; line-height: 1.75rem; color: var(--text-muted); max-width: 680px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; color: var(--text-muted); font-size: 0.875rem; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--income); }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; }
  .hero h1 { font-size: 3rem; line-height: 1.1; }
}

/* Marco de teléfono para las capturas reales */
.phone { margin: 0 auto; width: min(100%, 300px); padding: 8px; border-radius: 40px; background: #1F2937; box-shadow: var(--phone-shadow); }
.phone img { border-radius: 32px; background: var(--bg); }
.hero__phone { width: min(100%, 320px); }

/* Secciones */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section__head { margin-bottom: 48px; }
.section h2, .band h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
@media (min-width: 900px) { .section h2, .band h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.band { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 64px 0; }
.band p { margin-top: 16px; font-size: 1.125rem; line-height: 1.75rem; color: var(--text-muted); }

.feature { display: grid; gap: 32px; align-items: center; padding: 32px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin-top: 16px; }
.feature p { margin-top: 12px; color: var(--text-muted); font-size: 1.125rem; line-height: 1.75rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr 1fr; gap: 64px; padding: 48px 0; }
  .feature--flip .feature__text { order: 2; }
}
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--income { background: var(--income-soft); color: var(--income); }
.icon--expense { background: var(--expense-soft); color: var(--expense); }
.icon--brand { background: var(--primary-soft); color: var(--primary); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; margin-top: 16px; }
.card p { margin-top: 8px; color: var(--text-muted); font-size: 1rem; line-height: 1.5rem; }
.steps, .trust { display: grid; gap: 16px; }
.trust { margin-top: 48px; }
@media (min-width: 768px) { .steps, .trust { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; }

/* Frase destacada: las palabras pasan de tenues a color pleno al entrar en pantalla (main.js). */
.tagline { padding: 80px 0; }
.tagline__text { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; max-width: 680px; text-wrap: balance; }
@media (max-width: 899px) { .tagline__text br { display: none; } }
@media (min-width: 900px) { .tagline { padding: 96px 0; } .tagline__text { font-size: 3.75rem; line-height: 1.05; } }
.tagline__text .w { opacity: 0.3; transition: opacity 800ms var(--ease); }
.tagline__text .w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tagline__text .w { opacity: 1; transition: none; } }

/* Preguntas */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border: solid var(--text-muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 16px 16px; color: var(--text-muted); }

/* CTA final */
.final { background: var(--final-bg); color: var(--final-text); padding: 80px 0; }
.final h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
.final p { margin-top: 16px; color: var(--final-muted); font-size: 1.125rem; line-height: 1.75rem; }

/* Pie */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.foot__row { display: grid; gap: 24px; margin-bottom: 24px; }
.foot__row p { margin-top: 12px; max-width: 420px; }
.foot__links { display: grid; gap: 12px; }
@media (min-width: 768px) { .foot__row { grid-template-columns: 1fr auto; align-items: start; } .foot__links { justify-items: end; } }

/* Páginas legales (politica-de-privacidad/, terminos-del-servicio/) */
.nav a[aria-current="page"] { color: var(--primary); }
.foot__links a[aria-current="page"] { font-weight: 700; }
.doc { padding: 32px 0 80px; }
.crumbs { font-size: 0.875rem; color: var(--text-muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.doc__head { margin-top: 16px; }
.doc__head h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.doc__meta { margin-top: 12px; font-size: 0.875rem; color: var(--text-muted); }
.notice { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--primary); color: var(--text); }
.doc section, .toc { margin-top: 40px; }
.doc section[id] { scroll-margin-top: 80px; }
.doc h2 { font-size: 1.375rem; line-height: 1.875rem; font-weight: 700; }
.doc section p, .doc section li { color: var(--text); line-height: 1.625; }
.doc section > p, .doc section > ul, .doc section > ol, .doc .table-wrap { margin-top: 12px; }
.doc .bullets, .doc .steps-list { padding-left: 1.25rem; display: grid; gap: 8px; }
.doc .bullets { list-style: disc; }
.doc .steps-list { list-style: decimal; }
.doc code { font-size: 0.875em; padding: 1px 6px; border-radius: 6px; background: var(--segment-bg); }
.summary { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.summary .bullets { margin-top: 12px; }
.toc ol { margin-top: 12px; padding-left: 1.5rem; list-style: decimal; display: grid; gap: 6px; color: var(--text-muted); }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 768px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc th, .doc td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.5; }
.doc thead th { background: var(--segment-bg); font-weight: 700; }
.doc tbody th { font-weight: 600; min-width: 160px; }
.doc tbody tr:last-child th, .doc tbody tr:last-child td { border-bottom: 0; }
.doc__back { margin-top: 48px; }
@media (max-width: 599px) {
  .doc__head h1 { font-size: 1.875rem; line-height: 2.25rem; }
  .doc table { font-size: 0.875rem; }
  .doc th, .doc td { padding: 10px; }
  .doc tbody th { min-width: 0; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-top: 16px; }
.notfound p { margin-top: 16px; color: var(--text-muted); }
.notfound .notfound__code { margin: 32px 0 0; color: var(--primary); }
.notfound .notfound__links { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 0.875rem; }
