*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Palatino Linotype',Palatino,'Book Antiqua',serif;line-height:1.9;color:#2a2a2a;background:#fefefe}
.astro-VZMyY19B{max-width:640px;margin:0 auto;padding:0 20px}
.astro-7FjDs2Gf{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.astro-7FjDs2Gf h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.astro-7FjDs2Gf p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.astro-7FjDs2Gf a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.astro-r4BSOHUm{padding:20px 0}
.astro-r4BSOHUm h2{font-size:18px;font-weight:400;margin-bottom:4px}
.astro-r4BSOHUm h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.astro-r4BSOHUm h2 a:hover{border-bottom-color:#2a2a2a}
.astro-r4BSOHUm .astro-Qo4EbRwI{font-size:12px;color:#aaa;margin-bottom:6px}
.astro-r4BSOHUm p{font-size:14px;color:#666}
.astro-gTFtrIYI{color:#888;font-size:13px;text-decoration:none}
.astro-gTFtrIYI:hover{color:#2a2a2a}
.astro-oPntKvdf{padding-bottom:60px}
.astro-oPntKvdf h1{font-size:28px;font-weight:400;margin-bottom:8px}
.astro-oPntKvdf .astro-Qo4EbRwI{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.astro-oPntKvdf h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.astro-oPntKvdf h3{font-size:17px;margin:28px 0 8px}
.astro-oPntKvdf p{margin-bottom:18px;font-size:16px}
.astro-oPntKvdf ul,.astro-oPntKvdf ol{margin:0 0 18px 20px}
.astro-oPntKvdf a{color:#555;border-bottom:1px solid #ccc}
.astro-oPntKvdf a:hover{color:#000;border-bottom-color:#000}
.astro-oPntKvdf img{max-width:100%;height:auto;margin:24px 0}
.astro-9sfSq4rW{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.astro-9sfSq4rW a{color:#aaa;text-decoration:none}
.astro-jC6wYVfn{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.astro-e1IxI0H5{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.astro-5gxwxGi4{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.astro-ah5pVgMA{margin:0 auto 32px;max-width:720px}
.astro-WsLCH3Bm{width:100%;height:auto}
.astro-3HvAv1ml{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.astro-3HvAv1ml em{color:#aaa}
.astro-3HvAv1ml a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.astro-owbHpqjo{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.astro-owbHpqjo p{padding:3px 0;margin:0;font-size:15px}
.astro-owbHpqjo a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.astro-owbHpqjo a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;700&display=swap');
body{font-family:'Inter',sans-serif;color:#2D3748;background:#F7FAFC}
.astro-7FjDs2Gf{background:#1A202C;color:#fff}
.astro-7FjDs2Gf h1{font-family:'Oswald',serif;color:#fff}
.astro-7FjDs2Gf p{color:rgba(255,255,255,.75)}
.astro-7FjDs2Gf a{color:#fff;text-decoration:none}
.card h2{font-family:'Oswald',serif}
.card h2 a{color:#1A202C}
.card h2 a:hover{color:#00DF82}
.read-more{color:#00DF82}
.article-content h1{font-family:'Oswald',serif}
.article-content h2{font-family:'Oswald',serif}
.article-content a{color:#00DF82}
.article-content img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* sp-perform-es — minimal template
   Ariana Montero · Ambato, Ecuador · diario de rendimiento mental para corredoras/es amateur
   Palette: "amanecer en el páramo" — slate-índigo #33465A / ámbar #D68A3E on warm paper #FAF7F2
   Fonts: Lora (heading, serif editorial) + Mulish (body, sans de lectura larga)
   Distinct from paired nd-fit-es (navy #1F3A56 + rust #C1662E, magazine, Archivo+PT Serif)
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --color-bg:           #FAF7F2;
  --color-surface:      #F1ECE2;
  --color-text:         #292A28;
  --color-text-muted:   #6E6D66;
  --color-primary:      #33465A;
  --color-primary-dark: #212E3B;
  --color-secondary:    #5B6B54;
  --color-accent:       #D68A3E;
  --color-border:       #DFD8C9;
  --color-heading:      #20262C;
  --color-link:         #9C5A1E;
  --color-link-hover:   #33465A;
  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Mulish', Arial, sans-serif;
  --size-base: 18px;
  --size-h1:   2.2rem;
  --size-h2:   1.65rem;
  --size-h3:   1.3rem;
  --lh-body:    1.75;
  --lh-heading: 1.3;
  --space:         1rem;
  --space-section: 2.75rem;
  --max-content:   68ch;
  --max-page:      780px;
  --radius: 8px;
}

/* ── Reset + Body ────────────────────────────────────────── */
:root *,
:root *::before,
:root *::after {
  box-sizing: border-box;
}

:root body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  min-height: 100vh;
}

html {
  font-size: var(--size-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-heading);
}

/* ── Headings ────────────────────────────────────────────── */
:root h1,
:root h2,
:root h3,
:root h4,
:root h5,
:root h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  font-weight: 600;
  margin-top: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 0.75);
}

:root h1 {
  font-size: var(--size-h1);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

:root h2 {
  font-size: var(--size-h2);
  letter-spacing: -0.005em;
}

:root h3 {
  font-size: var(--size-h3);
}

:root h4,
:root h5,
:root h6 {
  font-size: 1.1rem;
}

/* ── Paragraphs ──────────────────────────────────────────── */
:root p {
  max-width: var(--max-content);
  margin: 0 0 calc(var(--space) * 1.25);
}

:root p + p {
  margin-top: 0;
}

/* ── Links ───────────────────────────────────────────────── */
:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--color-link) 70%, transparent);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

:root a:hover,
:root a:focus-visible {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

:root a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Lists ───────────────────────────────────────────────── */
:root ul,
:root ol {
  max-width: var(--max-content);
  padding-left: 1.4em;
  margin: 0 0 calc(var(--space) * 1.25);
}

:root li {
  margin-bottom: 0.45em;
  line-height: var(--lh-body);
}

:root li::marker {
  color: var(--color-accent);
}

/* ── Blockquote ──────────────────────────────────────────── */
:root blockquote {
  max-width: var(--max-content);
  border-left: 3px solid var(--color-secondary);
  padding: calc(var(--space) * 0.8) calc(var(--space) * 1.4);
  margin: calc(var(--space) * 1.75) 0;
  background-color: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text);
}

:root blockquote p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

:root blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ── Horizontal rule ─────────────────────────────────────── */
:root hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-section) auto;
  max-width: 6ch;
}

/* ── Images ──────────────────────────────────────────────── */
:root img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

:root figure {
  margin: calc(var(--space) * 1.75) 0;
}

:root figcaption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.5em;
  font-style: italic;
  line-height: 1.45;
}

/* ── Inline emphasis ─────────────────────────────────────── */
:root strong {
  color: var(--color-heading);
}

:root em {
  color: var(--color-primary-dark);
}

/* ── Page layout ─────────────────────────────────────────── */
:root .container,
:root main,
:root article {
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: calc(var(--space) * 1.5);
}

/* ── Site header ─────────────────────────────────────────── */
:root header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: calc(var(--space) * 1.25) 0;
  margin-bottom: var(--space-section);
}

:root header h1,
:root header .site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
}

:root header h1:hover,
:root header .site-title:hover {
  color: var(--color-primary);
}

:root header p,
:root header .site-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25em;
  max-width: none;
}

/* ── Homepage entry separators ───────────────────────────── */
:root main > div + div {
  border-top: 1px solid var(--color-border);
  padding-top: calc(var(--space) * 1.5);
  margin-top: calc(var(--space) * 1.5);
}

/* ── Site footer ─────────────────────────────────────────── */
:root footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-section);
  padding: calc(var(--space) * 1.5) 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

:root footer a {
  color: var(--color-text-muted);
}

:root footer a:hover {
  color: var(--color-primary);
}

/* === R2 fixes (2026-07-10T04:50:37.198881+00:00) === */

/* Fix 2 — fecha de cada entrada en la lista de portada: ancla de escaneo más marcada
   para encontrar más rápido dónde empieza cada bloque nuevo entre catorce entradas */
:root main > div > p:first-child {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --size-base:     17px;
    --size-h1:       1.85rem;
    --size-h2:       1.4rem;
    --size-h3:       1.15rem;
    --space-section: 2rem;
  }

  :root .container,
  :root main,
  :root article {
    padding-inline: var(--space);
  }
}

/* === QA round-1 fixes (2026-07-23T07:59:04+0800) === */
/* Live build is Astro (classes are real `astro-*`), affiliate prefix is `/ref/`,
   theme-assets 404 (no photo masthead available), and the deployed theme layer is a
   stale athletic seed (#1A202C / Inter+Oswald / #FF5722). Both top-of-file @import font
   loads are dead per spec, so real fonts never arrived. This section: (1) loads Lora +
   Mulish via position-independent @font-face; (2) turns the flat homepage feed into
   hero -> Editor's-Picks band -> chronological grid; (3) normalises inline article
   images to full width; (4) promotes `/ref/` affiliate links to CTA pills; (5) reserves
   amber as a deliberate 'moment' colour. Selectors double up pseudo-classes / use
   [class] to out-specify the template's (0,2,0)-(0,3,0) descendant rules. */

/* ── Fonts: real @font-face (the @import above is inert) ─────────────────── */
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwr7Iw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2018-201E, U+2022, U+2039-203A, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'Lora'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url('https://fonts.gstatic.com/s/lora/v37/0QIhMX1D_JOuMw_LIftL.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2018-201E, U+2022, U+2039-203A, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('https://fonts.gstatic.com/s/mulish/v18/1Ptvg83HX_SGhgqk3wot.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2018-201E, U+2022, U+2039-203A, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'Mulish'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('https://fonts.gstatic.com/s/mulish/v18/1Ptwg83HX_SGhgqk2hAjQlW_mEuZ0FsSKeOfGZQ6.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2018-201E, U+2022, U+2039-203A, U+2212, U+FB01-FB02;
}

/* ── Masthead: full-bleed páramo band, serif-italic wordmark, kicker + amber rule ── */
:root body > header:nth-of-type(1) {
  max-width: none;
  background: linear-gradient(158deg, #3A4E63 0%, #2A3A4B 55%, #1E2B39 100%);
  border: 0;
  border-bottom: 3px solid var(--color-accent);
  padding: 3.2rem 20px 2.6rem;
  margin-bottom: var(--space-section);
  text-align: center;
}
:root body > header:nth-of-type(1) > * {
  max-width: 640px;
  margin-inline: auto;
}
:root body > header:nth-of-type(1)::before {
  content: "DIARIO DE RENDIMIENTO MENTAL";
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.95rem;
}
:root body > header:nth-of-type(1) > h1:nth-of-type(1),
:root body > header:nth-of-type(1) > a:nth-of-type(1) {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #FBF7F0;
  text-decoration: none;
  display: inline-block;
}
:root body > header:nth-of-type(1) > p:nth-of-type(1) {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(251, 247, 240, 0.82);
  margin-top: 0.7rem;
  max-width: 46ch;
}

/* ══════════════════════════ HOMEPAGE ══════════════════════════ */
/* main on home has `> div > h2` cards; article main has `> article` instead. */
:root main:nth-of-type(1):has(> div > h2) {
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 2.2rem;
  row-gap: 0;
  align-items: start;
}

/* default = chronological card (cols 5+), out-specifies `.astro-r4BSOHUm` via [class] */
:root main:nth-of-type(1) > div[class] {
  grid-column: span 3;
  padding: 1.7rem 0 0;
  margin: 0;
}
:root main:nth-of-type(1) > div[class] > h2 {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.28;
  margin: 0.15rem 0 0.5rem;
}
:root main:nth-of-type(1) > div[class] > p:nth-of-type(1) {
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}
:root main:nth-of-type(1) > div[class] > p:nth-of-type(2) {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* hairline dividers between chronological rows (cards 5+) */
:root main:nth-of-type(1) > div:nth-of-type(n+5) {
  border-top: 1px solid var(--color-border);
  padding-top: 1.6rem;
}

/* ── Editor's Picks band = cards 2-4, 3 across, filled surface boxes ── */
:root main:nth-of-type(1) > div:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2;
  margin-top: 3.6rem;
  padding: 1.5rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
:root main:nth-of-type(1) > div:nth-of-type(2) {
  position: relative;
}
:root main:nth-of-type(1) > div:nth-of-type(2)::before {
  content: "SELECCIÓN DE LA EDITORA · EMPIEZA POR AQUÍ";
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
}
:root main:nth-of-type(1) > div:nth-of-type(n+2):nth-of-type(-n+4) > h2 {
  font-size: 1.14rem;
}
:root main:nth-of-type(1) > div:nth-of-type(n+2):nth-of-type(-n+4) > p:nth-of-type(2) {
  font-size: 0.88rem;
}

/* ── Hero = card 1, the loud voice ── */
:root main:nth-of-type(1) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  padding: 0.4rem 0 2.6rem;
  margin-bottom: 0.8rem;
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
}
:root main:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1) {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 0.6rem;
}
:root main:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1)::before {
  content: "Último ensayo · ";
  color: var(--color-primary);
}
:root main:nth-of-type(1) > div:nth-of-type(1) > h2 {
  font-family: var(--font-heading);
  font-size: 2.55rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.25rem 0 0.7rem;
  max-width: 16ch;
}
:root main:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2) {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 54ch;
}
:root main:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2)::first-letter {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 3.1rem;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--color-accent);
}
:root main:nth-of-type(1) > div:nth-of-type(1) > a {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  transition: background 0.18s ease, color 0.18s ease;
}
:root main:nth-of-type(1) > div:nth-of-type(1) > a:hover {
  background: var(--color-primary);
  color: #FBF7F0;
}

/* ── Archive strip (last div) = full-width footer index ── */
:root main:nth-of-type(1) > div:last-of-type {
  grid-column: 1 / -1;
  margin-top: 2.6rem;
  position: relative;
}
:root main:nth-of-type(1) > div:last-of-type::before {
  content: "MÁS DEL CUADERNO";
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

/* ══════════════════════════ ARTICLE ══════════════════════════ */
/* Title + byline kicker */
:root main:nth-of-type(1):has(> article) > h1:nth-of-type(1) {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.5rem;
}
:root main:nth-of-type(1):has(> article) > span:nth-of-type(1) {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}
:root main:nth-of-type(1):has(> article) > span:nth-of-type(1)::after {
  content: " · por Ariana Montero";
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Inline images: normalise ALL article images to a single full-width treatment
   (fixes the tiny icon-sized inline-img while keeping the polished full-bleed look) */
:root main:nth-of-type(1):has(> article) > article:nth-of-type(1) img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 2rem auto;
}

/* Dinkus between h2 sections */
:root main:nth-of-type(1) article > h2:nth-of-type(n+2)::before {
  content: "✷ ✷ ✷";
  display: block;
  text-align: center;
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  margin: 2.4rem 0 1.8rem;
  opacity: 0.7;
}

/* Hanging quote on blockquotes */
:root main:nth-of-type(1) article > blockquote {
  position: relative;
}
:root main:nth-of-type(1) article > blockquote::before {
  content: "\00201C";
  position: absolute;
  top: -0.08em;
  left: 0.12em;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  color: var(--color-accent);
  opacity: 0.32;
}

/* Affiliate `/ref/` links -> CTA pills (distinct from grey editorial links) */
:root main:nth-of-type(1) a[href^="/ref/"] {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #FBF7F0;
  background: var(--color-accent);
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 1.05rem;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  transition: background 0.18s ease;
}
:root main:nth-of-type(1) a[href^="/ref/"]:hover {
  background: #B34F2A; /* rust — the one 'moment' escalation on intent */
  color: #FBF7F0;
}
/* Comparison box: div holding only affiliate links */
:root main:nth-of-type(1) article > div:has(> a[href^="/ref/"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  margin: 2rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}

/* ── Homepage responsive: collapse grid, reset every spanning band ── */
@media (max-width: 820px) {
  :root main:nth-of-type(1):has(> div > h2) {
    max-width: 640px;
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  :root main:nth-of-type(1) > div[class],
  :root main:nth-of-type(1) > div:nth-of-type(1),
  :root main:nth-of-type(1) > div:nth-of-type(n+2):nth-of-type(-n+4),
  :root main:nth-of-type(1) > div:last-of-type {
    grid-column: 1 / -1;
  }
  :root main:nth-of-type(1) > div:nth-of-type(n+2):nth-of-type(-n+4) {
    margin-top: 1.4rem;
  }
  :root main:nth-of-type(1) > div:nth-of-type(2)::before {
    position: static;
    display: block;
    margin: 2rem 0 0.4rem;
  }
  :root main:nth-of-type(1) > div:nth-of-type(1) > h2 {
    font-size: 1.95rem;
    max-width: none;
  }
  :root body > header:nth-of-type(1) {
    padding: 2.4rem 20px 2rem;
  }
  :root body > header:nth-of-type(1) > h1:nth-of-type(1),
  :root body > header:nth-of-type(1) > a:nth-of-type(1) {
    font-size: 1.85rem;
  }
}

/* === R3 fixes (2026-07-10T05:30:31.968924+00:00) === */

/* Fix 1 (R2) revertido: la regla ":root article > p:nth-of-type(2)" aplicaba el look de
   aviso legal (gris + líneas) al segundo párrafo de CUALQUIER artículo por posición, sin
   verificar si ese párrafo era realmente el aviso de afiliado. En 4 de 10 artículos ese
   párrafo era escena/reflexión real del diario, y quedaba desfigurada justo en el momento
   más personal del texto. Se retira hasta que la plantilla pueda marcar el párrafo de
   aviso real con una clase propia (ej. .affiliate-notice) en vez de depender de su posición.
   Fix 2 (R2, fecha en portada) se mantiene sin cambios — confirmado que funciona bien. */
