*{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-KZOj36rZ{max-width:640px;margin:0 auto;padding:0 20px}
.astro-SMg3Z91S{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.astro-SMg3Z91S h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.astro-SMg3Z91S p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.astro-SMg3Z91S a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.astro-DCCNNwZj{padding:20px 0}
.astro-DCCNNwZj h2{font-size:18px;font-weight:400;margin-bottom:4px}
.astro-DCCNNwZj h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.astro-DCCNNwZj h2 a:hover{border-bottom-color:#2a2a2a}
.astro-DCCNNwZj .astro-UJWWtXPF{font-size:12px;color:#aaa;margin-bottom:6px}
.astro-DCCNNwZj p{font-size:14px;color:#666}
.astro-DI6tDiCC{color:#888;font-size:13px;text-decoration:none}
.astro-DI6tDiCC:hover{color:#2a2a2a}
.astro-FHEvjN2e{padding-bottom:60px}
.astro-FHEvjN2e h1{font-size:28px;font-weight:400;margin-bottom:8px}
.astro-FHEvjN2e .astro-UJWWtXPF{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.astro-FHEvjN2e h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.astro-FHEvjN2e h3{font-size:17px;margin:28px 0 8px}
.astro-FHEvjN2e p{margin-bottom:18px;font-size:16px}
.astro-FHEvjN2e ul,.astro-FHEvjN2e ol{margin:0 0 18px 20px}
.astro-FHEvjN2e a{color:#555;border-bottom:1px solid #ccc}
.astro-FHEvjN2e a:hover{color:#000;border-bottom-color:#000}
.astro-FHEvjN2e img{max-width:100%;height:auto;margin:24px 0}
.astro-qve5LSUS{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.astro-qve5LSUS a{color:#aaa;text-decoration:none}
.astro-pKAM2CTJ{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.astro-T5mb0vE9{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.astro-aPsbWbzM{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.astro-vNPZGFag{margin:0 auto 32px;max-width:720px}
.astro-QtmBDvEy{width:100%;height:auto}
.astro-433xrMiJ{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.astro-433xrMiJ em{color:#aaa}
.astro-433xrMiJ a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.astro-JUu3yAPZ{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.astro-JUu3yAPZ p{padding:3px 0;margin:0;font-size:15px}
.astro-JUu3yAPZ a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.astro-JUu3yAPZ a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Bitter:wght@400;700&display=swap');
body{font-family:'Rubik',sans-serif;color:#343a40;background:#fffdf7}
.astro-SMg3Z91S{background:#212529;color:#fff}
.astro-SMg3Z91S h1{font-family:'Bitter',serif;color:#fff}
.astro-SMg3Z91S p{color:rgba(255,255,255,.75)}
.astro-SMg3Z91S a{color:#fff;text-decoration:none}
.card h2{font-family:'Bitter',serif}
.card h2 a{color:#212529}
.card h2 a:hover{color:#ffd166}
.read-more{color:#ffd166}
.article-content h1{font-family:'Bitter',serif}
.article-content h2{font-family:'Bitter',serif}
.article-content a{color:#ffd166}
.article-content img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* === QA round-1 fixes (2026-07-23T02:29:05+0800) === */
/* v.ccbbd7 — layout revision
   Sobre la base de la ronda 1 (masthead firmado, hero + banda de recomendados,
   artículo con capitular y dinkus). Esta revisión: (a) color momento reasignado
   a #8C4A00 para evitar huella entre sitios; (b) dos tiras foto como quiebres de
   sección en la home — "EL DIARIO — MÁS RECIENTES" (tras la banda) y "EL ARCHIVO"
   (antes del índice final); (c) primera entrada del diario a todo el ancho como
   lead; (d) limpieza de la cola: se elimina el bloque genérico en inglés
   ("MORE FROM THE ARCHIVE") que se colaba sobre el índice y sobre la nav de
   artículos relacionados. */

/* --- Tipografía real (el @import moría tras las reglas del template) --------- */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/literata/v40/or3PQ6P12-iJxAIgLa78DkTtAoDhk0oVpaK3YLanFLHpPf2TbLi4J_HWTEKVt8k.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/literata/v40/or3yQ6P12-iJxAIgLYT1PLs1a-t7PU0AbeE9KK5U5Cl4OOCT.woff2) format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/publicsans/v21/ijwRs572Xtc6ZYQws9YVwnNGfJ7QwOk1.woff2) format('woff2');
}

:root {
  --primary: #1F4B4C;
  --accent: #C97C2C;
  --moment: #8C4A00;          /* ámbar quemado — SOLO 2 usos: capitular del hero + banda de recomendados */
  --bg: #FAF6EE;
  --fg: #2A2A28;
  --muted: #6F6C63;
  --border: #DCD4C2;
  --rule: rgba(31, 75, 76, 0.14);
  --paper: #FBF7EF;
  --fh: 'Literata';
  --fb: 'Public Sans';
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fh), Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--fg);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--fh), Georgia, serif;
  font-weight: 600;
  line-height: 1.24;
  color: var(--primary);
  letter-spacing: -0.01em;
}

p { margin-top: 0; margin-bottom: 1.25em; max-width: 68ch; }

a { color: var(--primary); text-underline-offset: 3px; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
a:hover { color: var(--accent); }

strong, b { font-weight: 700; color: var(--fg); }

img { max-width: 100%; height: auto; }

hr { border: none; border-top: 1px solid var(--rule); margin: 2.4em 0; }

::selection { background-color: rgba(31, 75, 76, .16); color: var(--fg); }

a[href^="/out/"]::after { content: " ↗"; font-size: .82em; }


/* ============================================================================
   1. MASTHEAD — firma del sitio: la chapita de Lola (cruz veterinaria) sobre un
      fondo de renglones de cuaderno, wordmark serif itálico y manifiesto.
      Compartido por home (<h1>+<p>) y artículo (<a>); sólo cambian las medidas.
   ========================================================================== */

:root body > header {
  max-width: none;
  width: 100%;
  margin: 0 0 3.4rem;
  padding: 3.4rem 1.5rem 3rem;
  border-bottom: none;
  text-align: center;
  color: var(--paper);
  background-color: #1F4B4C;
  /* renglones de cuaderno · velo teal (semiopaco, legible) · foto opcional detrás.
     Si /theme-assets/landing-photo.jpg da 404, el velo sobre el color base
     mantiene el masthead idéntico al de la ronda 1. */
  background-image:
    repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 33px, rgba(255,255,255,.052) 33px 34px),
    radial-gradient(125% 150% at 50% -25%, rgba(44,100,98,.86) 0%, rgba(31,75,76,.90) 58%, rgba(22,56,58,.95) 100%),
    url("/theme-assets/landing-photo.jpg");
  background-size: auto, auto, cover;
  background-position: center top, center, center 35%;
  background-repeat: repeat, no-repeat, no-repeat;
}

/* la chapita — monograma SVG */
:root body > header::before {
  content: "";
  display: block;
  width: 42px;
  height: 51px;
  margin: 0 auto 1.5rem;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2058'%3E%3Ccircle%20cx='24'%20cy='8'%20r='5.6'%20fill='none'%20stroke='%23C97C2C'%20stroke-width='2.2'/%3E%3Ccircle%20cx='24'%20cy='34'%20r='20.5'%20fill='none'%20stroke='%23C97C2C'%20stroke-width='2.2'/%3E%3Cpath%20d='M24%2024v20M14%2034h20'%20stroke='%23C97C2C'%20stroke-width='4.2'%20stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

:root body > header > h1 {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--paper);
  max-width: 900px;
  margin: 0 auto;
}

/* kicker sans tracked — la "voz meta" */
:root body > header > h1::before {
  content: "Montevideo · cuaderno de estudio";
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(212, 148, 84, .95);
  margin-bottom: 1.15rem;
}

:root body > header > h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background-color: var(--accent);
  margin: 1.3rem auto 0;
}

/* manifiesto */
:root body > header > p {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.62;
  color: rgba(250, 246, 238, .74);
  max-width: 600px;
  margin: 1.35rem auto 0;
}

/* wordmark de las páginas interiores */
:root body > header > a {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.018em;
  color: var(--paper);
  text-decoration: none;
  border: none;
}
:root body > header > a:hover { color: var(--accent); }

/* banda más fina en artículo (delta, no un segundo masthead) */
:root body > header:not(:has(> h1)) { padding: 2.2rem 1.5rem 2rem; margin-bottom: 2.8rem; }
:root body > header:not(:has(> h1))::before { width: 30px; height: 36px; margin-bottom: .95rem; }


/* ============================================================================
   2. HOME — jerarquía en tres tiempos:
      hero a todo el ancho → banda "Recomendados para empezar" (3) → grilla 2 col.
   ========================================================================== */

:root main:nth-of-type(1):has(> div > h2) {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 2.4rem;
  align-items: stretch;      /* refix iter=1 · M5/M4: tarjetas de una misma fila igualan altura */
  counter-reset: entrada;
}

:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) { position: relative; margin: 0; }

/* -- CTA base de las tarjetas (y traducción del "read more →" en inglés) ----- */
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > a {
  display: inline-block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 124, 44, .45);
  padding-bottom: .22rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > a::before {
  content: "Seguir leyendo →";
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* -- 2.1 HERO: la voz alta ---------------------------------------------------- */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 15rem 1fr;
  column-gap: 3rem;
  align-items: start;
  padding: 1rem 0 3.2rem;
  border-bottom: 1px solid var(--rule);
}

/* riel izquierdo: badge + fecha + firma — llena la columna que quedaría vacía */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:first-child {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: .55rem 0 0;
  padding-top: .95rem;
  max-width: none;
  border-top: 2px solid var(--primary);
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:first-child::before {
  content: "Última entrada";
  display: block;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--primary);
  margin-bottom: .6rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:first-child::after {
  content: "Por Mateo · Montevideo";
  display: block;
  margin-top: 1.15rem;
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > h2 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--primary);
  margin: 0 0 1.1rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > h2 a { color: inherit; text-decoration: none; border: none; }
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > h2 a:hover { color: var(--accent); }

/* capitular en rojo-lápiz — USO 1 de 2 del color momento */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
  display: block;
  overflow: visible;
  -webkit-line-clamp: none;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--fg);
  max-width: 58ch;
  margin: 0 0 1.8rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:nth-of-type(2)::first-letter {
  float: left;
  font-family: var(--fh), Georgia, serif;
  font-weight: 700;
  font-size: 3.5em;
  line-height: .78;
  color: var(--moment);
  margin: .05em .11em 0 0;
}

/* CTA del hero: píldora contorneada */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > a {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 2px;
  padding: .78rem 1.75rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > a::before { content: "Leer la entrada completa →"; letter-spacing: .2em; }
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > a:hover { background-color: var(--primary); color: var(--bg); border-color: var(--primary); }

/* -- 2.2 BANDA "Recomendados para empezar" (tarjetas 2–4) --------------------- */
/* filete + rótulo en rojo-lápiz — USO 2 de 2 del color momento */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4):has(> h2) {
  grid-column: span 2;
  margin-top: 5.4rem;
  /* refix iter=1 · M5: marco de tarjeta (radio + hairline + sombra) conservando el filete ámbar */
  padding: 1.6rem 1.8rem 1.7rem;
  border: 1px solid var(--border);
  border-top: 2px solid var(--moment);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  background-color: var(--paper);
  background-image: linear-gradient(180deg, rgba(140, 74, 0, .06), rgba(140, 74, 0, 0) 72%);
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2)::before {
  content: "Recomendados para empezar";
  position: absolute;
  left: 0;
  bottom: calc(100% + 1.35rem);
  white-space: nowrap;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--moment);
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4):has(> h2) > h2 {
  font-size: 1.06rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4):has(> h2) > a { display: none; }

/* -- 2.3 GRILLA CRONOLÓGICA (tarjetas 5+) ------------------------------------ */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+5):has(> h2) {
  grid-column: span 3;
  counter-increment: entrada;
  margin-top: 2.3rem;
  padding: 1.5rem 0 .3rem;
  border-top: 1px solid var(--rule);
}
/* primera fila de la grilla 2-col = tarjetas 6 y 7 (la 5 es el lead a todo ancho) */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+6):nth-of-type(-n+7):has(> h2) { margin-top: 4.2rem; }

/* refix iter=1 · M5: las entradas del diario a 2 columnas (6+) pasan a tarjetas crema
   con radio, hairline y sombra suave; el lead (tarjeta 5) queda a todo el ancho sin marco */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+6):has(> h2) {
  padding: 1.8rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  background-color: var(--paper);
}

:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+5):has(> h2) > p:first-child::before {
  content: "N.º " counter(entrada, decimal-leading-zero) "  ·  ";
  color: rgba(31, 75, 76, .58);
}

/* -- 2.3b LEAD del diario (tarjeta 5, a todo el ancho) + TIRA 1 --------------- */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5):has(> h2) {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 0;
  border-top: none;
}
/* TIRA 1 — quiebre de sección entre la banda de recomendados y el diario */
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5):has(> h2)::before {
  content: "EL DIARIO — MÁS RECIENTES";
  display: grid;
  place-items: center;
  height: 200px;
  margin: 5.4rem 0 2.6rem;
  border-radius: 8px;
  background-color: #1F4B4C;
  background-image:
    linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .25)),
    url("/theme-assets/post-header.jpg");
  background-size: cover;
  background-position: center 30%;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--paper);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5):has(> h2) > h2 {
  font-size: 1.7rem;
  line-height: 1.22;
}
:root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5):has(> h2) > p:nth-of-type(2) {
  -webkit-line-clamp: 2;
  max-width: 62ch;
  font-size: .95rem;
}

/* -- 2.4 tipografía común de las tarjetas ------------------------------------ */
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > p:first-child {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: none;
  margin: 0 0 .55rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > h2 {
  font-family: var(--fh), Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.32;
  color: var(--primary);
  margin: 0 0 .55rem;
}
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > h2 a:hover { color: var(--accent); border-bottom-color: rgba(201, 124, 44, .55); }

:root main:nth-of-type(1):has(> div > h2) > div:has(> h2) > p:nth-of-type(2) {
  font-family: var(--fh), Georgia, serif;
  font-size: .87rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: none;
  margin: 0 0 .9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* -- 2.5 índice final del cuaderno + TIRA 2 "EL ARCHIVO" --------------------- */
:root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border-top: none;
  display: grid;
  /* refix iter=1 · M7: índice de archivo como grilla de tarjetas (celdas de igual altura por fila) */
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
  align-items: stretch;
}
/* TIRA 2 — quiebre de sección entre la grilla del diario y el índice */
:root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2))::before {
  content: "EL ARCHIVO";
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  height: 200px;
  margin: 5.6rem 0 2.6rem;
  border-radius: 8px;
  background-color: #16383A;
  background-image:
    linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .25)),
    url("/theme-assets/post-header.jpg");
  background-size: cover;
  background-position: center 70%;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
/* refix iter=1 · M7: cada fila del índice es una celda-tarjeta crema con el mismo sistema
   visual que las tarjetas del diario (paper + hairline + radio + sombra + hover con elevación) */
:root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) > p {
  margin: 0;
  padding: 20px 22px;
  max-width: none;
  font-size: .92rem;
  line-height: 1.4;
  background-color: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
:root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) > p:hover {
  border-color: rgba(201, 124, 44, .5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}
:root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) > p > a {
  font-family: var(--fh), Georgia, serif;
  color: var(--primary);
  text-decoration: none;
  border: none;
}
:root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) > p > a:hover { color: var(--accent); }


/* ============================================================================
   3. ARTÍCULO — medida de lectura generosa, capitular, dinkus entre secciones.
   ========================================================================== */

:root main:nth-of-type(1):has(> article) {
  max-width: 41rem;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

:root main:nth-of-type(1):has(> article) > h1 {
  font-family: var(--fh), Georgia, serif;
  font-weight: 600;
  font-size: 2.55rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin: .3rem 0 1rem;
}

:root main:nth-of-type(1):has(> article) > span {
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
:root main:nth-of-type(1):has(> article) > span::after { content: " · por Mateo · cuaderno veterinario"; }

:root main:nth-of-type(1):has(> article) > article > p {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.045rem;
  line-height: 1.78;
  color: var(--fg);
  max-width: none;
  margin: 0 0 1.35rem;
}

/* lede + capitular */
:root main:nth-of-type(1):has(> article) > article > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.66;
  color: #232320;
}
:root main:nth-of-type(1):has(> article) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--fh), Georgia, serif;
  font-weight: 700;
  font-size: 3.3em;
  line-height: .8;
  color: var(--primary);
  margin: .04em .1em 0 0;
}

/* primer párrafo de cada sección, un punto más grande: rompe el muro de texto */
:root main:nth-of-type(1):has(> article) > article > h2 + p {
  font-size: 1.11rem;
  line-height: 1.7;
  color: #21211D;
}

:root main:nth-of-type(1):has(> article) > article > h2 {
  font-family: var(--fh), Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.26;
  letter-spacing: -0.014em;
  color: var(--primary);
  border-bottom: none;
  padding: 0;
  margin: 3.4rem 0 1rem;
}
/* dinkus entre secciones */
:root main:nth-of-type(1):has(> article) > article > h2::before {
  content: "✦ ✦ ✦";
  display: block;
  text-align: center;
  font-family: var(--fb), system-ui, sans-serif;
  font-weight: 400;
  font-size: .6rem;
  letter-spacing: .9em;
  text-indent: .9em;
  color: rgba(201, 124, 44, .8);
  margin: 0 0 2.7rem;
}

:root main:nth-of-type(1):has(> article) > article > h3 {
  font-family: var(--fh), Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 2.3rem 0 .7rem;
}

:root main:nth-of-type(1):has(> article) > article a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 124, 44, .42);
  padding-bottom: 1px;
}
:root main:nth-of-type(1):has(> article) > article a:hover { color: var(--primary); border-bottom-color: var(--primary); }
:root main:nth-of-type(1):has(> article) > article a[href^="/out/"] {
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
}

:root main:nth-of-type(1):has(> article) > article ul,
:root main:nth-of-type(1):has(> article) > article ol { margin: 0 0 1.4rem 1.3rem; max-width: none; }
:root main:nth-of-type(1):has(> article) > article li { margin-bottom: .45rem; }

/* cita — pull-quote con comilla colgante */
:root main:nth-of-type(1):has(> article) > article blockquote {
  position: relative;
  margin: 2.4rem 0;
  padding: .2rem 0 .2rem 2.6rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--primary);
  max-width: none;
}
:root main:nth-of-type(1):has(> article) > article blockquote::before {
  content: "“";
  position: absolute;
  left: .5rem;
  top: -.4rem;
  font-family: var(--fh), Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(201, 124, 44, .55);
}
:root main:nth-of-type(1):has(> article) > article blockquote p { font-size: inherit; margin: 0; }

/* avisos legales — como asides, no como pie perdido */
:root main:nth-of-type(1):has(> article) > article > div {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--muted);
  background-color: rgba(31, 75, 76, .045);
  border: none;
  border-left: 2px solid rgba(31, 75, 76, .35);
  padding: .95rem 1.15rem;
  margin: 2rem 0 2.6rem;
}
:root main:nth-of-type(1):has(> article) > article > div em { font-style: italic; }
:root main:nth-of-type(1):has(> article) > article > div:has(img) {
  background: none;
  border: none;
  padding: 0;
  margin: 2.4rem 0;
}
:root main:nth-of-type(1):has(> article) > article img { width: 100%; height: auto; margin: 2.2rem 0; border-radius: 2px; }

/* --- caja "Artículos relacionados" (se conserva, se afina) ------------------ */
:root main > nav {
  display: block;
  background-color: var(--primary);
  border-top: 3px solid var(--accent);
  padding: 1.8rem 1.9rem 1.9rem;
  margin: 3.8rem 0 0;
  font-size: 1rem;
}
:root main > nav > p { margin: 0; padding: 0; max-width: none; font-size: 0; color: transparent; line-height: 1; }
:root main > nav em {
  display: block;
  font-family: var(--fb), system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
:root main > nav a {
  display: block;
  font-family: var(--fh), Georgia, serif;
  font-size: .98rem;
  line-height: 1.45;
  color: var(--paper);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid rgba(250, 246, 238, .16);
  padding: .62rem 0;
}
:root main > nav a:last-of-type { border-bottom: none; padding-bottom: 0; }
:root main > nav a:hover { color: var(--accent); }


/* ============================================================================
   4. FOOTER
   ========================================================================== */

:root body > footer {
  background-color: var(--primary);
  color: rgba(250, 246, 238, .7);
  border-top: none;
  margin-top: 4.6rem;
  padding: 2.6rem 1.5rem;
  text-align: center;
}
:root body > footer::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto 1.5rem;
}
:root body > footer small {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
:root body > footer a { color: rgba(250, 246, 238, .92); text-decoration: none; border-bottom: 1px solid rgba(201, 124, 44, .5); }
:root body > footer a:hover { color: var(--accent); }


/* ============================================================================
   5. RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {
  :root main:nth-of-type(1):has(> div > h2) { max-width: 100%; padding: 0 28px; column-gap: 1.8rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) { grid-template-columns: 12rem 1fr; column-gap: 2.2rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > h2 { font-size: 2.15rem; }
  :root body > header > h1 { font-size: 2.6rem; }
}

@media (max-width: 820px) {
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) { grid-template-columns: 1fr; padding-bottom: 2.6rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:first-child { grid-column: auto; grid-row: auto; margin-bottom: 1.5rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:first-child::after { margin-top: .6rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > h2 { grid-column: auto; grid-row: auto; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:nth-of-type(2) { grid-column: auto; grid-row: auto; max-width: none; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > a { grid-column: auto; grid-row: auto; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4):has(> h2) { grid-column: 1 / -1; margin-top: 2rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2):nth-of-type(-n+4):has(> h2) { margin-top: 5rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2)::before { bottom: calc(100% + 1.2rem); }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+5):has(> h2) { grid-column: 1 / -1; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(n+5):nth-of-type(-n+6):has(> h2) { margin-top: 3.4rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  :root main:nth-of-type(1):has(> div > h2) { padding: 0 20px; }
  :root body > header { padding: 2.6rem 1.2rem 2.4rem; margin-bottom: 2.4rem; }
  :root body > header > h1 { font-size: 2.1rem; }
  :root body > header > h1::before { font-size: .55rem; letter-spacing: .24em; }
  :root body > header > p { font-size: .95rem; }
  :root body > header > a { font-size: 1.45rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > h2 { font-size: 1.85rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(1) > p:nth-of-type(2) { font-size: 1.05rem; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(2)::before { font-size: .6rem; letter-spacing: .2em; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5):has(> h2)::before,
  :root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2))::before { height: 140px; margin: 3.6rem 0 2rem; font-size: .7rem; letter-spacing: .24em; }
  :root main:nth-of-type(1):has(> div > h2) > div:not(:has(> h2)) { grid-template-columns: 1fr; }
  :root main:nth-of-type(1):has(> div > h2) > div:nth-of-type(5):has(> h2) > h2 { font-size: 1.5rem; }
  :root main:nth-of-type(1):has(> article) { padding: 0 1.2rem 2.6rem; }
  :root main:nth-of-type(1):has(> article) > h1 { font-size: 1.95rem; }
  :root main:nth-of-type(1):has(> article) > article > p:first-of-type { font-size: 1.1rem; }
  :root main:nth-of-type(1):has(> article) > article > h2 { font-size: 1.32rem; margin-top: 2.8rem; }
  :root main:nth-of-type(1):has(> article) > article > h2::before { margin-bottom: 2rem; }
  :root main > nav { padding: 1.4rem 1.3rem 1.5rem; }
}


/* 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=Substack-modern overlay=40% grid=asymmetric scale=dramatic 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; }
}


/* premium-upgrade v4 */
/* premium-upgrade v4 — surgical bundle. Applied 2026-08-30.
   Fixes: M10 CTA / M11 dinkus leak / M4 heights / M9 typography / M5 frames.
   Kills v2 "LATEST" label (proven counterproductive from v2 diagnosis). */

/* ── Kill v2 counterproductive homepage label ── */
:root main:not(:has(> h1))::before { content: none !important; }

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* ── M11: prevent dinkus leaking onto article page's first h2 ── */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

/* ── M4: force equal-height cards via grid stretch + card fill ── */
:root main:not(:has(> h1)) > div:has(> div) {
  align-items: stretch !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
:root main:not(:has(> h1)) > div > article {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* also for flat-divs family */
:root main:not(:has(> h1)) > div {
  height: 100% !important;
}

/* ── M9: cap small-title weight so Bebas/Anton counters don't fill in ── */
:root main:not(:has(> h1)) > div > div > h2,
:root main:not(:has(> h1)) > div > div > h2 a,
:root main:not(:has(> h1)) > section > ul > li > a,
:root main:not(:has(> h1)) > div > p > a {
  font-weight: 500 !important;
}

/* ── M5: universal soft frame fallback for card-like elements ── */
:root main:not(:has(> h1)) > div > div,
:root main:not(:has(> h1)) > div > article,
:root main:not(:has(> h1)) > article {
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05) !important;
}

