/* Mirau — web. Un solo archivo para la portada y los documentos legales.
   Sin frameworks ni dependencias. Claro siempre: la marca vive mejor en blanco. */

:root {
  --purple: #6c63ff;
  --purple2: #9b7dff;
  --purple-soft: #f0eeff;
  --gold: #fbbf24;
  --green: #17b26a;
  --green-soft: #e6f7ef;
  --pink: #ff6b9d;
  --blue: #3b9eff;

  --bg: #ffffff;
  --surface: #f7f7fb;
  --card: #ffffff;
  --ink: #12121c;
  --text2: #55556e;
  --text3: #8a8aa3;
  --line: #e8e8f1;
  --line2: #f0f0f6;
  --shadow-sm: 0 4px 16px -6px rgba(18, 18, 28, 0.12);
  --shadow: 0 24px 60px -28px rgba(18, 18, 28, 0.3);
  --shadow-lg: 0 40px 90px -30px rgba(70, 60, 180, 0.42);

  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); }
img { max-width: 100%; }

h1, h2, h3 {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 22px; }
.center { text-align: center; }
.center h2, .center p.intro { margin-inline: auto; }

/* ---------- Barra ---------- */

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px; position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  max-width: none;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav > .inner { max-width: var(--wrap); margin: 0 auto; padding-inline: 22px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav img { height: 28px; width: auto; display: block; }
.nav .right { display: flex; align-items: center; gap: 22px; }
.nav a.link { color: var(--text2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a.link:hover { color: var(--ink); }
@media (max-width: 720px) { .nav .right .hide-sm { display: none; } }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 99px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 28px -10px rgba(108, 99, 255, 0.75); }
.btn-primary:hover { background: #5b52f0; box-shadow: 0 18px 34px -12px rgba(108, 99, 255, 0.85); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text3); }
.btn-light { background: #fff; color: #12121c; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Secciones ---------- */

.section { padding-block: 96px; }
.section.tight { padding-block: 64px; }
.section h2 { font-size: clamp(30px, 4.2vw, 46px); max-width: 17em; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 14px;
}
p.intro { color: var(--text2); max-width: 40em; font-size: 18px; margin: 0; }
.head { margin-bottom: 52px; }

/* ---------- Portada ---------- */

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 48px 92px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text2); background: var(--surface); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 99px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--gold); }

.hero h1 { font-size: clamp(36px, 4.4vw, 56px); }
.hero h1 .muted { color: var(--text3); }
.hero p.lead { font-size: 19px; color: var(--text2); max-width: 33em; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 20px; font-size: 14px; color: var(--text3); }

/* Maqueta dibujada en CSS: siempre igual a la app y nítida en cualquier pantalla. */
.stage { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative; width: 282px; flex: none;
  background: #0b0a10; border-radius: 46px; padding: 9px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.screen { border-radius: 38px; overflow: hidden; background: #fff; color: #12121c; padding: 16px 18px 20px; }
.notch { width: 90px; height: 5px; border-radius: 99px; background: #e4e4ee; margin: 2px auto 16px; }
.screen .cap { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8aa3; }
.screen .amount {
  font-family: 'Outfit', system-ui, sans-serif; font-size: 46px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin: 4px 0 2px; color: var(--purple);
  font-variant-numeric: tabular-nums;
}
.screen .sub { font-size: 13px; color: #55556e; }
.screen .bar { height: 7px; border-radius: 99px; background: #eeeef6; margin: 16px 0 18px; overflow: hidden; }
.screen .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--purple2)); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.in .screen .bar i, .stage.in .bar i { width: 62%; }
.screen .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); font-size: 13px; }
.screen .row .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; flex: none; }
.screen .row .nm { flex: 1; min-width: 0; }
.screen .row .nm b { display: block; font-weight: 700; }
.screen .row .nm span { color: #8a8aa3; font-size: 11.5px; }
.screen .row .val { font-weight: 800; }
.screen .ask { margin-top: 16px; background: #12121c; color: #fff; text-align: center; border-radius: 99px; padding: 11px; font-weight: 800; font-size: 14px; }

/* Tarjetas flotantes, con un vaivén lento para que la portada respire. */
.float {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 11px 14px; box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.35; width: 178px; z-index: 2;
}
.float b { display: block; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text3); margin-bottom: 3px; font-weight: 800; }
.float.one { top: 7%; left: -10%; animation: flota 7s ease-in-out infinite; }
.float.two { bottom: 11%; right: -10%; animation: flota 7s ease-in-out infinite 3.5s; }
.float .mic { color: var(--purple); font-weight: 700; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 1080px) { .float { width: 158px; } }
@media (max-width: 560px) { .float { display: none; } }

/* Cursor que escribe la frase del micrófono. */
.typed::after {
  content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px;
  background: var(--purple); vertical-align: -2px; animation: parpadeo 1s step-end infinite;
}
@keyframes parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Formas de registrar ---------- */

.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.way {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.way .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--purple); }
.way h3 { font-size: 22px; margin: 0 0 6px; }
.way p { margin: 0; color: var(--text2); font-size: 15.5px; }
.way .demo {
  background: var(--surface); border-radius: 16px; padding: 18px; min-height: 124px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden;
}

/* Onda del micrófono */
.wave { display: flex; align-items: center; gap: 4px; height: 34px; }
.wave i { width: 4px; border-radius: 99px; background: var(--purple); height: 30%; animation: onda 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { background: var(--purple2); }
@keyframes onda { 0%, 100% { height: 22%; } 50% { height: 96%; } }

/* Factura escaneándose */
.receipt { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.receipt span { display: block; height: 6px; border-radius: 99px; background: #e9e9f2; margin-bottom: 7px; }
.receipt span:nth-child(1) { width: 58%; }
.receipt span:nth-child(2) { width: 88%; }
.receipt span:nth-child(3) { width: 72%; }
.receipt span:nth-child(4) { width: 40%; margin-bottom: 0; background: var(--purple); opacity: 0.45; }
.receipt .scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--purple), transparent); animation: escanea 2.6s ease-in-out infinite; }
@keyframes escanea { 0%, 100% { top: 8%; } 50% { top: 88%; } }

/* Burbuja de WhatsApp */
.bubble { align-self: flex-end; background: #d9fdd3; color: #111b21; border-radius: 14px 14px 4px 14px; padding: 9px 13px; font-size: 13.5px; max-width: 86%; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }

/* Notificación del banco */
.notif { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.notif b { display: block; font-size: 11.5px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.arrowdown { text-align: center; color: var(--purple); font-weight: 800; font-size: 15px; line-height: 1; }

/* ---------- Filas alternadas ---------- */

.rowfeat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 44px; }
.rowfeat.flip > .txt { order: 2; }
.rowfeat h3 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.rowfeat p { color: var(--text2); font-size: 17px; margin: 0 0 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text2); font-size: 15.5px; }
.ticks li .chk { color: var(--green); font-weight: 800; flex: none; }
.ticks li b { color: var(--ink); font-weight: 700; }

.panel { background: var(--surface); border-radius: 26px; padding: 30px; }
.panel.plain { background: var(--card); border: 1px solid var(--line); }

/* Tarjetita de nivel */
.level { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.level .top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.level .avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(150deg, var(--purple), var(--purple2)); display: grid; place-items: center; font-size: 26px; flex: none; }
.level .top b { display: block; font-size: 17px; font-family: 'Outfit', sans-serif; }
.level .top span { color: var(--text3); font-size: 13px; }
.xp { height: 9px; border-radius: 99px; background: #eeeef6; overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--gold)); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.in .xp i { width: 74%; }
.streak { display: flex; gap: 6px; margin-top: 16px; }
.streak i { flex: 1; height: 30px; border-radius: 8px; background: var(--purple-soft); display: grid; place-items: center; font-size: 12px; font-style: normal; color: var(--purple); font-weight: 800; }
.streak i.off { background: var(--surface); color: var(--text3); }

/* Reparto de pareja */
.split { display: grid; gap: 12px; }
.splitrow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); font-size: 14px; }
.splitrow .who { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; flex: none; }
.splitrow .nm { flex: 1; font-weight: 700; }
.owes { background: var(--green-soft); color: #0d7a4a; border-radius: 14px; padding: 14px; text-align: center; font-weight: 800; font-size: 15px; }

/* ---------- Países ---------- */

.flags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.flagchip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; color: var(--text2);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.flagchip:hover { transform: translateY(-3px); border-color: var(--purple); color: var(--ink); }
.flagchip .f { font-size: 17px; line-height: 1; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: 18px; overflow: hidden; margin-top: 44px; }
.fact { background: var(--bg); padding: 26px 24px; transition: background 0.2s ease; }
.fact:hover { background: var(--surface); }
.fact h3 { font-size: 17px; margin-bottom: 7px; letter-spacing: -0.02em; }
.fact p { margin: 0; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
.fact .tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); display: block; margin-bottom: 9px; }

/* ---------- Rejilla de funciones ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; margin-bottom: 15px; background: var(--surface); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--text2); margin: 0; font-size: 14.5px; }

/* ---------- Llamado final ---------- */

.cta {
  background:
    radial-gradient(90% 110% at 50% 118%, rgba(108, 99, 255, 0.62), transparent 62%),
    #13121b;
  color: #fff; border-radius: 32px; padding: 72px 36px; text-align: center; margin-bottom: 88px;
}
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); margin-inline: auto; }
.cta p { color: #bdbbd0; max-width: 34em; margin: 0 auto 30px; font-size: 17px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .small { margin-top: 24px; font-size: 13.5px; color: #85839c; }

/* ---------- Pie ---------- */

footer { border-top: 1px solid var(--line); padding-block: 34px 48px; color: var(--text3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Aparición al bajar ----------
   La clase `js` la pone el propio documento. Sin JavaScript no se esconde nada. */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wave i, .receipt .scan, .float.one, .float.two, .typed::after { animation: none !important; }
}

/* ---------- Documentos legales ---------- */

.doc { max-width: 760px; margin: 0 auto; padding-block: 24px 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 2em; }
.doc h3 { font-size: 17px; margin-top: 1.5em; }
.doc .meta { color: var(--text3); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.draft { background: #fff7e0; border: 1px solid #f5d27a; color: #7a5200; border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 24px; }
.ph { background: #fff1a8; color: #3a2d00; padding: 0 4px; border-radius: 4px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; }
.toc ol { margin: 0; padding-left: 20px; }

/* ---------- Pantallas pequeñas ---------- */

@media (max-width: 560px) {
  .hero .actions .btn, .cta .actions .btn { width: 100%; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 24px 60px; }
  .ways, .grid, .facts, .rowfeat { grid-template-columns: 1fr; }
  .rowfeat { gap: 32px; padding-block: 28px; }
  .rowfeat.flip > .txt { order: 0; }
  .facts { gap: 1px; }
  .section { padding-block: 64px; }
  .cta { padding: 52px 24px; border-radius: 24px; }
  .panel { padding: 22px; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .facts, .grid { grid-template-columns: repeat(2, 1fr); }
}
