/* reposta landing (issue 0111) — Diseño aprobado: canvas
 * https://claude.ai/artifact/DShWXNhiWev2RhDtP4ByAE, tableros "Elegida · B
 * con el dato de C" (móvil) y "Elegida · escritorio", más "Común ·
 * secciones bajo el inicio". Plain HTML/CSS, no build, no framework — the
 * one script is the hero scene (issue 0112, ADR-0020; `.hero`/`.scene`
 * below), and the page is whole without it. Colour
 * tokens copied from web/static/app.css's dark theme (not shared — the
 * landing must not depend on the app, nor the app on it). Night only: the
 * mockup is fixed dark, no light variant.
 *
 * One `index.html` is the B mobile layout on phones and the Escritorio
 * layout at the --desktop breakpoint (CSS only, no JS): the shared lower
 * sections (trust line, diferenciadores, cómo funciona, FAQ + quién la
 * hace, footer) reflow with flexbox/grid. Since 0112 the hero (headline +
 * scene with its maths) leads, and the "top" band below it is the captura
 * of the same search then la beta — stacked on mobile, side by side on
 * desktop. */

:root {
  --bg: #0e1116;
  --surface: #161b21;
  --line: #2a313b;
  --ink: #e6eaee;
  --ink-dim: #96a1af;
  --road: #4c8bff;
  --road-ink: #0b1220;

  --sign-bg: #14171c;
  --sign-line: #2b313a;
  --sign-dim: #b0aca0;
  --sign-glow: #ffb02e;
  --sign-save: #63d69c;
  --sign-note: #8a929c;

  /* app.css dark price tiers (issue 0112's scene) */
  --price-mid: #d59433;
  --price-high: #ec5f5b;
  --price-low-dim: #4a9f74; /* a step below --sign-save, which only the winner wears */

  --kofi: #13c3ff;
  --kofi-ink: #14171c;

  --radius: 12px;
  --radius-sm: 9px;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Menlo", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --desktop: 860px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- header ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand--link { text-decoration: none; }

.bar__open {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.bar__open:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  display: none;
  align-items: center;
  min-height: 44px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }
.nav a.nav__open { display: flex; color: var(--ink-dim); }

/* ---------- main shell ---------- */

main { padding: 0 0 8px; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

h2 { margin: 0; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sign-glow);
}

.sub {
  color: var(--ink-dim);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
.sub--long { display: none; }

/* ---------- hero: headline + the scene (issue 0112) ---------- */

.hero { position: relative; }
.hero__text {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 0;
}
.hero .eyebrow { color: var(--ink-dim); } /* amber is the headline's second sentence only */
.hero__stop { display: block; color: var(--sign-glow); }

/* The scene: poster + written maths in the HTML; hero.js lays a canvas and
   the pinned labels over it (.is-live) and plays the maths line by line. */
.scene {
  position: relative;
  margin: 18px 0 0;
  height: max(580px, 76svh);
  overflow: hidden;
  background: var(--bg);
}
.scene__poster, .scene__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scene__poster { object-fit: cover; }
.scene .fx { transition: opacity .22s ease-out, translate .22s ease-out; }
.scene.is-live .fx:not(.on) { opacity: 0; translate: 0 6px; }

.scene__chips, .calc, .scene__src { position: absolute; z-index: 2; }
.scene__chips { top: 8px; left: 20px; right: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip span { color: var(--ink-dim); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.chip--reach { border-color: #4a5f86; }

.tag { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; }
.km { font: 600 0.7rem var(--mono); color: #b9cdf5; white-space: nowrap; }
.price {
  font: 700 0.72rem var(--mono);
  padding: 2px 5px;
  border-radius: 5px;
  background: rgb(14 17 22 / 0.86);
  border: 1px solid currentColor;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .18s;
}
.price.on, .win.on { opacity: 1; }
.t-low { color: var(--price-low-dim); }
.t-mid { color: var(--price-mid); }
.t-high { color: var(--price-high); }
.win {
  padding: 5px 9px 6px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--sign-save);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  box-shadow: 0 0 22px rgb(99 214 156 / 0.3);
}
.win small { display: block; font: 700 0.62rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sign-save); }
.win b { font: 700 1.05rem var(--mono); color: var(--sign-save); }
.win em { font-style: normal; font-size: 0.72rem; color: var(--ink-dim); font-weight: 500; }

.calc {
  left: 20px;
  right: 20px;
  bottom: 52px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgb(22 27 33 / 0.94);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}
.calc__head { margin: 0 0 8px; font-size: 0.78rem; color: var(--ink-dim); }
.calc__head b, .calc__win { color: var(--sign-save); font-weight: 700; }
.calc__row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-block: 3px; }
.calc__row > span { color: var(--ink-dim); }
.calc__row > b { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.calc__row--total { margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--line); align-items: baseline; }
.calc__row--total > span { color: var(--ink); font-weight: 600; }
.calc__row--total > b { color: var(--sign-save); font-size: 1.3rem; }
.calc__row--total small { font: 500 0.75rem var(--sans); color: var(--ink-dim); margin-left: 4px; }
.scene__src { left: 20px; right: 20px; bottom: 10px; margin: 0; font-size: 0.7rem; line-height: 1.4; color: var(--sign-note); }

/* ---------- top band: the captura of the same search, then la beta ---------- */

.top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 0 0 36px;
}

.capture {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.capture__frame {
  width: 100%;
  max-width: 290px;
  border-radius: 44px;
  background: #05070a;
  border: 1px solid var(--line);
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 60px rgba(76, 139, 255, .12);
}
.capture__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}
.capture__cap {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sign-note);
}

/* ---------- la beta ---------- */

.beta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.beta h2 { font-size: 1.35rem; }
.beta__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sign-glow);
  border: 1px solid #5a4520;
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 8px;
}
.beta__intro p {
  margin: 4px 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.45;
}

.beta__qr { display: none; }

.beta__buttons--desktop { display: none; }
.beta__buttons--mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  padding: 8px 14px;
}
.tile span { font-size: 0.75rem; font-weight: 600; }
.tile b { font-size: 1.05rem; }

.beta__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.beta__note a { color: var(--road); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
.btn--primary, .tile--primary { background: var(--road); color: var(--road-ink); }
.beta__browser {
  text-align: center;
  font-size: 0.85rem;
  color: var(--road);
  text-decoration: none;
}

/* ---------- Android · pedir plaza (issue 0123) — native <details>, no JS ---------- */

.beta__android {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #12161b;
}
.beta__android[open] { border-color: var(--road); }
.beta__android summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding: 8px 16px;
}
.beta__android summary::-webkit-details-marker { display: none; }
.beta__android-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.beta__android-label > span { font-size: 0.75rem; color: var(--ink-dim); }
.beta__android-label > b { font-size: 1.05rem; }
.beta__chevron {
  flex: none;
  color: var(--road);
  transition: transform 0.18s ease-out;
}
.beta__android[open] .beta__chevron { transform: rotate(180deg); }

.beta__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}
.beta__form label { font-size: 0.85rem; font-weight: 600; }
.beta__form input[type="email"] {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  padding: 0 14px;
}
.beta__form button {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.beta__legal {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.beta__legal a { color: var(--road); }

/* The honeypot: visually and from focus/AT off-screen, never `display:none` —
   present in the DOM for a bot reading raw HTML to fill, invisible to a
   person using the real form. */
.beta__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- trust line ---------- */

.trust {
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
  padding: 0;
}
.trust a { color: var(--road); }
.trust__extra { display: none; }

/* ---------- por qué reposta (diferenciadores) ---------- */

.dif { margin: 0 0 36px; }
.dif h2 { font-size: 1.3rem; margin: 0 0 18px; }

.dif__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dif__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dif__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dif__icon svg { width: 22px; height: 22px; }
.dif__list h3 { margin: 0; font-size: 1.05rem; }
.dif__list p { margin: 4px 0 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.45; }

/* ---------- cómo funciona ---------- */

.como { margin: 0 0 36px; }
.como h2 { font-size: 1.1rem; margin: 0 0 16px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps__n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--sign-glow);
  color: var(--sign-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.steps p { margin: 2px 0 0; color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- FAQ + quién la hace ---------- */

.faq-quien { display: flex; flex-wrap: wrap; gap: 32px; margin: 0 0 8px; }

.faq { flex: 999 1 380px; min-width: 0; }
.faq h2 { font-size: 1.3rem; margin: 0 0 14px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 10px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 24px;
}
.faq summary::marker { color: var(--ink-dim); }
.faq details p {
  margin: 10px 0 0;
  color: var(--ink-dim);
  line-height: 1.45;
}
.faq details p a { color: var(--road); }

.quien {
  flex: 1 1 260px;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quien h2 { font-size: 1.1rem; }
.quien p { margin: 0; color: var(--ink-dim); line-height: 1.5; }
.quien__link, .quien__mail {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.quien__link {
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink);
}
.quien__mail { color: var(--road); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 20px 40px;
}

.foot--home { max-width: 560px; margin: 32px auto 0; }

.kofi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--kofi);
  color: var(--kofi-ink);
  text-decoration: none;
  font-weight: 600;
}

.foot__priv {
  color: var(--ink-dim);
  font-size: 0.85rem;
  text-decoration: none;
}
.foot__priv:hover { color: var(--ink); }

.foot__links {
  margin: 0;
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}
.foot__links a { color: var(--ink-dim); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }

.foot__legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--sign-note);
  text-align: center;
  line-height: 1.5;
}

/* ---------- /privacidad, /prensa — same shell, left-aligned prose ---------- */
.doc { max-width: 560px; margin: 0 auto; padding: 28px 20px 8px; text-align: left; }
.doc h1 { font-size: 1.6rem; margin: 8px 0 6px; }
.doc h2 { font-size: 1.05rem; margin: 28px 0 8px; text-align: left; }
.doc p, .doc li { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }
.doc ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.doc b { color: var(--ink); }
.doc a { color: var(--road); }

/* ---------- /beta-gracias — standalone confirmation, no hero.js (issue 0123) ---------- */
.gracias {
  max-width: 420px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.gracias__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #13261d;
  border: 1px solid #2b8a5a;
  color: var(--sign-save);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gracias h1 { margin: 0; font-size: 1.75rem; }
.gracias p { margin: 0; color: var(--ink-dim); font-size: 1rem; line-height: 1.5; max-width: 300px; }
.gracias__cta { margin-top: 6px; width: 100%; max-width: 280px; }
.gracias__back {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-dim);
  text-decoration: none;
}
.gracias__back:hover { color: var(--ink); }

/* ---------- desktop ---------- */

@media (min-width: 860px) {
  .home .bar, .wrap, .foot--home { max-width: 1120px; padding-left: 24px; padding-right: 24px; }

  .nav a { display: flex; }

  h1 { font-size: 3.1rem; }
  .eyebrow { font-size: 0.85rem; }

  .sub--short { display: none; }
  .sub--long { display: block; font-size: 1.15rem; max-width: 30em; }

  /* Full-bleed scene under the headline; hero.js slides the trip right of it. */
  .hero { display: flex; align-items: center; min-height: clamp(640px, calc(100svh - 64px), 900px); }
  .hero__text { width: 100%; max-width: 1120px; padding: 0 24px 6vh; }
  .hero__text .sub { max-width: 26em; }
  .scene { position: absolute; inset: 0; height: auto; margin: 0; }
  /* Chips and maths line up with the page's 1120 px column, not the screen edge. */
  .scene__chips, .calc, .scene__src { left: auto; right: max(24px, calc((100% - 1120px) / 2 + 24px)); }
  .scene__chips { top: 20px; justify-content: flex-end; }
  .chip { font-size: 0.86rem; padding: 7px 12px; }
  .calc { bottom: 60px; width: 360px; font-size: 0.9rem; }
  .scene__src { bottom: 26px; font-size: 0.74rem; }
  .price { font-size: 0.76rem; }

  /* Captura left, la beta right: first shown, then offered. Pinned to the
     top of the row, not centered (issue 0123) — the "Android · pedir plaza"
     `<details>` grows this row when opened, and `align-items: center` would
     recentre — and so visibly shift — the captura every time it does. */
  .top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 40px 72px;
    margin: 64px 0 56px;
  }
  .capture__frame { max-width: 320px; }

  .beta {
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
  }
  .beta__intro { flex: 1 1 320px; min-width: 0; }
  .beta h2 { font-size: 2rem; }
  .beta__intro p { font-size: 1.1rem; }

  .beta__actions {
    flex: 999 1 560px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 24px;
  }

  .beta__qr {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
  }
  .beta__qr img { border-radius: 8px; background: var(--ink); }
  .beta__qr-text { display: flex; flex-direction: column; gap: 6px; max-width: 13em; }
  .beta__qr-text span { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.4; }

  .beta__buttons--mobile { display: none; }
  .beta__buttons--desktop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
  }

  .trust {
    justify-content: center;
    font-size: 0.95rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    margin: 0 0 72px;
  }
  .trust__extra { display: inline; }

  .dif { margin: 0 0 80px; }
  .dif h2 { font-size: 2rem; margin: 0 0 28px; }
  .dif__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
  }
  .dif__list li {
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
  }
  .dif__icon { margin: 0 0 12px; }
  .dif__list h3 { font-size: 1.1rem; }

  .como { max-width: 640px; margin: 0 0 80px; }
  .como h2 { font-size: 1.3rem; }

  .faq-quien { margin: 0 0 80px; flex-wrap: nowrap; }
  .faq h2 { font-size: 2rem; }
  .quien { flex: 1 1 300px; }

  .foot--home {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 24px 24px 40px;
    gap: 16px;
  }
  .foot__legal { order: 2; flex: 1 1 320px; max-width: 34em; text-align: left; }
  .foot__links { order: 3; }
}
