/* ==========================================================================
   Gastaverso · landing y páginas legales
   Mobile-first: los estilos base son para móvil; los @media añaden pantallas grandes.
   Marca: azul #1D3C9E · azul claro #93C5FD · navy #0B1F4D · tipografía Sora
   ========================================================================== */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/sora-latin-var.woff2") format("woff2");
}

:root {
  --blue: #1D3C9E;
  --sky: #93C5FD;
  --navy: #0B1F4D;
  --ice: #DBEAFE;
  --ice-2: #BFDBFE;
  --mist: #F3F6FC;
  --line: #DCE4F2;
  --line-2: #B8C6E4;
  --slate-7: #334155;
  --slate-6: #475569;
  --slate-5: #64748B;
  --maxw: 1120px;
}

*, *::before, *::after { 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;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible, .legal-top :focus-visible, .footer :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: #fff; color: var(--blue); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

/* ---------- Cabecera (barra superior) ---------- */
.hero, .legal-top { background: var(--blue); color: #fff; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding: 20px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font-size: 22px; letter-spacing: -0.4px;
}
.brand svg { width: 40px; height: 40px; flex: none; }
.wordmark span { font-weight: 500; }
.wordmark b { font-weight: 700; }

.btn-outline {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--sky); border-radius: 999px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero-grid { display: flex; flex-direction: column; gap: 40px; padding: 24px 0 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 1px; color: var(--sky); }
h1 {
  margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3rem);
}
.lead { margin: 0; max-width: 520px; font-size: 1rem; line-height: 1.6; color: var(--ice); }
.fine { margin: 0; font-size: 13px; color: var(--ice-2); }

@media (min-width: 600px) { .lead { font-size: 1.125rem; } }
@media (min-width: 900px) {
  .topbar { padding: 24px 0; }
  .hero-grid { flex-direction: row; align-items: center; gap: 56px; padding: 56px 0 88px; }
  .hero-copy { flex: 1 1 420px; gap: 24px; }
}

/* ---------- Formulario de lista de espera ---------- */
.wl { width: 100%; max-width: 520px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 12px; }

.wl-input {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 18px;
  border: 1px solid var(--sky); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; color: var(--navy);
}
.wl-input::placeholder { color: var(--slate-5); opacity: 1; }
.wl-input[aria-invalid="true"] { border-color: #DC2626; box-shadow: 0 0 0 2px #FCA5A5; }

.wl-btn {
  flex: 1 1 100%; height: 52px; padding: 0 24px; border: 0; border-radius: 14px;
  background: #fff; color: var(--blue); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.wl-btn:hover { background: var(--ice); }
.wl-btn:disabled { opacity: 0.7; cursor: progress; }
@media (min-width: 520px) { .wl-btn { flex: 0 0 auto; } }

.wl-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: 13px; line-height: 1.55; text-align: left; }
.wl-consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #fff; cursor: pointer; }
.wl-consent label { color: var(--ice); cursor: pointer; padding: 2px 0; }
.wl-consent a { color: #fff; text-underline-offset: 3px; }
.wl-consent input[aria-invalid="true"] { outline: 2px solid #FCA5A5; outline-offset: 2px; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wl-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; text-align: left; }
.wl-msg:empty { display: none; }
.wl-msg[data-state="error"] { background: #FEE2E2; color: #7F1D1D; border: 1px solid #FCA5A5; }
.wl-msg[data-state="info"] { background: var(--ice); color: var(--navy); border: 1px solid var(--ice-2); }

.wl-done {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(147, 197, 253, 0.55); color: #fff;
}
.wl-done:focus { outline: 3px solid #fff; outline-offset: 2px; }
.wl-done-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--blue);
  display: grid; place-items: center;
}
.wl-done-icon svg { width: 20px; height: 20px; }
.wl-done-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.wl-done-text { margin: 0; font-size: 15px; line-height: 1.55; }
.is-done .wl-fields, .is-done .wl-msg { display: none; }

/* Variante clara (sección final) */
.wl--light .wl-input { border-color: var(--line-2); }
.wl--light .wl-input:focus-visible { outline-color: var(--blue); }
.wl--light .wl-btn { background: var(--blue); color: #fff; }
.wl--light .wl-btn:hover { background: #17307F; }
.wl--light .wl-consent input { accent-color: var(--blue); }
.wl--light .wl-consent label { color: var(--slate-7); }
.wl--light .wl-consent a { color: var(--blue); }
.wl--light .wl-done { background: #fff; border-color: var(--line); color: var(--navy); }
.wl--light .wl-done:focus { outline-color: var(--blue); }
.wl--light .wl-done-icon { background: var(--blue); color: #fff; }

.noscript { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ice); color: var(--navy); font-size: 14px; }

/* ---------- Móvil de ejemplo ---------- */
.phone-wrap { width: 100%; max-width: 320px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 900px) { .phone-wrap { flex: 0 0 320px; margin: 0; } }

.phone {
  position: relative; width: 100%; height: 720px; overflow: hidden;
  border: 8px solid var(--navy); border-radius: 44px;
  background: #F3F6FB; color: #0F172A; text-align: left;
}
.phone::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 246, 251, 0), #F3F6FB);
}
.phone-top {
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: #fff; border-bottom: 1px solid #DDE6F3;
}
.phone-top b { font-size: 15px; font-weight: 700; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #1E5BCC; color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.seg { display: flex; height: 38px; border: 1px solid #DDE6F3; border-radius: 12px; overflow: hidden; background: #fff; }
.seg span { flex: 1; display: grid; place-items: center; font-size: 13px; }
.seg .on { background: #1E5BCC; color: #fff; font-weight: 500; }

.month { display: flex; align-items: center; gap: 10px; }
.month-btn {
  width: 40px; height: 36px; border: 1px solid #DDE6F3; border-radius: 10px; background: #fff;
  display: grid; place-items: center;
}
.month-btn svg { width: 10px; height: 10px; }
.month-label { flex: 1; text-align: center; font-size: 14px; font-weight: 700; }

.mcard { background: #fff; border: 1px solid #DDE6F3; border-radius: 16px; padding: 14px; }
.mcard-total { display: flex; flex-direction: column; gap: 4px; }
.m-label { font-size: 12px; color: var(--slate-5); }
.m-total { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; }
.m-delta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #15803D; }
.m-delta svg { width: 8px; height: 8px; }

.tiles { display: flex; gap: 10px; }
.tile {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px;
  background: #fff; border: 1px solid #DDE6F3; border-radius: 14px;
}
.tile-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-5); }
.tile-v { font-size: 17px; font-weight: 700; }
.tile-s { font-size: 11px; color: var(--slate-5); }
.dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.c-blue { background: #1E5BCC; }
.c-sky { background: #3BA4DB; }
.c-purple { background: #7B52C2; }

.mcard-h { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.chart { display: block; width: 100%; height: auto; font-family: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; color: var(--slate-6); }
.legend span { display: flex; align-items: center; gap: 5px; }

.budget { margin-top: 14px; }
.budget:first-of-type { margin-top: 0; }
.budget-row { display: flex; justify-content: space-between; font-size: 12.5px; }
.budget-row .of { color: var(--slate-5); }
.bar { height: 7px; margin-top: 7px; border-radius: 4px; background: #E5ECF7; }
.bar i { display: block; height: 7px; border-radius: 4px; background: #1E5BCC; }
.pw-92 { width: 92%; }
.pw-64 { width: 64%; }

.phone-cap { margin: 0; font-size: 12px; color: var(--ice-2); }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section h2 {
  margin: 0 0 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2rem);
}
@media (min-width: 900px) {
  .section--steps { padding: 88px 0 40px; }
  .section--benefits { padding: 56px 0 88px; }
  .section h2 { margin-bottom: 40px; }
}

.steps, .benefits { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.benefits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
@media (min-width: 900px) { .steps, .benefits { gap: 24px; } }

.step { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--mist); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.step h3 { margin: 0; font-size: 20px; font-weight: 700; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--slate-7); }

.benefit { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; }
.benefit h3 { margin: 0; font-size: 18px; font-weight: 700; }
.benefit p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--slate-7); }
@media (min-width: 600px) { .step, .benefit { padding: 28px; } }

/* ---------- Cierre: beta cerrada ---------- */
.cta { background: var(--mist); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 56px; padding-bottom: 56px; text-align: center; }
.cta h2 { margin: 0; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2rem); letter-spacing: -0.025em; line-height: 1.2; font-weight: 700; }
.cta p { margin: 0; max-width: 520px; font-size: 1.0625rem; line-height: 1.6; color: var(--slate-7); }
.cta .fine { font-size: 13px; color: var(--slate-6); }
@media (min-width: 900px) { .cta .wrap { padding-top: 80px; padding-bottom: 80px; } }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: var(--ice-2); }
.footer-in {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px 24px;
  padding-top: 32px; padding-bottom: 32px; font-size: 14px;
}
.footer-brand { margin: 0; font-size: 16px; color: #fff; }
.footer-brand span { font-weight: 500; }
.footer-brand b { font-weight: 700; }
.footer ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer p { margin: 0; }
@media (min-width: 900px) {
  .footer-in { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Páginas legales ---------- */
.legal-main { padding: 32px 0 72px; }
.legal { max-width: 760px; margin: 0 auto; padding: 0 20px; color: var(--slate-7); }
.legal h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); }
.legal .meta { margin: 0 0 24px; font-size: 14px; color: var(--slate-6); }
.legal h2 { margin: 36px 0 12px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal address { font-style: normal; line-height: 1.7; margin: 0 0 14px; }
.legal strong { color: var(--navy); }

.draft-banner {
  margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; font-size: 15px; line-height: 1.6;
  background: #FEF3C7; border: 1px solid #F59E0B; color: #78350F;
}
.ph { background: #FDE68A; color: #78350F; padding: 1px 5px; border-radius: 5px; font-weight: 500; }

.fact { margin: 16px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); }
.fact h3 { margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.fact dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
.fact dt { font-weight: 700; font-size: 14px; color: var(--navy); }
.fact dd { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
@media (min-width: 640px) {
  .fact dl { grid-template-columns: 170px 1fr; }
  .fact dd { margin-bottom: 8px; }
}
