/* ===================================================================
   Ride — Hoja de estilos oficial
   Marca: celeste #3697E7 · verde #63E38C · gradiente celeste→cyan→verde
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #3697E7;
  --blue-top: #3E9BE6;
  --cyan: #56C8E8;
  --mint: #63E38C;
  --green: #61ff61;
  --cta: #1565C0;
  --cta-dark: #0f4f9c;

  --ink: #10324A;
  --ink-soft: #24506b;
  --muted: #5E7A8A;
  --line: #E2ECF5;
  --soft: #F5F9FF;
  --soft-2: #EAF3FB;
  --white: #ffffff;

  --grad-brand: linear-gradient(135deg, #3697E7 0%, #56C8E8 52%, #63E38C 100%);
  --grad-brand-soft: linear-gradient(135deg, #eaf5ff 0%, #eafaf1 100%);
  --grad-cta: linear-gradient(135deg, #1E5FD8 0%, #3B82F6 100%);

  --shadow-sm: 0 2px 10px rgba(16, 50, 74, .06);
  --shadow: 0 12px 34px rgba(16, 50, 74, .10);
  --shadow-lg: 0 26px 60px rgba(16, 50, 74, .18);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --container: 1160px;
  --nav-h: 72px;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section  { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--soft); }
.section--tint { background: var(--grad-brand-soft); }
.center { text-align: center; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: var(--soft-2);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); }
.grad-text {
  background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 24px rgba(21, 101, 192, .32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(21, 101, 192, .42); }
.btn--green { background: linear-gradient(135deg, #35c46e, #63E38C); color: #08351c; box-shadow: 0 10px 24px rgba(52, 168, 83, .3); }
.btn--green:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(52, 168, 83, .4); }
.btn--ghost { background: #fff; color: var(--cta); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--cta); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-white:hover { background: rgba(255,255,255,.14); }
.btn--lg { padding: 16px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(11, 39, 64, .92); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: rgba(255, 255, 255, .85);
  padding: 9px 14px; border-radius: var(--radius-pill); transition: background .15s, color .15s;
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-brand); color: #fff; padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 10vw, 130px); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 80% 12%, rgba(255,255,255,.30), transparent 60%),
              radial-gradient(50% 50% at 8% 90%, rgba(255,255,255,.18), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.2rem; color: rgba(255,255,255,.94); max-width: 540px; margin-bottom: 28px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35); padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero__stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; }
.hero__stat span { font-size: .9rem; color: rgba(255,255,255,.85); }

/* Phone mockup */
.phone {
  position: relative; width: min(300px, 78vw); margin-inline: auto;
  aspect-ratio: 300 / 610; background: #0b2740; border-radius: 42px;
  padding: 12px; box-shadow: var(--shadow-lg); border: 2px solid rgba(255,255,255,.25);
}
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0b2740; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__badge {
  position: absolute; z-index: 4; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; line-height: 1.2;
}
.phone__badge small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.phone__badge .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 1.1rem; }
.phone__badge--tl { top: 40px; left: -34px; }
.phone__badge--br { bottom: 60px; right: -30px; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe4f7; }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--grad-brand-soft); color: var(--blue);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; background: var(--soft-2);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #35c46e, #63E38C); color: #fff; font-size: .85rem; font-weight: 700; margin-top: 3px;
}
.check b { font-family: var(--font-head); }
.check p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Commission timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tl {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow-sm); position: relative; text-align: center;
}
.tl__tag { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl__big { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; margin: 6px 0 4px; }
.tl--free .tl__big { color: #2fae5f; }
.tl--blue .tl__big { color: var(--blue); }
.tl p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Pricing / benefit highlight ---------- */
.highlight {
  background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden;
}
.highlight::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 20%, rgba(255,255,255,.22), transparent 60%); }
.highlight > * { position: relative; z-index: 2; }
.highlight h2 { color: #fff; }
.highlight .lead { color: rgba(255,255,255,.92); }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.quote__stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: 1.02rem; color: var(--ink-soft); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote__who .quote__ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.05rem; font-family: var(--font-head); font-weight: 700; background: var(--grad-brand); }
.quote__who b { display: block; font-family: var(--font-head); font-size: .95rem; }
.quote__who span { font-size: .82rem; color: var(--muted); }

/* ---------- App download ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; background: #0b2740; color: #fff;
  padding: 12px 20px; border-radius: 14px; transition: transform .18s, box-shadow .18s;
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; opacity: .8; line-height: 1; }
.store b { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.03rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft-2); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s, background .2s; }
.faq__item.open .faq__q .plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Forms (mock) ---------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth__aside { background: var(--grad-brand); color: #fff; padding: clamp(40px, 6vw, 76px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth__aside::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 55% at 80% 15%, rgba(255,255,255,.25), transparent 60%); }
.auth__aside > * { position: relative; z-index: 2; }
.auth__aside h2 { color: #fff; }
.auth__aside .check .tick { background: rgba(255,255,255,.25); }
.auth__aside .check b, .auth__aside .check p { color: #fff; }
.auth__aside .check p { opacity: .9; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) 22px; }
.form-card { width: 100%; max-width: 440px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--soft); padding: 6px; border-radius: var(--radius-pill); margin-bottom: 26px; }
.tab { border: 0; background: none; cursor: pointer; padding: 11px; border-radius: var(--radius-pill); font-family: var(--font-head); font-weight: 600; color: var(--muted); transition: .2s; }
.tab.is-active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .88rem; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(54, 151, 231, .14); }
.gbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; color: var(--ink); transition: .18s;
}
.gbtn:hover { border-color: #cfe4f7; box-shadow: var(--shadow-sm); }
.gbtn img { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .84rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 16px; }
.form-msg { display: none; background: #eafaf1; border: 1px solid #b8ecc9; color: #1c7a42; padding: 12px 16px; border-radius: 12px; font-size: .92rem; margin-bottom: 18px; }
.form-msg.show { display: block; }
.veh-list .veh-item { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 10px; }
.veh-item button { border: 0; background: #fff0f0; color: #d64545; border-radius: 10px; cursor: pointer; padding: 0 14px; font-size: 1.1rem; }
.link-add { background: none; border: 1.5px dashed var(--line); color: var(--blue); border-radius: 12px; padding: 11px; width: 100%; cursor: pointer; font-family: var(--font-head); font-weight: 600; }

.hidden { display: none !important; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-cta); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 20% 20%, rgba(255,255,255,.2), transparent 55%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #0b2740; color: #cfe0ee; padding: 60px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { color: #9bb6cb; font-size: .94rem; max-width: 300px; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: 14px; letter-spacing: .03em; }
.footer a { color: #9bb6cb; display: block; padding: 5px 0; font-size: .93rem; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7f9bb2; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.footer__social a:hover { background: var(--blue); }

/* ---------- Landing specific ---------- */
.landing-hero { background: var(--grad-brand); color: #fff; text-align: center; padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 5vw, 50px); }
.landing-hero h1 { color: #fff; max-width: 900px; margin-inline: auto; }
.landing-hero .lead { color: rgba(255,255,255,.94); }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -60px; position: relative; z-index: 5; }
.dual__card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-lg); border-top: 6px solid var(--blue); }
.dual__card--driver { border-top-color: var(--mint); }
.dual__card h2 { font-size: 1.6rem; }
.dual__card .check { margin-bottom: 12px; }
.dual__tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.dual__tag--rider { color: var(--blue); background: var(--soft-2); }
.dual__tag--driver { color: #1c7a42; background: #e7fbef; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__stats { justify-content: center; }
  .hero__badge { margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dual { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #0b2740; border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 22px 20px; box-shadow: var(--shadow);
  }
  .nav.open .nav__links a { padding: 12px 14px; }
  .grid--3, .grid--2, .grid--4, .steps, .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Pre-registro ---------- */
.prereg__badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--radius-pill); padding: 7px 15px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; margin-bottom: 18px;
}
.form-card--wide { max-width: 520px; }

/* Selector de tipo de usuario */
.utype { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0 0 16px; }
.utype legend {
  font-family: var(--font-head); font-weight: 500; font-size: .88rem;
  color: var(--ink-soft); margin-bottom: 7px; padding: 0;
}
.utype__opt { position: relative; display: block; cursor: pointer; }
.utype__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.utype__box {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 12px;
  background: #fff; transition: border-color .18s, box-shadow .18s, background .18s;
}
.utype__box .ico { font-size: 1.6rem; line-height: 1; }
.utype__box b { font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.utype__box small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.utype__opt:hover .utype__box { border-color: #cfe4f7; }
.utype__opt input:checked + .utype__box {
  border-color: var(--blue); background: var(--soft); box-shadow: 0 0 0 4px rgba(54, 151, 231, .14);
}
.utype__opt input:focus-visible + .utype__box { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Validación */
.field__err { display: none; color: #d64545; font-size: .8rem; margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: #d64545; }
.field.has-error .field__err { display: block; }
.utype.has-error .utype__box { border-color: #d64545; }
.form-msg--error { background: #fff0f0; border-color: #f5c2c2; color: #b03030; }

/* Botón cargando */
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Pantalla de confirmación */
.prereg-done { text-align: center; padding: 8px 0; }
.prereg-done__ico {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, #35c46e, #63E38C); box-shadow: var(--shadow);
}
.prereg-done ul { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; }
.prereg-done ul li {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px;
  color: var(--ink-soft); font-size: .93rem;
}
.prereg-done ul li::before { content: "✓"; color: #2fae5f; font-weight: 700; flex: none; }

@media (max-width: 480px) {
  .utype { grid-template-columns: 1fr; }
}

/* ---------- Modal de descarga de la app ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 22px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(9, 30, 48, .62); backdrop-filter: blur(3px); animation: modal-fade .22s ease; }
.modal__card {
  position: relative; z-index: 2; width: 100%; max-width: 420px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px 30px 30px;
  max-height: calc(100vh - 44px); overflow-y: auto; animation: modal-rise .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; cursor: pointer;
  border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 1.3rem; line-height: 1; transition: .18s;
}
.modal__x:hover { background: var(--soft-2); color: var(--ink); }
.modal__head { text-align: center; margin-bottom: 22px; }
/* El SVG es un lienzo cuadrado con mucho aire: el arte ocupa ~81% x ~56%,
   así que se escala el lienzo y se recorta el margen inferior sobrante. */
.modal__head img { width: 116px; height: auto; margin: 0 auto 4px; }
.modal__head h3 { font-size: 1.45rem; margin-bottom: 6px; }
.modal__head p { color: var(--muted); margin: 0; font-size: .93rem; }
.stores--stack { flex-direction: column; gap: 10px; }
.stores--stack .store { justify-content: center; }
.store--soon { opacity: .55; cursor: default; pointer-events: none; }
.modal__foot { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.modal__foot p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
body.modal-open { overflow: hidden; }

/* Entrada solo-móvil inyectada por main.js dentro del menú desplegable */
.nav__links .nav__mobile-only { display: none; }
@media (max-width: 720px) {
  .nav.open .nav__links .nav__mobile-only {
    display: block; margin-top: 6px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12); color: var(--mint); font-weight: 600;
  }
}

/* ---------- Modal legal (términos / privacidad) ---------- */
.modal__card--wide { max-width: 760px; padding: 30px 0 26px; display: flex; flex-direction: column; }
.modal__card--wide .modal__title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink);
  margin: 0 0 18px; padding: 0 34px 18px 30px; border-bottom: 1px solid var(--line);
}
.legal-body {
  padding: 0 30px; overflow-y: auto; flex: 1; min-height: 120px;
  color: var(--ink-soft); font-size: .96rem; line-height: 1.75;
}
.legal-body > *:first-child { margin-top: 0; }
/* El CMS marca todos los encabezados como <h5>, así que se incluyen h5/h6
   con el mismo peso visual que un h3. */
.legal-body h1, .legal-body h2, .legal-body h3,
.legal-body h4, .legal-body h5, .legal-body h6 {
  margin: 26px 0 10px; color: var(--ink); font-weight: 600;
}
.legal-body h1 { font-size: 1.3rem; }
.legal-body h2 { font-size: 1.15rem; }
.legal-body h3, .legal-body h4, .legal-body h5, .legal-body h6 { font-size: 1.05rem; }
.legal-body p { margin: 0 0 14px; }
/* El reset global quita las viñetas (ul{list-style:none}); aquí se recuperan
   porque el contenido viene del CMS y las listas deben leerse como tales. */
.legal-body ul { list-style: disc; margin: 0 0 16px; padding-left: 22px; }
.legal-body ol { list-style: decimal; margin: 0 0 16px; padding-left: 22px; }
.legal-body ul ul { list-style: circle; margin-bottom: 6px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body strong, .legal-body b { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .9rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal-body img { border-radius: 10px; margin: 10px 0; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* Estados de carga y error */
.legal-estado { text-align: center; color: var(--muted); padding: 34px 0; }
.legal-estado__spin {
  width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--soft-2); border-top-color: var(--blue); animation: btn-spin .7s linear infinite;
}
.legal-estado p { margin: 0 0 16px; }
.legal-body__pie { padding: 16px 0 4px; margin-top: 22px; border-top: 1px solid var(--line); }
.legal-body__pie small { color: var(--muted); font-size: .82rem; }

@media (max-width: 720px) {
  .modal__card--wide .modal__title { font-size: 1.25rem; padding: 0 46px 16px 22px; }
  .legal-body { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Página de eliminación de cuenta ---------- */
.legal-page { max-width: 900px; }
.legal-page .section-head { text-align: left; }

/* Pasos numerados */
.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 0 0 28px; }
.pasos > li {
  counter-increment: paso; position: relative; padding: 0 0 22px 56px;
  color: var(--ink-soft); line-height: 1.7;
}
.pasos > li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-cta); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.pasos > li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px;
  width: 2px; background: var(--line);
}
.pasos b { color: var(--ink); }
.pasos code {
  background: var(--soft-2); color: var(--ink); padding: 3px 9px; border-radius: 7px;
  font-size: .92em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.pasos ul { list-style: disc; padding-left: 20px; margin: 8px 0 0; }
.pasos ul li { margin-bottom: 5px; }
.pasos a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* Avisos */
.aviso {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; color: var(--ink-soft); line-height: 1.65;
}
.aviso__ico { font-size: 1.25rem; flex: none; line-height: 1.3; }
.aviso b { color: var(--ink); }
.aviso a { color: var(--blue); font-weight: 600; text-decoration: underline; cursor: pointer; }
.aviso--alerta { background: #fff8ec; border-color: #f5dfb4; }

/* Tarjetas de datos */
.datos-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; background: #fff; }
.datos-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.datos-card__ico {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .9rem; flex: none;
}
.datos-card--borra { border-color: #f3cfcf; background: #fffafa; }
.datos-card--borra .datos-card__ico { background: #ffe5e5; color: #c23b3b; }
.datos-card--guarda { border-color: #cfe4f7; background: #fafcff; }
.datos-card--guarda .datos-card__ico { background: #e4f1ff; }
.datos-card__sub {
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 8px;
}
.datos-card ul { list-style: disc; padding-left: 20px; margin: 0; color: var(--ink-soft); }
.datos-card ul li { margin-bottom: 7px; line-height: 1.6; }
.datos-card__nota {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); line-height: 1.65;
}

/* Caja de contacto */
.contacto-caja {
  margin-top: 44px; text-align: center; background: var(--grad-brand-soft);
  border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 44px);
}
.contacto-caja h3 { margin-bottom: 6px; }
.contacto-caja > p { color: var(--muted); margin: 0 0 22px; }
.contacto-caja__mail { margin: 16px 0 0 !important; font-size: .9rem; }

.actualizado { margin-top: 32px; text-align: center; color: var(--muted); font-size: .88rem; }

@media (max-width: 720px) {
  .pasos > li { padding-left: 46px; }
  .pasos > li::before { width: 30px; height: 30px; font-size: .9rem; }
  .pasos > li:not(:last-child)::after { left: 14px; top: 34px; }
}
