/* The ¡Qué pasa! landing page (/es/quepasa). Hand-written, like citable.css, so the page adds no
   Tailwind class and never changes site.css. Light and dark follow the site's `.dark` class. */

:root {
  --page: #f9f7f2; --ink: #1f2937; --muted: #4b5563; --card: #ffffff; --line: rgba(0, 0, 0, .08);
  --alt: #f1ece2; --orange: #ff9f43; --purple: #9b59b6; --teal: #0f9f95;
  --t1: #3f56a6; --t1-bg: #e4e9fb; --t2: #c2413a; --t2-bg: #fbe4e2; --t3: #23725f; --t3-bg: #dcf2ea;
}
.dark {
  --page: #1a1625; --ink: #f5f3ff; --muted: #c4bfd6; --card: #2a2338; --line: rgba(255, 255, 255, .1);
  --alt: #221c30; --teal: #3fd1c4;
  --t1: #a9b8ff; --t1-bg: #2b3157; --t2: #ff9d95; --t2-bg: #4a2629; --t3: #7fdcbf; --t3-bg: #1f3d35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 Nunito, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; padding-bottom: 76px; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
h3 { font-size: 20px; }
.qp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.qp-section { padding: 64px 0; }
.qp-alt { background: var(--alt); }
.qp-sub { color: var(--muted); max-width: 640px; margin: 0 0 28px; font-size: 18px; }
.qp-fine { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* top bar */
.qp-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.qp-top-row { display: flex; align-items: center; gap: 12px; height: 60px; }
.qp-logo { font-family: Pacifico, cursive; font-size: 26px; text-decoration: none;
  background: linear-gradient(120deg, var(--orange), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qp-chip { font-weight: 800; font-size: 14px; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.qp-top-cta { margin-left: auto; font-weight: 800; text-decoration: none; padding: 9px 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(120deg, var(--orange), var(--purple)); white-space: nowrap; }

/* hero */
.qp-hero { padding: 48px 0 56px; }
.qp-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .qp-hero-grid { grid-template-columns: 1.05fr 1fr; } }
.qp-kicker { display: inline-block; margin: 0 0 14px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.qp-hero h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -.02em; }
.qp-grad { background: linear-gradient(120deg, var(--orange), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qp-lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 18px 0 26px; max-width: 560px; }
.qp-lead strong { color: var(--ink); }
.qp-with { display: block; margin-top: 6px; font-size: .5em; letter-spacing: 0; color: var(--teal); }

/* Joan and Jon: the backdrop is lighter in dark so the black tee and the outlines still read */
.qp-hosts { margin: 0; max-width: 600px; justify-self: center; width: 100%; }
.qp-hosts svg { display: block; width: 100%; height: auto; border-radius: 32px; box-shadow: 0 24px 60px rgba(20, 16, 40, .22); }
.qp-hosts-bg { fill: #fff1e0; }
.dark .qp-hosts-bg { fill: #4a4062; }
.qp-hosts figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.qp-hosts figcaption a { color: var(--teal); }

/* who's behind it */
.qp-together { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .qp-together { grid-template-columns: 1fr 1.1fr; } }
.qp-together .qp-sub { margin-bottom: 14px; }
.qp-together-art { margin: 0; }
.qp-together-art img { width: 100%; height: auto; border-radius: 24px; display: block; box-shadow: 0 20px 50px rgba(20, 16, 40, .22); }
.qp-qp { color: var(--teal); }

/* store buttons: the CTA */
.qp-cta { scroll-margin-top: 80px; }
.qp-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.qp-center { justify-content: center; }
.qp-store { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; padding: 12px 22px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; line-height: 1.1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.dark .qp-store { background: #fff; color: #111; }
.qp-store:hover { transform: translateY(-2px); }
.qp-store i { font-size: 30px; }
.qp-store small { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.qp-store.qp-mine { outline: 3px solid var(--orange); outline-offset: 3px; }
.qp-qr { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); max-width: 460px; }
.qp-qr[hidden] { display: none; }
.qp-qr p { margin: 0; font-size: 15px; color: var(--muted); }
.qp-qr p strong { color: var(--ink); }
#qp-qr-code { background: #fff; padding: 8px; border-radius: 12px; flex: none; }
#qp-qr-code img, #qp-qr-code canvas { display: block; }

/* steps */
.qp-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .qp-steps { grid-template-columns: repeat(3, 1fr); } }
.qp-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.qp-steps p { color: var(--muted); margin: 8px 0 0; }
.qp-step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  font-weight: 900; color: #fff; background: linear-gradient(120deg, var(--orange), var(--purple)); }
.qp-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 20px; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: #fff; background: var(--teal); }
.qp-btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }
.qp-dare { text-align: center; font-size: 22px; font-weight: 800; margin: 36px 0 0; }
.qp-dare span { color: var(--orange); }

/* calendar */
.qp-cal { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.qp-cal-month { margin: 0 0 12px; font-weight: 900; font-size: 18px; }
.qp-cal-head, .qp-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.qp-cal-head span { text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.qp-day { position: relative; aspect-ratio: 1; border-radius: 14px; padding: 6px 7px; display: flex; flex-direction: column;
  justify-content: space-between; font-size: 13px; overflow: hidden; }
.qp-day b { font-size: 18px; font-weight: 900; }
.qp-day i { align-self: flex-end; font-size: 15px; opacity: .8; }
.qp-day em { position: absolute; left: 6px; right: 6px; bottom: 5px; font-style: normal; font-weight: 800; font-size: 10.5px;
  line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-day:has(em) i { display: none; }
.qp-off { color: var(--muted); opacity: .45; justify-content: flex-start; }
.qp-t1 { background: var(--t1-bg); color: var(--t1); }
.qp-t2 { background: var(--t2-bg); color: var(--t2); }
.qp-t3 { background: var(--t3-bg); color: var(--t3); }
.qp-start { box-shadow: inset 0 0 0 2px currentColor; }
.qp-last { background: linear-gradient(140deg, var(--orange), var(--purple)); color: #fff; }
.qp-ep { background: var(--teal); color: #fff; }
.dark .qp-ep { color: #10231f; }
.qp-day.qp-past { opacity: .55; }
.qp-day.qp-today { outline: 3px solid var(--orange); outline-offset: 2px; }
/* phones: too narrow for the labels; the icon stays, and the legend cards below name the themes */
@media (max-width: 560px) { .qp-day em { display: none; } .qp-day:has(em) i { display: block; } }
@media (max-width: 420px) { .qp-day b { font-size: 15px; } .qp-cal { padding: 12px; } .qp-cal-grid, .qp-cal-head { gap: 5px; } }

.qp-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.qp-legend li { display: flex; align-items: center; gap: 10px; }
.qp-key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 13px; flex: none; }

/* the prize */
.qp-prize-pill { display: inline-flex; align-items: center; gap: 10px; margin: -8px 0 24px; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--ink); }
.qp-prize-pill i { color: var(--orange); }
.qp-prize { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--orange) 18%, var(--card)), color-mix(in srgb, var(--purple) 18%, var(--card)));
  border: 1px solid var(--line); }
.qp-prize > i { font-size: 34px; color: var(--orange); margin-top: 2px; }
.qp-prize p { margin: 6px 0 0; color: var(--muted); }
.qp-prize strong { color: var(--ink); }

/* example card */
.qp-example-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .qp-example-grid { grid-template-columns: 1fr 1fr; } }
.qp-card { background: #fff; color: #1f2937; border-radius: 22px; padding: 26px 28px; box-shadow: 0 20px 50px rgba(20, 16, 40, .18);
  border-top: 6px solid var(--orange); transform: rotate(-1deg); }
.qp-card-label { margin: 0; font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.qp-card-word { margin: 6px 0 4px; font-size: clamp(28px, 4vw, 38px); font-weight: 900; line-height: 1.1; }
.qp-card-mean { margin: 0 0 12px; font-size: 21px; font-weight: 800; color: #15803d; }
.qp-card-note { margin: 0 0 12px; color: #4b5563; }
.qp-card-ex { margin: 0; padding-left: 18px; color: #374151; font-style: italic; }
.qp-card-ex li { margin: 4px 0; }

/* faq */
.qp-faq { max-width: 760px; }
.qp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-top: 12px; }
.qp-faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.qp-faq p { color: var(--muted); margin: 10px 0 0; }

/* final + footer */
.qp-final { text-align: center; }
.qp-final h2 { margin-bottom: 24px; }
.qp-footer { padding: 28px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }
.qp-footer a { color: var(--muted); }
.qp-footer p { margin: 8px 0 0; }

/* the phone's always-visible download */
.qp-sticky { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; display: flex; justify-content: center; align-items: center;
  gap: 10px; padding: 15px; border-radius: 999px; font-weight: 900; font-size: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, var(--orange), var(--purple)); box-shadow: 0 12px 30px rgba(20, 16, 40, .35); }
.qp-sticky[hidden] { display: none; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ── the ranking (#clasificacion, ADR-114) ──────────────────────────────────────────────
   Variant A: podium + table, as prototyped in mocks/animations-2026-10/advent-board-web.html.
   quepasa-board.js fills it from the public board; the rest of the page never waits for it. */
:root { --gold: #ffc300; --silver: #c7ced8; --bronze: #e9a46a; --track: rgba(0, 0, 0, .07); --ring: #fff; }
.dark { --silver: #9aa3b2; --bronze: #c98552; --track: rgba(255, 255, 255, .1); --ring: #2a2338; }
/* Its own band: the sections around it already alternate page / alt. */
.qp-board-band { background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 9%, var(--page)), color-mix(in srgb, var(--purple) 7%, var(--page))); scroll-margin-top: 60px; }
.qb-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.qb-meta:empty { display: none; }
.qb-pill { font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); white-space: nowrap; }
.qb-pill.qb-gold { background: var(--gold); color: #4a3500; }
.qb-face { position: relative; display: block; flex: none; width: 44px; height: 44px; }
.qb-face img.qb-av, .qb-face .qb-anon, .qb-face .qb-init { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover;
  background: color-mix(in srgb, var(--orange) 22%, var(--card)); box-shadow: 0 0 0 2.5px var(--ring), 0 4px 10px -4px rgba(0, 0, 0, .35); }
.qb-face .qb-anon { display: grid; place-items: center; background: #b9b2a8; color: #fff; }
.qb-face .qb-anon svg { width: 60%; height: 60%; }
.qb-face .qb-init { display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(120deg, var(--orange), var(--purple)); }
.qb-face .qb-flag { position: absolute; right: -3px; bottom: -3px; width: 40%; height: 40%; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 2px var(--ring); background: #fff; }
.qb-streak { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 14px; color: #e07800; white-space: nowrap; }
.dark .qb-streak { color: #ffb05c; }
.qb-streak svg { width: 15px; height: 15px; flex: none; }
.qb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 560px; margin: 0 auto 26px; }
/* A4: fewer than three players draw only their own places, centred. */
.qb-podium.qb-n1 { grid-template-columns: minmax(0, 1fr); max-width: 200px; }
.qb-podium.qb-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; }
.qb-pod { text-align: center; min-width: 0; }
.qb-pod .qb-face { width: 72px; height: 72px; margin: 0 auto 10px; }
.qb-pod .qb-blk { border-radius: 18px 18px 0 0; padding: 12px 6px 10px; transform-origin: 50% 100%; }
.qb-pod b { display: block; font-weight: 900; font-size: 16px; color: #2b2b2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-pod b.qb-anon-name { font-style: italic; font-weight: 800; }
.qb-pod small { display: block; font-weight: 700; font-size: 14px; color: rgba(0, 0, 0, .6); }
.qb-pod .qb-streak { color: rgba(0, 0, 0, .6); }
.qb-pod.qb-p1 .qb-blk { height: 150px; background: linear-gradient(color-mix(in srgb, var(--gold) 80%, #fff), var(--gold)); }
.qb-pod.qb-p2 .qb-blk { height: 128px; background: linear-gradient(color-mix(in srgb, var(--silver) 80%, #fff), var(--silver)); }
.qb-pod.qb-p3 .qb-blk { height: 112px; background: linear-gradient(color-mix(in srgb, var(--bronze) 80%, #fff), var(--bronze)); }
.qb-pod .qb-rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2b2b2b; color: #fff;
  font-weight: 900; font-size: 13px; margin-bottom: 4px; }
.qb-rows { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; list-style: none; }
.qb-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; border-radius: 16px; background: var(--card);
  box-shadow: 0 8px 18px -14px rgba(20, 50, 45, .6); }
.qb-row .qb-n { width: 30px; flex: none; text-align: center; font-weight: 900; font-size: 17px; color: var(--muted); }
.qb-row .qb-nm { flex: 1; min-width: 0; font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-nm.qb-anon-name { font-style: italic; color: var(--muted); }
.qb-row .qb-xp { font-weight: 900; font-size: 17px; white-space: nowrap; }
.qb-row .qb-xp small { color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 2px; }
.qb-row .qb-streak { min-width: 44px; }
.qb-more { text-align: center; margin: 18px 0 0; }
.qb-more button { font: inherit; border: 0; cursor: pointer; font-weight: 800; color: var(--teal); padding: 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 12%, transparent); }
.qb-more button:focus-visible, .qb-app:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.qb-foot { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: 14px; text-align: center; }
.qb-foot[hidden] { display: none; }
.qb-foot p { margin: 14px 0 0; }
.qb-app { color: var(--teal); font-weight: 800; font-size: 16px; }
.qb-skel { max-width: 720px; margin: 0 auto; display: grid; gap: 8px; }
.qb-skel i { height: 64px; border-radius: 16px; background: linear-gradient(90deg, var(--track), color-mix(in srgb, var(--track) 40%, transparent), var(--track));
  background-size: 200% 100%; animation: qb-sh 1.2s linear infinite; }
@keyframes qb-sh { to { background-position: -200% 0; } }
/* A4: "Entre todos" — everyone's reviews and the next milestone. */
.qb-together { max-width: 560px; margin: -8px auto 28px; text-align: center; }
.qb-together-line { margin: 0 0 10px; font-weight: 800; font-size: 18px; }
.qb-together-line strong { font-weight: 900; font-size: 24px; color: var(--teal); }
.qb-goal { height: 12px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--teal) 15%, transparent); }
.qb-goal i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 55%, var(--gold))); }
.qb-goal-label { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.qb-empty { max-width: 640px; margin: 0 auto; text-align: center; color: var(--muted); padding: 30px 0; font-size: 18px; font-weight: 700; }
/* motion: rows rise and the podium grows once the section is in view; reduced motion just fades */
.qb-rise { opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.15); }
.qb-rise.qb-in { opacity: 1; transform: none; }
.qb-grow { transform: scaleY(0); transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.qb-grow.qb-in { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .qb-rise, .qb-grow { transition: opacity .2s; transform: none !important; }
  .qb-skel i { animation: none; }
}
@media (max-width: 520px) {
  .qb-pod .qb-face { width: 56px; height: 56px; } .qb-pod b { font-size: 14px; }
  .qb-pod.qb-p1 .qb-blk { height: 140px; } .qb-pod.qb-p2 .qb-blk { height: 120px; } .qb-pod.qb-p3 .qb-blk { height: 108px; }
  .qb-podium { gap: 8px; }
  .qb-row { gap: 10px; padding: 9px 12px 9px 8px; } .qb-row .qb-streak { min-width: 0; } .qb-row .qb-nm { font-size: 16px; }
  .qb-row .qb-face { width: 38px; height: 38px; }
}
