/* ===== Tokens ===== */
:root {
  --azul: #012e8f;
  --azul-700: #022a80;
  --naranja: #ff7200;
  --naranja-600: #e86500;
  --verde: #1b7f3b;
  --ink: #0e1116;
  --muted: #5c6470;
  --line: #e5e8ee;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 10px 30px rgba(14, 17, 22, 0.06);
  --shadow-soft: 0 1px 2px rgba(14, 17, 22, 0.05), 0 4px 14px rgba(14, 17, 22, 0.05);
  --maxw: 1140px;
  --font:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  color: var(--azul);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
.accent {
  color: var(--naranja);
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 14px 24px;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 15px;
}
.btn--primary {
  background: var(--naranja);
  color: var(--ink); /* texto oscuro sobre naranja = contraste 6.9 (igual que la app) */
  box-shadow: 0 6px 18px rgba(255, 114, 0, 0.28);
}
.btn--primary:hover {
  background: var(--naranja-600);
  box-shadow: 0 8px 22px rgba(255, 114, 0, 0.32);
}
.btn--ghost {
  color: var(--azul);
  border-color: rgba(1, 46, 143, 0.18);
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: var(--azul);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60; /* por encima del overlay fullscreen del menú mobile */
  background: rgba(246, 247, 249, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo {
  height: 34px;
  width: auto;
}
.nav__word {
  font-weight: 900;
  font-size: 22px;
  color: var(--azul);
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.nav__links a:hover {
  color: var(--azul);
}
.nav__links a.btn--primary {
  color: var(--ink);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px;
  height: 2.4px;
  background: var(--azul);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== Hero ===== */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(1100px 460px at 78% -10%, rgba(1, 46, 143, 0.08), transparent 60%),
    radial-gradient(700px 360px at 10% 8%, rgba(255, 114, 0, 0.07), transparent 60%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--azul);
  background: rgba(1, 46, 143, 0.08);
  border: 1px solid rgba(1, 46, 143, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  margin: 20px 0 28px;
  max-width: 34ch;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: min(300px, 78%);
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(1, 46, 143, 0.22));
  animation: float 6s ease-in-out infinite;
}
.hero__badge {
  position: absolute;
  left: 2%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== Strip ===== */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 22px;
}
.strip__grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.strip__grid b {
  color: var(--azul);
  font-size: 20px;
  font-weight: 800;
}
.strip__grid span {
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== Sections ===== */
.section {
  padding: 84px 0;
}
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
}
.section__head p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}

/* ===== Steps ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.step__n {
  position: absolute;
  top: 18px;
  right: 20px;
  font-weight: 900;
  font-size: 26px;
  color: rgba(1, 46, 143, 0.1);
}
.step__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(1, 46, 143, 0.08);
  color: var(--azul);
  margin-bottom: 16px;
}
.step__icon svg {
  width: 24px;
  height: 24px;
}
.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 114, 0, 0.12);
  color: var(--naranja-600);
  margin-bottom: 18px;
}
.card__icon--green {
  background: rgba(27, 127, 59, 0.12);
  color: var(--verde);
}
.card__icon svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== Split (mapa) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
}
.split__copy p {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 20px;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 15.5px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--verde)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.mapcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mapcard__bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(14, 17, 22, 0.05);
  padding: 6px 12px;
  border-radius: 999px;
}
.chip--active {
  background: var(--azul);
  color: #fff;
}
.mapcard__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Who ===== */
.who {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.who__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.who__item h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.who__item p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ===== CTA ===== */
.cta {
  padding: 84px 0;
  background: linear-gradient(135deg, var(--azul), #01207a);
}
.cta__inner {
  text-align: center;
  color: #fff;
}
.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}
.cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 14px 0 30px;
}
.stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease;
}
.store:hover {
  transform: translateY(-2px);
}
.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.store small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.store b {
  font-size: 17px;
}
.cta__mini {
  margin-top: 26px !important;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #cbd2dc;
  padding: 48px 0 26px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer__brand {
  max-width: 320px;
}
.footer__logo {
  height: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 12px;
}
.footer__brand p {
  color: #9aa4b2;
  font-size: 14.5px;
}
.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a {
  color: #cbd2dc;
  font-size: 14.5px;
  font-weight: 600;
}
.footer__links a:hover {
  color: #fff;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #8b95a3;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid,
  .split {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
  .lead {
    max-width: none;
  }
  .steps,
  .cards,
  .who,
  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Menú fullscreen: overlay a pantalla completa que baja desde arriba. */
  .nav__links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 55; /* debajo del header (60): el logo y la X quedan visibles */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    padding: 90px 24px 48px;
    overflow-y: auto;
    /* Fade in/out (visibility oculta el overlay cuando está cerrado para no
       bloquear los clics de la página). */
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
  }
  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav__links a {
    font-size: 24px;
    font-weight: 700;
    color: var(--azul);
    padding: 16px 0;
  }
  .nav__links a.btn--primary {
    margin-top: 22px;
    font-size: 18px;
    padding: 15px 44px;
    color: var(--ink);
  }
  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 61;
  }
  /* Hamburguesa → X cuando el menú está abierto */
  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7.4px) rotate(45deg);
  }
  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7.4px) rotate(-45deg);
  }
  /* Bloquear scroll del fondo cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
}
@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }
  .steps,
  .cards,
  .who,
  .strip__grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 20px;
  }
}

/* ===== Páginas legales (privacidad, términos, baja de cuenta) ===== */
.legal {
  padding: 56px 0 84px;
}
.legal__head {
  max-width: 760px;
  margin: 0 auto 34px;
}
.legal__head .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}
.legal__head h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.legal__meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
}
.legal__body {
  max-width: 760px;
  margin: 0 auto;
  color: #23282f;
  font-size: 16px;
}
.legal__body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-top: 12px;
}
.legal__body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal__body p {
  margin: 0 0 14px;
}
.legal__body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal__body li {
  margin-bottom: 8px;
}
.legal__body a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__body strong {
  color: var(--ink);
}
.legal__body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.legal__toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 30px;
  box-shadow: var(--shadow-soft);
}
.legal__toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0;
}
.legal__toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--azul);
  font-size: 14.5px;
}
.legal__toc li {
  margin-bottom: 5px;
}
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--naranja);
  background: #fff8f1;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 22px;
  font-size: 15px;
}
.callout--info {
  border-left-color: var(--azul);
  background: #f2f5fc;
}
.callout--danger {
  border-left-color: #c8321f;
  background: #fdf3f1;
}
.callout p:last-child {
  margin-bottom: 0;
}
.legal__placeholder {
  background: #fff8f1;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
  color: var(--naranja-600);
}
.steps--legal {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.steps--legal li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 56px;
  box-shadow: var(--shadow-soft);
}
.steps--legal li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
