/* VayaOjo. Light design: amber and green are accents on white.
   Lince #F4B23E · Dehesa #1C7A5A · Tinta #14201B · Niebla #F6F8F5 · Hocico #FFF6E2 · Aviso #A83A27 */

@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --lince: #F4B23E;
  --lince-dark: #E0A02F;
  --dehesa: #1C7A5A;
  --dehesa-dark: #14614A;
  --dehesa-soft: #E0F0E7;
  --tinta: #14201B;
  --text: #2E3B35;
  --soft: #4A5B53;
  --muted: #5F7068;
  --niebla: #F6F8F5;
  --hocico: #FFF6E2;
  --amber-soft: #FDF0D0;
  --amber-ink: #7D5200;
  --aviso: #A83A27;
  --aviso-soft: #FBEDE9;
  --line: #DDE5DF;
  --line-strong: #C9D6CD;
  --tile: #ECF1EC;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--niebla);
  color: var(--tinta);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--dehesa-dark); }
a:hover { color: #0E4A38; }
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--dehesa);
  outline-offset: 2px;
}
h1, h2, h3, p, ol, ul { margin: 0; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.content { flex: 1 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.px { position: absolute; left: -99px; width: 1px; height: 1px; }
.meta { font-size: 13px; color: var(--muted); }

.notice {
  background: var(--hocico);
  border-bottom: 1px solid #F1DFB4;
  color: var(--amber-ink);
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.brand img { width: 44px; height: 44px; display: block; }
.brand picture, .sigue__head picture { display: block; line-height: 0; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; line-height: 1; }
.wordmark span { color: var(--dehesa); }
.search { flex: 1 1 280px; min-width: 0; }
.search__box {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  background: var(--niebla); border: 1px solid var(--line); border-radius: 999px; color: var(--soft);
}
.search__box:focus-within { border-color: var(--dehesa); outline: 3px solid var(--dehesa); outline-offset: 2px; }
.search__box svg { flex: 0 0 auto; }
.search__box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--tinta); outline: none; }
.search__box input::placeholder { color: var(--muted); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  font: 700 16px "Figtree", system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.btn--amber { background: var(--lince); color: var(--tinta); }
.btn--amber:hover { background: var(--lince-dark); color: var(--tinta); }
.btn--big { height: 52px; padding: 0 28px; font-size: 17px; }
.btn--off { background: var(--tile); color: var(--soft); cursor: default; }
.btn--off:hover { background: var(--tile); color: var(--soft); }
.btn--ghost { background: var(--white); color: var(--tinta); border: 1px solid var(--line-strong); font-weight: 600; font-size: 15px; }
.btn--ghost:hover { border-color: var(--dehesa); color: var(--tinta); background: var(--white); }
.btn--ghost svg { color: var(--dehesa); flex: 0 0 auto; }
.btn--still { cursor: default; color: var(--soft); }
.btn--still:hover { border-color: var(--line-strong); color: var(--soft); }
.btn--big.btn--ghost { font-size: 16px; padding: 0 22px; }
form { margin: 0; }
.thanks { color: var(--dehesa-dark); font-weight: 600; }

/* ── "Send it to someone" (WhatsApp, Telegram). Named "pasalo" on purpose: blockers
      hide anything called share or social. ─────────────────────────────── */
.pasalo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pasalo__label { font-size: 14px; font-weight: 600; color: var(--soft); margin-right: 2px; }
.pasalo__btn { height: 40px; gap: 7px; color: var(--tinta); }
.pasalo__btn svg { color: var(--dehesa); flex: 0 0 auto; }
.pasalo__btn:hover { border-color: var(--dehesa); }

/* ── Category bar ───────────────────────────────────────────────────── */
.cats { background: var(--white); border-bottom: 1px solid var(--line); }
.cats__row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.cats__gap { flex: 1 1 0; }
.chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--soft);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--tinta); }
.chip--on { border-color: var(--dehesa); background: var(--dehesa-soft); color: var(--dehesa-dark); font-weight: 700; }
.chip--trampa { color: var(--aviso); border-color: #E7C4BC; }
.chip--trampa:hover, .chip--trampa-on { color: var(--aviso); border-color: var(--aviso); background: var(--aviso-soft); }
.chip--trampa-on { font-weight: 700; }
.chip--chuleta { color: var(--amber-ink); border-color: #EBD49B; }
.chip--chuleta:hover, .chip--chuleta-on { color: var(--amber-ink); border-color: #C99A2E; background: var(--hocico); }
.chip--chuleta-on { font-weight: 700; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero-wrap { padding-top: 28px; }
.hero { background: var(--hocico); border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.hero h1 { flex: 1 1 360px; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
.ticks { flex: 1 1 260px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ticks svg { width: 20px; height: 20px; color: var(--dehesa); flex: 0 0 auto; }

/* ── Home layout ────────────────────────────────────────────────────── */
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feed__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.h-display { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.h-display--small { font-size: 22px; }
.side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.side__card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.side__card h2 { font-size: 18px; font-weight: 700; }
.side__card p, .side__card ol { font-size: 15px; color: var(--soft); }
.side__card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--tinta); }
.side__card--trampa h2 { color: var(--aviso); }
.more { font-size: 15px; font-weight: 600; }
.side__card ol.toplist { gap: 10px; }
.toplist li a { display: block; color: var(--tinta); font-weight: 600; text-decoration: none; line-height: 1.3; }
.toplist li a:hover { text-decoration: underline; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rank { display: flex; flex-direction: column; gap: 14px; }
.more--aviso { color: var(--aviso); }
.more--aviso:hover { color: #7F2A1B; }
.empty { padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }

/* ── Deal card ──────────────────────────────────────────────────────── */
.deal { padding: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.deal__tile {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; background: var(--tile); color: var(--soft);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.deal__tile svg { width: 40px; height: 40px; }
/* The product photo sits on top of the icon. If it cannot load, the icon stays visible. */
.tile__icon { display: flex; align-items: center; justify-content: center; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--white); padding: 6px; }
.deal-photo .tile__img { padding: 24px; }
.deal__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.deal__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.deal__title a { color: var(--tinta); text-decoration: none; }
.deal__title a:hover { text-decoration: underline; }
.deal__actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.deal__actions .btn { padding: 0 20px; width: 100%; }
.prices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-variant-numeric: tabular-nums; }
.price { font-size: 22px; font-weight: 700; }
/* Crossed out ONLY where we quote a shop's own crossed-out price (¡Vaya trampa! cases). */
.price-was { font-size: 15px; color: var(--muted); text-decoration: line-through; }
/* Our own comparison figure (the 90-day average): labelled text, never crossed out. */
.price-ref { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill--green { background: var(--dehesa-soft); color: var(--dehesa-dark); }
.pill--amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill--grey { background: #E3E9E4; color: var(--soft); }
.pill--aviso { background: var(--aviso-soft); color: var(--aviso); }
.spark { display: block; width: 100%; max-width: 260px; height: 28px; }
.deal--ended { background: var(--niebla); border-style: dashed; border-color: var(--line-strong); }
.deal--ended .deal__title a { color: var(--soft); }
.price--ended { color: var(--soft); text-decoration: line-through; }

/* ── Deal page ──────────────────────────────────────────────────────── */
.deal-page { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; padding-bottom: 56px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.deal-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.deal-photo {
  flex: 0 1 360px; min-width: 0; height: 360px; border-radius: 20px; background: var(--white);
  border: 1px solid var(--line); color: var(--line-strong);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.deal-photo svg { width: 120px; height: 120px; stroke-width: 1.1; }
.deal-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.deal-info h1 { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1.08; letter-spacing: -0.03em; }
.prices--big { gap: 8px 14px; }
.prices--big .price { font-size: 44px; line-height: 1.1; }
.prices--big .price-was { font-size: 20px; }
.prices--big .price-ref { font-size: 17px; }
.prices--big .pill { font-size: 14px; padding: 4px 12px; white-space: normal; }
.chuleta-row__today .pill, .page-head .pill { white-space: normal; }
.blurb { color: var(--text); font-size: 17px; }
.why { display: flex; flex-direction: column; gap: 4px; }
.why h2 { font-size: 18px; font-weight: 700; }
.why p { color: var(--text); }
.ended-note { color: var(--soft); font-weight: 600; }
.deal-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.deal-info .meta { font-size: 14px; }

.chart-card { padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.chart-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.chart-card__head h2 { font-size: 20px; font-weight: 700; }
.chart-card__foot { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; color: var(--soft); }
.chart { display: block; width: 100%; height: auto; }
.chart--phone { display: none; }

.more-deals { display: flex; flex-direction: column; gap: 12px; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini { padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--tinta); }
.mini:hover { border-color: var(--line-strong); color: var(--tinta); }
.mini__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.price--mini { font-size: 20px; }
.price-ref--mini { font-size: 13px; flex: 1 1 100%; }
.mini__tag { font-size: 13px; font-weight: 700; color: var(--dehesa-dark); }

/* ── Section pages (trampas, chuleta, text) ─────────────────────────── */
.page { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; padding-bottom: 56px; }
.page-head { background: var(--hocico); border-radius: 20px; padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
.page-head p { font-size: 17px; color: var(--text); max-width: 70ch; }
.page-head--aviso { background: var(--aviso-soft); }
.page-head--aviso h1 { color: var(--aviso); }
.counter { font-size: 19px; font-weight: 700; color: var(--tinta); }

.case { padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.case__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.case__title { font-size: 22px; font-weight: 700; line-height: 1.2; }
h1.case__title { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; }
.case__title a { color: var(--tinta); text-decoration: none; }
.case__title a:hover { text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stamp {
  display: inline-flex; align-items: center; padding: 4px 12px; border: 2px solid var(--aviso); border-radius: 8px;
  color: var(--aviso); font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
  transform: rotate(-3deg); white-space: nowrap;
}
.case__claim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-variant-numeric: tabular-nums; }
.case__facts { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.case__facts li { padding-left: 18px; position: relative; }
.case__facts li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--aviso); }
.case__advice { font-weight: 700; }

.chuleta-group { display: flex; flex-direction: column; gap: 10px; }
.chuleta-group h2 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.chuleta-list { list-style: none; padding: 0; overflow: hidden; }
.chuleta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.chuleta-row:first-child { border-top: 0; }
.chuleta-row__name { flex: 1 1 260px; min-width: 0; font-weight: 700; }
.chuleta-row__name a { color: var(--tinta); }
.chuleta-row__num { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--soft); font-size: 15px; }
.chuleta-row__num strong { font-size: 22px; color: var(--tinta); margin-left: 6px; }
.chuleta-row__today { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.prose { padding: 28px 32px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; max-width: 820px; color: var(--text); }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--tinta); margin-top: 10px; }
.prose ol, .prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--tinta); }
.draft { background: var(--hocico); border: 1px dashed #D9B45C; border-radius: 12px; padding: 12px 16px; color: var(--amber-ink); font-size: 15px; }
.pending { background: var(--amber-soft); color: var(--amber-ink); padding: 0 6px; border-radius: 4px; }

.page-head--slim { padding: 22px 32px; gap: 6px; }
.page-head--slim h1 { font-size: 32px; }
.page-head .prices { font-size: 16px; color: var(--text); gap: 8px 14px; }
.faq { max-width: 860px; }
.faq__item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.faq__item h2 { margin-top: 4px; }
.page .crumbs { margin-bottom: -12px; }

/* /sigue: the page our Instagram and TikTok profiles link to */
.sigue { max-width: 560px; }
.sigue__head { align-items: center; text-align: center; }
.sigue__head p { font-size: 18px; font-weight: 600; color: var(--tinta); }
.sigue__links { display: flex; flex-direction: column; gap: 12px; }
.sigue__links .btn { width: 100%; justify-content: center; text-align: center; height: auto; min-height: 56px; padding: 12px 20px; }
.sigue__note { text-align: center; color: var(--soft); font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot { background: var(--white); border-top: 1px solid var(--line); }
.foot__inner { padding-top: 20px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--soft); }
.foot__about { max-width: 80ch; color: var(--soft); padding-bottom: 4px; }
.foot__about strong { color: var(--tinta); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .chart--wide { display: none; }
  .chart--phone { display: block; max-width: 560px; }
}
@media (max-width: 360px) {
  .deal__actions { flex-direction: column; }
}

/* ── Phone ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top__row { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .brand { margin-right: auto; }
  .brand img { width: 40px; height: 40px; }
  .wordmark { font-size: 25px; }
  .top__tg { order: 2; width: 44px; padding: 0; }
  .top__tg span { display: none; }
  .top__tg svg { width: 20px; height: 20px; }
  .search { order: 3; flex: 1 1 100%; }
  .cats__row { flex-wrap: nowrap; overflow-x: auto; padding-top: 0; padding-bottom: 12px; scrollbar-width: none; }
  .cats__row::-webkit-scrollbar { display: none; }
  .cats { border-top: 0; }
  .top { border-bottom: 0; }
  .cats__gap { display: none; }
  .chip { flex: 0 0 auto; padding: 0 16px; order: 3; }
  .cats__row .chip:nth-child(1), .cats__row .chip:nth-child(2) { order: 1; }
  .chip--trampa, .chip--chuleta { order: 2; }
  .hero-wrap { padding-top: 16px; }
  .hero { padding: 20px; border-radius: 18px; gap: 12px; }
  .hero h1 { font-size: 30px; line-height: 1.08; flex-basis: 100%; }
  .ticks { gap: 6px; font-size: 15px; }
  .ticks svg { width: 18px; height: 18px; }
  .layout { padding-top: 16px; padding-bottom: 24px; gap: 12px; }
  .feed { gap: 12px; flex-basis: 100%; }
  .h-display { font-size: 22px; }
  .deal { padding: 14px; gap: 12px; align-items: flex-start; }
  .deal__tile { flex: 0 0 72px; width: 72px; height: 72px; }
  .deal__tile svg { width: 30px; height: 30px; }
  .deal__body { flex: 1 1 0; gap: 5px; }
  .deal__title { font-size: 16px; }
  .deal__actions { flex: 1 1 100%; flex-direction: row; }
  .deal__actions > * { flex: 1 1 0; min-width: 0; }
  .deal__actions .btn { width: 100%; padding: 0 10px; }
  .deal__actions .btn--ghost { font-size: 14px; white-space: nowrap; gap: 5px; }
  .spark { max-width: none; height: 26px; }
  .side__card { padding: 18px; }
  .deal-page { gap: 18px; padding-bottom: 24px; }
  .crumbs span:last-child { display: none; }
  .crumbs span:nth-last-child(2) { display: none; }
  .deal-top { gap: 16px; }
  .deal-photo { flex: 1 1 100%; height: 240px; border-radius: 18px; }
  .deal-photo--empty { display: none; }  /* no photo: on a phone the icon box only costs space */
  .deal-info h1 { font-size: 28px; }
  .prices--big .price { font-size: 36px; }
  .deal-cta .btn, .deal-cta form { width: 100%; }
  .pasalo .pasalo__label { flex: 1 1 100%; margin: 0; }
  .pasalo .pasalo__btn { flex: 1 1 0; justify-content: center; height: 44px; }
  .chart-card { padding: 16px; border-radius: 18px; }
  .more-grid { grid-template-columns: 1fr; }
  .page { padding-top: 16px; padding-bottom: 24px; gap: 16px; }
  .page-head { padding: 20px; border-radius: 18px; }
  .page-head h1 { font-size: 30px; }
  .page-head--slim { padding: 18px 20px; }
  .page-head--slim h1 { font-size: 26px; }
  .page-head p { font-size: 16px; }
  .counter { font-size: 17px; }
  .case { padding: 16px; border-radius: 18px; }
  .case__title { font-size: 19px; }
  h1.case__title { font-size: 26px; }
  .prose { padding: 20px; border-radius: 18px; }
  .chuleta-row { padding: 12px 16px; }
  .foot__nav { gap: 0 20px; }
}
.counter-note { font-size: 14px; color: var(--muted); }

/* ── Dark mode: only for visitors whose phone or computer is set to dark ──────
   Roderick's yes, 19 Nov 2026: automatic, no button; the light design stays the default.
   The same tokens, darker. Every text colour here has at least 5.9:1 contrast. */
@media (prefers-color-scheme: dark) {
  :root {
    --dehesa: #3DB58A;
    --dehesa-dark: #74D6B0;
    --dehesa-soft: #163A2D;
    --tinta: #EEF3EF;
    --text: #D2DCD6;
    --soft: #B0BDB6;
    --muted: #97A69F;
    --niebla: #0F1613;
    --hocico: #2A2315;
    --amber-soft: #3B2F12;
    --amber-ink: #F5C76E;
    --aviso: #F28B74;
    --aviso-soft: #3A1D17;
    --line: #29342F;
    --line-strong: #3B4842;
    --tile: #1F2925;
    --white: #17201C;  /* cards, header and footer */
  }
  a:hover { color: #A6E8CD; }
  .btn--amber:not(.btn--off), .btn--amber:not(.btn--off):hover { color: #14201B; }  /* dark text on amber, as in light mode */
  .notice { border-bottom-color: #4A3D1C; }
  .chip--trampa { border-color: #5E332A; }
  .chip--chuleta { border-color: #5C4A21; }
  .more--aviso:hover { color: #F7B3A3; }
  .pill--grey { background: #29342F; }
  .draft { border-color: #7A6227; }
  /* Product photos keep their own white background, framed like a print. */
  .tile__img { background: #FFFFFF; }
  /* The price charts are drawn with fixed colours (app/charts.py); here they take the dark ones. */
  .chart line[stroke="#DDE5DF"] { stroke: var(--line-strong); }
  .chart text[fill="#5F7068"] { fill: var(--muted); }
  .chart text[fill="#14201B"] { fill: var(--tinta); }
  .chart [stroke="#FFFFFF"] { stroke: var(--white); }
  .chart polyline[stroke="#1C7A5A"], .spark polyline { stroke: var(--dehesa); }
  .chart circle[fill="#1C7A5A"] { fill: var(--dehesa); }
  .chart [stroke="#A83A27"] { stroke: var(--aviso); }
  .chart text[fill="#A83A27"] { fill: var(--aviso); }
}
