/* Stuart — web. Mismos colores, tipografías y «pegatinas» que la app. */
@font-face { font-family: Fredoka; src: url(fonts/Fredoka-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(fonts/Fredoka-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/Nunito-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/Nunito-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/Nunito-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --surface: #FFF8EC;
  --card: #FFFFFF;
  --ink: #2A2340;
  --muted: #6B6485;
  --primary: #22A06B;
  --primary-text: #1A7F55;
  --on-primary: #2A2340;
  --mint: #D4F5E4;
  --yellow: #FFF2BF;
  --coral: #FFE1DE;
  --grape: #EEE9FF;
  --track: #EDE4D3;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #17142A;
    --card: #221E3A;
    --ink: #E9E4FF;
    --muted: #B3ACD1;
    --primary: #3DD68C;
    --primary-text: #3DD68C;
    --on-primary: #0E2A1D;
    --track: #2E2950;
  }
  /* Las tarjetas de color mantienen tinta oscura, como en la app. */
  .card.mint, .card.yellow, .card.coral, .card.grape { color: #2A2340; }
  .card.mint .muted, .card.yellow .muted, .card.coral .muted, .card.grape .muted { color: #4B4466; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary-text); font-weight: 800; text-underline-offset: 3px; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-bottom: .35em; }
.muted { color: var(--muted); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Cabecera */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.icon { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); }
.brand img.word { height: 34px; }
nav.links { display: flex; gap: 18px; flex-wrap: wrap; }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 800; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--primary-text); text-decoration: underline; }

/* Pegatinas */
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--ink);
  padding: 20px 22px;
}
.card.mint { background: var(--mint); }
.card.yellow { background: var(--yellow); }
.card.coral { background: var(--coral); }
.card.grape { background: var(--grape); }
.pill {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 800;
  font-size: .9rem;
  background: var(--card);
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 14px 24px;
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.secondary { background: var(--card); color: var(--ink); }

/* Portada */
.hero { padding: 24px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero img { width: 100%; max-width: 340px; justify-self: center; }
.hero .lead { font-size: 1.2rem; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.bubble { position: relative; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero img { max-width: 220px; order: -1; }
}

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { display: flex; flex-direction: column; gap: 6px; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-family: Fredoka, sans-serif; font-weight: 700;
}
.row { display: flex; gap: 20px; align-items: center; }
.row img { width: 120px; flex: none; }
@media (max-width: 560px) { .row { flex-direction: column; text-align: center; } }

section { padding: 12px 0 28px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .97rem; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--track); }
th { font-family: Fredoka, sans-serif; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Pie */
footer { margin-top: 40px; padding: 28px 0 40px; border-top: 2px solid var(--track); font-size: .95rem; }
footer .wrap { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
address { font-style: normal; }
.legal-meta { font-size: .95rem; }
