/* Landing de OFER.MIA · Identidad oficial Dirección B «Pop» (mismos valores que mobile/src/theme.ts).
   Sin dependencias: HTML y CSS estáticos, fuentes locales (licencia OFL, ver assets/LICENSE.md). */

@font-face { font-family: "Unbounded"; src: url("assets/unbounded.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/dmsans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --violeta: #5B2EFF;
  --lima: #C8F53C;
  --chicle: #FF5C9D;
  --noche: #17102E;
  --nube: #F4F1FF;
  --blanco: #FFFFFF;
  --muted: #5E5878;
  --line: #DED6FA;
  --surface2: #E9E3FF;
  --pink-art: #FFE0EC;
  --pink-ink: #C21C63;
  --lime-art: #EEFBC6;
  --lime-ink: #3D5200;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nube);
  color: var(--noche);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.04em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 15.5px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lima { background: var(--lima); color: var(--noche); }
.btn--light { background: var(--blanco); color: var(--violeta); }
.btn--violet { background: var(--violeta); color: var(--blanco); }
.btn--violet:focus-visible { outline-color: var(--noche); }
.btn--ghost { color: var(--blanco); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
@media (hover: hover) {
  .btn--lima:hover { background: #d6fa63; }
  .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
  .btn--violet:hover { background: #4a1fef; }
}

/* Encabezado */
.top { position: sticky; top: 0; z-index: 10; background: var(--violeta); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 8px; }
.top__brand:focus-visible { outline: 3px solid var(--lima); outline-offset: 4px; }
.top__brand img { width: 118px; height: auto; }
.chip {
  padding: 3px 8px; border-radius: 999px; background: var(--lima); color: var(--noche);
  font: 700 11px/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase;
}

/* Portada */
.hero { background: var(--violeta); color: var(--blanco); overflow: hidden; }
.hero__grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; }
.slogan { font-weight: 600; font-size: 14px; letter-spacing: .01em; color: var(--lima); }
.hero h1 { margin-top: 12px; font-size: clamp(30px, 7.4vw, 56px); line-height: 1.08; max-width: 14ch; }
.lead { margin-top: 16px; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, .88); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hint { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.hero__art { display: none; }

/* Pasos */
.steps { padding: 56px 0 16px; scroll-margin-top: 64px; }
.steps h2, .malls h2 { font-size: clamp(22px, 4.4vw, 32px); }
.steps__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.card { background: var(--blanco); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h3 { margin-top: 14px; font-size: 19px; }
.card p { margin-top: 6px; color: var(--muted); }
.card__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); color: var(--violeta); font: 800 15px/1 var(--display);
}
.card__num--pink { background: var(--pink-art); color: var(--pink-ink); }
.card__num--lima { background: var(--lime-art); color: var(--lime-ink); }

/* Shoppings */
.malls { padding: 48px 0 16px; }
.malls__list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.malls__list li {
  padding: 10px 18px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--line);
  font-weight: 600; color: var(--noche);
}

/* Cuenta */
.account { padding: 48px 0 64px; }
.account__box {
  display: grid; gap: 20px; align-items: center;
  background: var(--surface2); border-radius: 28px; padding: 28px var(--gutter);
}
.account h2 { font-size: clamp(21px, 4vw, 28px); }
.account p { margin-top: 8px; color: var(--muted); max-width: 52ch; }
.account .btn { justify-self: start; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot__row { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot__row img { width: 96px; height: auto; }

/* Pantallas angostas: el botón del encabezado se acorta para que entre todo */
@media (max-width: 359px) {
  .top__brand img { width: 96px; }
  .btn--small { padding: 0 12px; font-size: 13px; }
  .chip { display: none; }
}

/* Tabletas y computadoras */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .account__box { grid-template-columns: 1fr auto; padding: 40px; }
  .account .btn { justify-self: end; }
  .foot__row { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 96px; }
  .hero__art { display: block; justify-self: center; width: min(100%, 340px); }
  .hero__art svg { width: 100%; height: auto; }
  .top__brand img { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
