*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.Layout_wrap__bdSiU{max-width:860px;margin:0 auto;padding:0 20px}
.Article_title__FVg6w{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.Article_title__FVg6w h1{font-size:22px;font-weight:700;margin-bottom:2px}
.Article_title__FVg6w p{font-size:14px;color:#666}
.Article_title__FVg6w a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.Wrapper_root__WNXzQ{display:flex;flex-direction:column;gap:20px}
.Layout_title__6Mk21{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.Layout_title__6Mk21:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.Layout_title__6Mk21 h2{font-size:19px;margin-bottom:6px}
.Layout_title__6Mk21 h2 a{color:#1a1a1a;text-decoration:none}
.Layout_title__6Mk21 .Footer_content__ls5AG{font-size:12px;color:#999;margin-bottom:8px}
.Layout_title__6Mk21 p{font-size:14px;color:#555;margin-bottom:12px}
.Grid_block__R9Dmt{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.Grid_block__R9Dmt:hover{background:#4752c4}
.Wrapper_body__HaxMQ{padding-bottom:60px}
.Wrapper_body__HaxMQ h1{font-size:30px;font-weight:700;margin-bottom:8px}
.Wrapper_body__HaxMQ time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.Wrapper_body__HaxMQ h2{font-size:22px;margin:32px 0 12px}
.Wrapper_body__HaxMQ h3{font-size:18px;margin:24px 0 8px}
.Wrapper_body__HaxMQ p{margin-bottom:16px}
.Wrapper_body__HaxMQ ul,.Wrapper_body__HaxMQ ol{margin:0 0 16px 24px}
.Wrapper_body__HaxMQ a{color:#5865f2}
.Wrapper_body__HaxMQ img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.Header_foot__omU8i{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.Header_foot__omU8i a{color:#999;text-decoration:none}
.Hero_text__UlBVa{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.Section_wrapper__ASsoX{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.Hero_section__WmdtE{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.Hero_wrap__62yEe{text-align:center;margin:0 0 24px}
.Article_main__o9xuo{max-width:100%;height:auto;border-radius:12px}
.Content_body__OaZlW{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.Content_body__OaZlW h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.Layout_content__5EALZ{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.Wrapper_text__m2Ma8{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.Wrapper_text__m2Ma8:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,600&display=swap');
body{font-family:'Nunito Sans',system-ui,-apple-system,sans-serif;color:#252422;background:#F3F2EE;line-height:1.74;margin:0;}
h1,h2,h3,h4,h5,h6{font-family:'Bitter',Georgia,serif;color:#405871;line-height:1.22;}
.card{border:1px solid #C5C2BB;border-left:3px solid #405871;border-radius:3px;padding:1.4rem 1.4rem 1.1rem;margin-bottom:1.5rem;background:#F3F2EE;transition:border-color 0.18s;}
.card:hover{border-left-color:#C4962B;}
.card h2{font-family:'Bitter',Georgia,serif;font-weight:600;font-size:1.25rem;margin:0 0 0.5rem;line-height:1.28;}
.card h2 a{color:#252422;text-decoration:none;}
.card h2 a:hover{color:#405871;}
.read-more{color:#C4962B;font-family:'Nunito Sans',system-ui,sans-serif;font-weight:600;font-size:0.78rem;text-transform:uppercase;letter-spacing:0.08em;text-decoration:none;border-bottom:1px solid #C4962B;padding-bottom:1px;}
.read-more:hover{color:#405871;border-color:#405871;}
.article-content h1{font-family:'Bitter',Georgia,serif;font-weight:700;font-size:2rem;color:#405871;}
.article-content h2{font-family:'Bitter',Georgia,serif;font-weight:600;color:#405871;font-size:1.4rem;margin-top:2rem;}
.article-content a{color:#405871;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#C4962B;}
.article-content a:hover{color:#C4962B;}
.article-content img{border-radius:3px;max-width:100%;height:auto;display:block;margin:1.5rem auto;}
.article-content blockquote{border-left:3px solid #C4962B;padding:0.6em 1.2em;margin:1.5rem 0;font-style:italic;background:rgba(196,150,43,0.07);}
.affiliate-disclosure{border:1px solid #C5C2BB;border-left:3px solid #C4962B;border-radius:3px;padding:0.9rem 1rem;font-size:0.85rem;background:rgba(196,150,43,0.06);margin:1.5rem 0;}
/* === Custom === */
/* v.a57ef1 — layout revision */

/*
 * Rasgueo Diario — ga-strum-es
 * Autor: Rubén Salcedo — Querétaro, México
 *
 * Referencia de diseño: misalette de la parroquia / folleto de los 90s.
 * La hoja que uno lleva doblada al bolsillo el domingo: tipografía limpia,
 * color solo donde hace falta, márgenes generosos, y una portada honesta.
 *
 * Voces tipográficas (tres, no más):
 *   Display : 'Bitter' — slab serif, encabezados de folleto y wordmark (itálica)
 *   Texto   : 'Nunito Sans' — humanista, muy legible
 *   Meta    : 'Nunito Sans' en versalitas rastreadas — fechas, kickers, etiquetas
 *
 * Paleta:
 *   --primary  #405871  azul-pizarrón (tinta de bolígrafo bajo lámpara)
 *   --accent   #C4962B  ámbar-miel (el foco de la sala de noche)
 *   --moment   #8C4A00  barniz quemado — SOLO 2 lugares (borde del hero, capitular)
 *   --bg       #F3F2EE  papel bond gris-blanco
 *   --paper    #FAF7F0  papel cálido de tarjeta (nunca blanco puro)
 */

/* ── Variables ────────────────────────────────────────────────── */

:root {
  --primary: #405871;
  --accent:  #C4962B;
  --moment:  #8C4A00;
  --bg:      #F3F2EE;
  --paper:   #FAF7F0;
  --paper2:  #F6F1E7;
  --fg:      #252422;
  --border:  #C5C2BB;
  --hair:    rgba(64, 88, 113, 0.15);
  --r:       6px;
  --gap:     1.9rem;
  --fh:      'Bitter', Georgia, serif;
  --fb:      'Nunito Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────── */

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

/* ── Base ─────────────────────────────────────────────────────── */

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.74;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: #fff; }

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:visited { color: var(--primary); }
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fh);
  font-weight: 600;
  line-height: 1.22;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.55em;
}

p { margin: 0 0 1.1em; line-height: 1.74; }
strong { font-weight: 700; }
em { font-style: italic; }

ul, ol { margin: 0 0 1.1em 1.5em; padding: 0; }
li { margin-bottom: 0.4em; line-height: 1.68; }
ul li::marker { color: var(--accent); }

blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.75rem 0;
  padding: 0.55em 0 0.55em 1.35em;
  color: #4A4440;
  font-style: italic;
  background: rgba(196, 150, 43, 0.07);
  border-radius: 0 var(--r) var(--r) 0;
}
blockquote p:last-child { margin-bottom: 0; }

hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ══════════════════════════════════════════════════════════════ *
 *  MASTHEAD — foto atmosférica + wordmark itálico + manifiesto     *
 * ══════════════════════════════════════════════════════════════ */

body > header {
  background:
    linear-gradient(rgba(28, 40, 54, 0.80), rgba(28, 40, 54, 0.92)),
    url("/theme-assets/cover-photo.jpg") center 42% / cover no-repeat;
  border-bottom: 3px solid var(--accent);
  padding: 3.1rem 1.5rem 2.7rem;
  text-align: center;
}
body > header > div {
  max-width: 62rem;
  margin: 0 auto;
}

/* Wordmark (home) — serif itálico, la firma del sitio */
body > header h1 {
  font-family: var(--fh);
  font-style: italic;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.1;
}
body > header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 42rem;
}

/* Manifiesto — solo en portada (el header con h1) */
body > header:has(h1) > div::after {
  content: "Empezar tarde también es empezar.";
  display: block;
  font-family: var(--fh);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin: 1.15rem auto 0;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 34rem;
  line-height: 1.5;
}

/* Wordmark compacto en páginas de artículo (header sin h1, con span>a) */
body > header:not(:has(h1)) { padding: 1.5rem 1.5rem; }
body > header span a {
  color: #fff;
  font-family: var(--fh);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}
body > header span a:hover { color: rgba(255, 255, 255, 0.82); }

/* ══════════════════════════════════════════════════════════════ *
 *  HOMEPAGE  (main sin <article> directo)                          *
 * ══════════════════════════════════════════════════════════════ */

main:not(:has(> article)) {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Rejilla de tarjetas — primer div directo de main (.Wrapper_root) */
main:not(:has(> article)) > div:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
  margin-top: 3.5rem;
}

/* Tarjeta base — papel cálido, marco suave */
main:not(:has(> article)) > div:first-of-type > div {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(37, 36, 34, 0.05);
  padding: 26px 34px 30px;
}

/* Fecha / meta */
main:not(:has(> article)) > div:first-of-type > div > p:first-of-type {
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.65;
  margin: 0 0 0.7rem;
  line-height: 1.4;
}

/* Título de tarjeta */
main:not(:has(> article)) > div:first-of-type > div > h2 {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
main:not(:has(> article)) > div:first-of-type > div > h2 > a {
  color: var(--fg);
  text-decoration: none;
}
main:not(:has(> article)) > div:first-of-type > div > h2 > a:hover {
  color: var(--primary);
}

/* Extracto — recortado a 3 líneas para alturas parejas (regla D) */
main:not(:has(> article)) > div:first-of-type > div > h2 + p {
  font-family: var(--fb);
  font-size: 15.5px;
  line-height: 1.6;
  color: #4A4640;
  margin: 0 0 1.3rem;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA — "Read Article" → píldora perfilada en español */
main:not(:has(> article)) > div:first-of-type > div > a {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0;
  padding: 0.55em 1.1em;
  border: 1.5px solid rgba(196, 150, 43, 0.55);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
main:not(:has(> article)) > div:first-of-type > div > a::after {
  content: "Leer la entrada";
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
main:not(:has(> article)) > div:first-of-type > div > a:hover {
  background: var(--accent);
  border-color: var(--accent);
}
main:not(:has(> article)) > div:first-of-type > div > a:hover::after {
  color: var(--paper);
}

/* ── HERO — primera tarjeta a todo el ancho ────────────────────── */

main:not(:has(> article)) > div:first-of-type > div:first-child {
  grid-column: 1 / -1;
  padding: 42px clamp(34px, 6%, 84px) 46px;
  background: var(--paper);
  border-top: 3px solid var(--moment);          /* moment #1 */
}

/* Insignia */
main:not(:has(> article)) > div:first-of-type > div:first-child::before {
  content: "\25C6  LA ENTRADA MÁS RECIENTE";
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Título del hero — voz fuerte */
main:not(:has(> article)) > div:first-of-type > div:first-child > h2 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.2rem 0 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
  max-width: 20ch;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > h2 > a {
  color: var(--primary);
}

/* Fecha + firma del hero */
main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-of-type {
  opacity: 0.8;
  margin-bottom: 1.1rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-of-type::after {
  content: " · POR RUBÉN SALCEDO · QUERÉTARO";
}

/* Extracto del hero — sin recorte, con capitular */
main:not(:has(> article)) > div:first-of-type > div:first-child > h2 + p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 1.16rem;
  line-height: 1.55;
  color: #43403B;
  max-width: 60ch;
  margin-bottom: 1.6rem;
}
main:not(:has(> article)) > div:first-of-type > div:first-child > h2 + p::first-letter {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 3.1rem;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--moment);                          /* moment #2 */
}

/* CTA del hero */
main:not(:has(> article)) > div:first-of-type > div:first-child > a::after {
  content: "Leer la última entrada \203A";
}

/* ── EDITOR'S PICKS — tarjetas 2 y 3, par destacado ────────────── */

main:not(:has(> article)) > div:first-of-type > div:nth-child(2),
main:not(:has(> article)) > div:first-of-type > div:nth-child(3) {
  margin-top: 5.2rem;
  background: var(--paper2);
  border-top: 3px solid var(--accent);
}

/* Rótulo de sección a todo el ancho, anclado a la tarjeta 2 (col. izq.) */
main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before {
  content: "PARA EMPEZAR \00B7 LEE ESTOS PRIMERO";
  position: absolute;
  top: -3.2rem;
  left: 0;
  width: calc(200% + var(--gap));
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hair);
}

/* ── STRIP 1 — banda foto entre picks y diario (regla F) ───────── */

main:not(:has(> article)) > div:first-of-type > div:nth-child(4),
main:not(:has(> article)) > div:first-of-type > div:nth-child(5) {
  margin-top: 15rem;
}
main:not(:has(> article)) > div:first-of-type > div:nth-child(4)::before {
  content: "EL DIARIO — MÁS RECIENTES";
  position: absolute;
  top: -13rem;
  left: 0;
  z-index: 1;
  width: calc(200% + var(--gap));
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--r);
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.30)),
    url("/theme-assets/story-cover.jpg") center 30% / cover no-repeat;
  color: #fff;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ── STRIP 2 + COLA compacta (regla F + G) ─────────────────────── */

main:not(:has(> article)) > div:not(:first-of-type) {
  margin-top: 5.5rem;
  columns: 2;
  column-gap: 3rem;
  padding: 0 0 1rem;
  background: transparent;
  border: none;
}
/* Banda foto "SEGUIR LEYENDO" a todo el ancho sobre el índice */
main:not(:has(> article)) > div:not(:first-of-type)::before {
  content: "SEGUIR LEYENDO";
  column-span: all;
  display: block;
  height: 210px;
  line-height: 210px;
  text-align: center;
  margin-bottom: 2.3rem;
  border-radius: var(--r);
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/story-cover.jpg") center 70% / cover no-repeat;
  color: #fff;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
/* Filas del índice — como sumario de revista */
main:not(:has(> article)) > div:not(:first-of-type) > a {
  display: block;
  break-inside: avoid;
  background: transparent;
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  padding: 0.8rem 0;
  margin: 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.16);
}
main:not(:has(> article)) > div:not(:first-of-type) > a:hover {
  color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════ *
 *  ARTÍCULO  (main con <article> directo)                          *
 * ══════════════════════════════════════════════════════════════ */

main:has(> article) {
  max-width: 770px;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}

/* Kicker + título */
main:has(> article) > h1 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  line-height: 1.14;
  color: var(--primary);
  margin: 2.6rem 0 0.4rem;
}
main:has(> article) > h1::before {
  content: "DIARIO DE PRÁCTICA \00B7 QUERÉTARO";
  display: block;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Fecha + firma del autor */
main:has(> article) > time {
  display: block;
  font-family: var(--fb);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 2.2rem;
}
main:has(> article) > time::after {
  content: " \00B7 POR RUBÉN SALCEDO \00B7 6 MIN DE LECTURA";
}

/* Cuerpo — medida generosa, aire editorial */
main:has(> article) article > p {
  font-size: 19px;
  line-height: 1.8;
  color: #2B2926;
  margin: 0 0 1.5rem;
}

/* Imágenes en contexto */
main:has(> article) article img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  margin: 2.2rem auto;
}

/* Subtítulos con dinkus (regla estética de referencia) */
main:has(> article) article > h2 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--primary);
  margin: 2.8rem 0 0.85rem;
}
main:has(> article) article > h2::before {
  content: "\2726 \2726 \2726";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  opacity: 0.7;
  margin: 0 0 1.9rem;
}
main:has(> article) article > h3 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  margin: 2rem 0 0.5rem;
}

/* Enlaces del cuerpo — sobrios, azul-pizarrón */
main:has(> article) article p a,
main:has(> article) article li a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(196, 150, 43, 0.5);
  text-underline-offset: 3px;
}
main:has(> article) article p a:hover,
main:has(> article) article li a:hover {
  color: var(--accent);
}

/* CTA de afiliado — resaltado escaneable (regla J: gana al enlace de cuerpo) */
main:has(> article) article p a[href^="/offer/"],
main:has(> article) article li a[href^="/offer/"] {
  background: rgba(196, 150, 43, 0.16);
  color: var(--moment);
  font-weight: 700;
  text-decoration: none;
  padding: 0.06em 0.35em;
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(196, 150, 43, 0.6);
}
main:has(> article) article p a[href^="/offer/"]:hover,
main:has(> article) article li a[href^="/offer/"]:hover {
  background: var(--accent);
  color: #fff;
}

/* Bloque "Artículos relacionados" — cierre limpio */
main:has(> article) article + div {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--hair);
}
main:has(> article) article + div > h3 {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.2rem;
}
main:has(> article) article + div a {
  display: block;
  background: transparent;
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.16);
}
main:has(> article) article + div a:hover { color: var(--primary); }

/* ── Aviso de afiliado (si aparece con su clase) ───────────────── */

.affiliate-disclosure {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  background: rgba(196, 150, 43, 0.06);
  color: #4A4440;
  line-height: 1.58;
  margin: 1.5rem 0;
}

/* ── Footer ───────────────────────────────────────────────────── */

body > footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--fb);
  font-size: 0.82rem;
  text-align: center;
  padding: 1.6rem 1.25rem;
  border-top: 3px solid var(--accent);
  line-height: 1.6;
  margin-top: 3rem;
}
body > footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body > footer a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════ *
 *  RESPONSIVE — una columna, sin desbordes de las bandas           *
 * ══════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  main:not(:has(> article)) > div:first-of-type {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }
  main:not(:has(> article)) > div:first-of-type > div {
    padding: 24px 26px 26px;
  }
  main:not(:has(> article)) > div:first-of-type > div:first-child {
    padding: 32px 26px 34px;
  }
  main:not(:has(> article)) > div:first-of-type > div:first-child > h2 {
    max-width: none;
  }

  /* Picks: solo la tarjeta 2 reserva espacio para su rótulo */
  main:not(:has(> article)) > div:first-of-type > div:nth-child(2) {
    margin-top: 4.4rem;
  }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(3) {
    margin-top: var(--gap);
  }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before {
    width: 100%;
    top: -2.9rem;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  /* Strip 1: solo la tarjeta 4 reserva; banda a 100% */
  main:not(:has(> article)) > div:first-of-type > div:nth-child(4) {
    margin-top: 12.5rem;
  }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(5) {
    margin-top: var(--gap);
  }
  main:not(:has(> article)) > div:first-of-type > div:nth-child(4)::before {
    width: 100%;
    height: 165px;
    top: -11rem;
  }

  /* Cola a una columna */
  main:not(:has(> article)) > div:not(:first-of-type) {
    columns: 1;
    margin-top: 4.5rem;
  }
  main:not(:has(> article)) > div:not(:first-of-type)::before {
    height: 165px;
    line-height: 165px;
  }

  main:has(> article) article > p { font-size: 18px; }
}


/* 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;
  }
}


/* refix iter1: remove white masthead/related chips and box archive tail */
:root > body > header {
  background:
    linear-gradient(rgba(28, 40, 54, 0.80), rgba(28, 40, 54, 0.92)),
    url("/theme-assets/cover-photo.jpg") center 42% / cover no-repeat !important;
  background-color: var(--primary) !important;
}
:root > body > header > div,
:root > body > header :is(h1, p, span) {
  background: transparent !important;
}

:root main:has(> article) article + div {
  background: var(--paper2) !important;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(37, 36, 34, 0.04);
  padding: 28px;
}
:root main:has(> article) article + div > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
:root main:has(> article) article + div a {
  display: block;
  background: var(--paper) !important;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(37, 36, 34, 0.04);
  color: var(--fg);
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.42;
  margin: 0;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
:root main:has(> article) article + div a:hover {
  border-color: rgba(196, 150, 43, 0.5);
  box-shadow: 0 3px 10px rgba(37, 36, 34, 0.07);
  color: var(--primary);
  transform: translateY(-1px);
}

:root main:not(:has(> article)) > section,
:root main:not(:has(> article)) > div:not(:first-of-type) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  columns: auto;
  column-gap: normal;
  width: 100%;
}
:root main:not(:has(> article)) > section {
  grid-column: 1 / -1;
}
:root main:not(:has(> article)) > section::before,
:root main:not(:has(> article)) > div:not(:first-of-type)::before {
  grid-column: 1 / -1;
}
:root main:not(:has(> article)) > section > :is(a, p, ul > li),
:root main:not(:has(> article)) > div:not(:first-of-type) > a {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  background: var(--paper) !important;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(37, 36, 34, 0.04);
  color: var(--fg);
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
:root main:not(:has(> article)) > section > :is(a, p, ul > li):hover,
:root main:not(:has(> article)) > div:not(:first-of-type) > a:hover {
  border-color: rgba(196, 150, 43, 0.5);
  box-shadow: 0 3px 10px rgba(37, 36, 34, 0.07);
  color: var(--primary);
  transform: translateY(-1px);
}
:root main:not(:has(> article)) > section > ul {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
:root main:not(:has(> article)) > section > ul > li {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  background: var(--paper) !important;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(37, 36, 34, 0.04);
  color: var(--fg);
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding: 20px 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
:root main:not(:has(> article)) > section > ul > li:hover {
  border-color: rgba(196, 150, 43, 0.5);
  box-shadow: 0 3px 10px rgba(37, 36, 34, 0.07);
  transform: translateY(-1px);
}
:root main:not(:has(> article)) > section > ul > li > a,
:root main:not(:has(> article)) > section > p > a {
  background: transparent !important;
  color: inherit;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
:root main:not(:has(> article)) > section > ul > li > a:hover,
:root main:not(:has(> article)) > section > p > a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  :root main:has(> article) article + div {
    padding: 22px;
  }
  :root main:not(:has(> article)) > section,
  :root main:not(:has(> article)) > div:not(:first-of-type) {
    grid-template-columns: 1fr;
    columns: auto;
  }
  :root main:not(:has(> article)) > section > :is(a, p, ul > li),
  :root main:not(:has(> article)) > div:not(:first-of-type) > a {
    padding: 18px 20px;
  }
  :root main:not(:has(> article)) > section > ul {
    grid-template-columns: 1fr;
  }
  :root main:not(:has(> article)) > section > ul > li {
    padding: 18px 20px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Monocle-Swiss overlay=40% grid=equal scale=dramatic family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 40%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.40) 100%),
    url("/theme-assets/premium-hero-strip-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.40) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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;
}

/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

