*{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:#212529;background:#F8F9FA}
.astro-7FjDs2Gf{background:#1B262C;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:#1B262C}
.card h2 a:hover{color:#00E676}
.read-more{color:#00E676}
.article-content h1{font-family:'Oswald',serif}
.article-content h2{font-family:'Oswald',serif}
.article-content a{color:#00E676}
.article-content img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* v.cf2fc9 — layout revision
   sp-perform-es · "Cuaderno de Rendimiento" — Ariana Montero, Ambato, Ecuador
   Diario de rendimiento mental para corredoras/es amateur de montaña.
   Palette "amanecer en el páramo": slate-índigo #33465A + ámbar #D68A3E on warm paper #FAF7F2,
   with ONE restrained 'moment' colour — ciruela #7C4A5C — used in exactly two places
   (capitular del ensayo destacado + regla de "Selección de la editora").
   Fonts: Lora (serif editorial) + Mulish (sans de lectura larga), loaded via @font-face
   (the top-of-file @import dies in the deploy concat, so real faces are declared below).
   Live build is Astro (real `astro-*` classes) — selectors are element/structural only.
   Affiliate prefix is `/ref/`; those links are INLINE in prose + a comparison <table>,
   so they read as warm marked recommendations, never mid-sentence pills.
*/

/* ── 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-moment:       #7C4A5C; /* ciruela — el único tercer color, 2 usos */
  --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); }

/* ── Fonts: real @font-face (the @import is inert after concat) ─────────── */
@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;
}

/* ── 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 main, :root article {
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: 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); }

/* ════════════════════════ MASTHEAD ════════════════════════ */
/* Full-bleed páramo band: layered photo (assigned /theme-assets/top-image.jpg) over a
   rich slate gradient fallback — if the asset 404s, the gradient carries the atmosphere.
   Serif-italic wordmark + amber kicker + italic manifesto + amber mountain monogram. */
:root body > header:nth-of-type(1) {
  max-width: none;
  background:
    linear-gradient(160deg, rgba(30,43,57,.74) 0%, rgba(30,43,57,.82) 60%, rgba(20,29,39,.9) 100%),
    url("/theme-assets/top-image.jpg") center/cover no-repeat,
    linear-gradient(158deg, #3A4E63 0%, #2A3A4B 55%, #1E2B39 100%);
  border: 0;
  border-bottom: 3px solid var(--color-accent);
  padding: 3.2rem 20px 2.4rem;
  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;
}
/* Signature: amber mountain-ridge monogram — the mark of this cuaderno */
:root body > header:nth-of-type(1)::after {
  content: "";
  display: block;
  width: 46px; height: 26px; margin: 1.15rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='26' viewBox='0 0 46 26'%3E%3Cpath d='M2 24 L15 6 L23 15 L31 4 L44 24' fill='none' stroke='%23D68A3E' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.92;
}

/* ════════════════════════ HOMEPAGE ════════════════════════ */
/* Home main carries `> div > h2` cards; article main carries `> 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 (2-col grid). `:has(> h2)` keeps these OFF the archive
   tail (which has no h2); `[class]` out-specifies the template `.astro-*` descendants. */
:root main:nth-of-type(1) > div[class]:has(> h2) { grid-column: span 3; padding: 1.7rem 0 0; margin: 0; }
:root main:nth-of-type(1) > div[class]:has(> h2) > 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]:has(> h2) > h2 > a { text-decoration: none; color: var(--color-heading); }
:root main:nth-of-type(1) > div[class]:has(> h2) > h2 > a:hover { color: var(--color-primary); }
:root main:nth-of-type(1) > div[class]:has(> h2) > 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]:has(> h2) > p:nth-of-type(2) {
  font-size: 0.95rem; color: var(--color-text); line-height: 1.6; max-width: 42ch;
}
:root main:nth-of-type(1) > div[class]:has(> h2) > a {
  display: inline-block; margin-top: 0.35rem; font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-link); text-decoration: none;
}
:root main:nth-of-type(1) > div[class]:has(> h2) > a:hover { color: var(--color-primary); }

/* Hairline dividers between chronological rows (grid cards, 6th onward) */
:root main:nth-of-type(1) > div[class]:nth-of-type(n+6):has(> h2) {
  border-top: 1px solid var(--color-border);
  padding-top: 1.6rem;
}

/* ── Hero = card 1, the loud voice ── */
:root main:nth-of-type(1) > div[class]:nth-of-type(1) {
  grid-column: 1 / -1;
  padding: 0.4rem 0 0;
  margin-bottom: 0.4rem;
  border: 0;
}
:root main:nth-of-type(1) > div[class]: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[class]:nth-of-type(1) > p:nth-of-type(1)::before {
  content: "Último ensayo · "; color: var(--color-primary);
}
:root main:nth-of-type(1) > div[class]: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[class]: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;
}
/* MOMENT #1 — capitular ciruela del ensayo destacado */
:root main:nth-of-type(1) > div[class]: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-moment);
}
:root main:nth-of-type(1) > div[class]: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[class]:nth-of-type(1) > a:hover { background: var(--color-primary); color: #FBF7F0; }

/* MOMENT #2 — full-row "Selección de la editora" label rendered by the hero's ::after
   (hero spans 1/-1, so its block ::after spans the whole row above the Picks band). */
:root main:nth-of-type(1) > div[class]:nth-of-type(1)::after {
  content: "SELECCIÓN DE LA EDITORA · EMPIEZA POR AQUÍ";
  display: block;
  margin-top: 2.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-moment);
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-moment);
}

/* ── Editor's Picks band = cards 2-4, 3 across, filled surface boxes ── */
:root main:nth-of-type(1) > div[class]:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2;
  margin-top: 1.5rem;
  padding: 1.6rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
:root main:nth-of-type(1) > div[class]:nth-of-type(n+2):nth-of-type(-n+4) > h2 { font-size: 1.14rem; margin-top: 0.1rem; }
:root main:nth-of-type(1) > div[class]:nth-of-type(n+2):nth-of-type(-n+4) > p:nth-of-type(2) { font-size: 0.88rem; max-width: none; }

/* ── Lead journal entry = card 5, full-width, opened by hero-strip #1 ── */
:root main:nth-of-type(1) > div[class]:nth-of-type(5) {
  grid-column: 1 / -1;
  padding: 0;
  margin-top: 3.2rem;
}
/* STRIP 1 — "EN ORDEN DE ESCRITURA" (between Picks and the journal) */
:root main:nth-of-type(1) > div[class]:nth-of-type(5)::before {
  content: "EN ORDEN DE ESCRITURA";
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 224px; margin: 0 0 1.9rem;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    url("/theme-assets/hero-photo.jpg") center 30% / cover no-repeat,
    linear-gradient(135deg, #3A4E63 0%, #26303d 100%);
  color: #FBF7F0;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
:root main:nth-of-type(1) > div[class]:nth-of-type(5) > h2 { font-size: 1.7rem; font-style: italic; max-width: 22ch; }
:root main:nth-of-type(1) > div[class]:nth-of-type(5) > p:nth-of-type(2) { font-size: 1.02rem; max-width: 60ch; }

/* ── Archive tail (last div, title-only rows) = full-width 3-col magazine index ──
   M7: same design system as the journal cards above — boxed cream cells in a real
   grid (NOT css-columns) so every cell in a row stretches to equal height, each
   with the same border/radius/shadow token and a hover lift. */
:root main:nth-of-type(1) > div[class]:not(:has(> h2)) {
  grid-column: 1 / -1;
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  align-items: stretch;
}
/* STRIP 2 — "LEER MÁS" (between the grid and the archive index) — spans all 3 cols */
:root main:nth-of-type(1) > div[class]:not(:has(> h2))::before {
  content: "LEER MÁS";
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  height: 232px; margin: 0 0 1.8rem;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    url("/theme-assets/hero-photo.jpg") center 70% / cover no-repeat,
    linear-gradient(135deg, #2E3D4d 0%, #1E2B39 100%);
  color: #FBF7F0;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
/* Each tail entry = boxed cream card, same tokens as the journal cards up top */
:root main:nth-of-type(1) > div[class]:not(:has(> h2)) > p {
  margin: 0;
  padding: 20px 22px;
  max-width: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  line-height: 1.45;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
:root main:nth-of-type(1) > div[class]:not(:has(> h2)) > p:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}
:root main:nth-of-type(1) > div[class]:not(:has(> h2)) > p > a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem; font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
}
:root main:nth-of-type(1) > div[class]:not(:has(> h2)) > p > a:hover {
  color: var(--color-primary);
}

/* ════════════════════════ 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 + featured images: one full-width treatment (fixes the tiny inline-img) */
: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 CTAs (`/ref/`, `/try/`, `/go/`, `/out/`): distinct accent-tinted pills.
   M10 — the prior warm inline text-mark read as plain orange prose links (no visible
   pill), so affiliate links now render as chip/button CTAs with a solid tinted fill,
   defined border, radius, padding and a leading arrow — unmistakably set off from the
   underlined body links. Full element path + attribute out-specifies `:root a`. */
:root main:nth-of-type(1):has(> article) article a[href^="/ref/"],
:root main:nth-of-type(1):has(> article) article a[href^="/try/"],
:root main:nth-of-type(1):has(> article) article a[href^="/go/"],
:root main:nth-of-type(1):has(> article) article a[href^="/out/"] {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84em;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--color-primary-dark);
  background: color-mix(in srgb, var(--color-accent) 26%, var(--color-bg));
  border: 1.5px solid color-mix(in srgb, var(--color-accent) 62%, var(--color-border));
  border-radius: 999px;
  padding: 0.14em 0.72em 0.14em 0.62em;
  text-decoration: none;
  vertical-align: baseline;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
:root main:nth-of-type(1):has(> article) article a[href^="/ref/"]::before,
:root main:nth-of-type(1):has(> article) article a[href^="/try/"]::before,
:root main:nth-of-type(1):has(> article) article a[href^="/go/"]::before,
:root main:nth-of-type(1):has(> article) article a[href^="/out/"]::before {
  content: "→";
  font-weight: 700;
  margin-right: 0.34em;
  color: var(--color-accent);
}
:root main:nth-of-type(1):has(> article) article a[href^="/ref/"]:hover,
:root main:nth-of-type(1):has(> article) article a[href^="/try/"]:hover,
:root main:nth-of-type(1):has(> article) article a[href^="/go/"]:hover,
:root main:nth-of-type(1):has(> article) article a[href^="/out/"]:hover {
  background: var(--color-primary);
  color: #FBF7F0;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  transform: translateY(-1px);
}
:root main:nth-of-type(1):has(> article) article a[href^="/ref/"]:hover::before,
:root main:nth-of-type(1):has(> article) article a[href^="/try/"]:hover::before,
:root main:nth-of-type(1):has(> article) article a[href^="/go/"]:hover::before,
:root main:nth-of-type(1):has(> article) article a[href^="/out/"]:hover::before {
  color: #FBF7F0;
}

/* Comparison <table> — editorial, warm, hairline rows */
:root main:nth-of-type(1) article table {
  width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem;
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
}
:root main:nth-of-type(1) article table thead th {
  background: var(--color-primary); color: #FBF7F0;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: left;
  padding: 0.75rem 1rem;
}
:root main:nth-of-type(1) article table td {
  padding: 0.8rem 1rem; border-top: 1px solid var(--color-border);
  vertical-align: top; line-height: 1.5;
}
:root main:nth-of-type(1) article table tbody tr:nth-child(even) td { background: rgba(241,236,226,.55); }
:root main:nth-of-type(1) article table td:first-child { font-weight: 700; color: var(--color-heading); }

/* Related-articles nav — bordered box; keep its own inline "Artículos relacionados:" em */
:root main:nth-of-type(1):has(> article) > nav {
  max-width: var(--max-content);
  margin: 3.4rem auto 0;
  padding: 1.5rem 1.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
:root main:nth-of-type(1):has(> article) > nav p { max-width: none; margin: 0; line-height: 1.9; }
:root main:nth-of-type(1):has(> article) > nav em {
  display: block; font-style: normal;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-primary);
  margin-bottom: 0.6rem;
}
:root main:nth-of-type(1):has(> article) > nav a {
  font-family: var(--font-heading); color: var(--color-heading);
  text-decoration: none;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
}
:root main:nth-of-type(1):has(> article) > nav a:hover {
  color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px;
}

/* ── 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[class]:nth-of-type(1),
  :root main:nth-of-type(1) > div[class]:nth-of-type(n+2):nth-of-type(-n+4),
  :root main:nth-of-type(1) > div[class]:nth-of-type(5),
  :root main:nth-of-type(1) > div[class]:not(:has(> h2)) { grid-column: 1 / -1; }
  :root main:nth-of-type(1) > div[class]:not(:has(> h2)) { grid-template-columns: repeat(2, 1fr); }
  :root main:nth-of-type(1) > div[class]:nth-of-type(n+2):nth-of-type(-n+4) { margin-top: 1.2rem; }
  :root main:nth-of-type(1) > div[class]:nth-of-type(1) > h2 { font-size: 1.95rem; max-width: none; }
  :root main:nth-of-type(1) > div[class]:nth-of-type(5) > h2 { font-size: 1.5rem; }
  :root main:nth-of-type(1) > div[class]:nth-of-type(5)::before,
  :root main:nth-of-type(1) > div[class]:not(:has(> h2))::before { height: 190px; }
  :root body > header:nth-of-type(1) { padding: 2.4rem 20px 1.9rem; }
  :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; }
}

@media (max-width: 640px) {
  :root { --size-base: 17px; --size-h1: 1.85rem; --size-h2: 1.4rem; --size-h3: 1.15rem; --space-section: 2rem; }
  :root main, :root article { padding-inline: var(--space); }
  :root main:nth-of-type(1) > div[class]:not(:has(> h2)) { grid-template-columns: 1fr; }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Monocle-Swiss overlay=25% grid=equal scale=balanced family=flat-divs */


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > div:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── flat-divs family: cards 5 & 6 also get photo headers ── */
:root main:not(:has(> h1)) > div:nth-of-type(5) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-1.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(6) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1))::before,
  :root main:not(:has(> h1))::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

