*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Georgia,'Times New Roman',serif;line-height:1.8;color:#222;background:#f4f1eb}
.astro-R1cbArQB{max-width:1100px;margin:0 auto;padding:0 24px}
.astro-bNKsQFyg{background:linear-gradient(135deg,#2c3e50,#34495e);color:#fff;padding:48px 0;text-align:center;margin-bottom:48px}
.astro-bNKsQFyg h1{font-size:36px;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.astro-bNKsQFyg p{font-size:16px;opacity:.8;font-style:italic}
.astro-bNKsQFyg .astro-h2ad1Fb4{color:#fff;text-decoration:none;font-size:20px;letter-spacing:1px;text-transform:uppercase}
.astro-pdHfrdj6{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.astro-Npk3p9ej{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:28px;transition:box-shadow .2s}
.astro-Npk3p9ej:hover{box-shadow:0 4px 20px rgba(0,0,0,.14)}
.astro-Npk3p9ej h2{font-size:22px;margin-bottom:10px;line-height:1.3}
.astro-Npk3p9ej h2 a{color:#2c3e50;text-decoration:none}
.astro-Npk3p9ej .astro-pBZiRTvL{font-size:12px;color:#888;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.astro-Npk3p9ej p{font-size:15px;color:#555;margin-bottom:14px}
.astro-NrRFFq2V{color:#e74c3c;text-decoration:none;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.astro-vVf6SuOu{max-width:780px;margin:0 auto;padding:0 24px 60px}
.astro-vVf6SuOu h1{font-size:36px;margin-bottom:10px;line-height:1.2}
.astro-vVf6SuOu .astro-pBZiRTvL{font-size:13px;color:#888;display:block;margin-bottom:28px;text-transform:uppercase;letter-spacing:1px}
.astro-vVf6SuOu h2{font-size:24px;margin:36px 0 14px}
.astro-vVf6SuOu h3{font-size:19px;margin:28px 0 10px}
.astro-vVf6SuOu p{margin-bottom:18px;font-size:17px}
.astro-vVf6SuOu ul,.astro-vVf6SuOu ol{margin:0 0 18px 28px}
.astro-vVf6SuOu a{color:#e74c3c}
.astro-vVf6SuOu img{max-width:100%;height:auto;border-radius:4px;margin:20px 0}
.astro-YERQk74y{border-top:2px solid #ddd;padding:28px 0;margin-top:48px;text-align:center;font-size:13px;color:#888}
.astro-YERQk74y a{color:#888}
.astro-OlE9834R{border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:14px 0;margin-bottom:28px;font-size:14px;color:#888;font-style:italic;text-align:center}
.astro-z84P3TC1{background:#f9f3e3;padding:16px 20px;margin-top:28px;font-size:13px;color:#7a6230;border-radius:4px}
.astro-KAB8NnWZ{font-size:11px;color:#888;margin:-22px 0 28px;text-transform:uppercase;letter-spacing:1.5px}
.astro-xsAAAhqb{margin:0 0 28px}
.astro-1vEdBUt6{width:100%;height:auto;border-radius:4px}
.astro-LgB6y25m{border-top:2px solid #ddd;margin-top:40px;padding-top:24px}
.astro-LgB6y25m h4{font-size:16px;text-transform:uppercase;letter-spacing:1px;margin-bottom:16px;color:#888}
.mag-related-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mag-related-item a{color:#2c3e50;text-decoration:none;font-size:15px}
.mag-related-item a:hover{color:#e74c3c}
.astro-SUApFbFK{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:22px 28px;margin-top:28px}
.astro-SUApFbFK p{font-size:15px;padding:4px 0;margin:0}
.astro-SUApFbFK .astro-pBZiRTvL{margin:0 8px 0 0;display:inline}
.astro-SUApFbFK a{color:#2c3e50;text-decoration:none}
.astro-SUApFbFK a:hover{color:#e74c3c}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;500;600;700&family=Montserrat:wght@400;700&display=swap');
body{font-family:'Source Sans Pro',sans-serif;color:#2D3436;background:#FDFDFD}
.astro-bNKsQFyg{background:#1B263B;color:#fff}
.astro-bNKsQFyg h1{font-family:'Montserrat',serif;color:#fff}
.astro-bNKsQFyg p{color:rgba(255,255,255,.75)}
.astro-bNKsQFyg a{color:#fff;text-decoration:none}
.card h2{font-family:'Montserrat',serif}
.card h2 a{color:#1B263B}
.card h2 a:hover{color:#D97706}
.read-more{color:#D97706}
.article-content h1{font-family:'Montserrat',serif}
.article-content h2{font-family:'Montserrat',serif}
.article-content a{color:#D97706}
.article-content img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* v.857187 — layout revision */
/* ============================================================
   RUTA VISADO — vs-usa-es (visa-inmigracion-usa-guia-es)
   Persona: Andrés Carmona, coordinador de logística transfronteriza,
   Tijuana. Voz metódica de quien lee la letra pequeña del USCIS y
   traduce el trámite migratorio a español llano, sin "visa garantizada".

   DEPLOYED DOM = Astro template:
     body > nav > div            → masthead (h1 + p on home, a on article)
     main > div > div            → homepage cards (grid wrapper > card)
     main > article > {p,h2,...} → article body (flat)
   All previous class-based rules (.card/.astro-bNKsQFyg/.article-content)
   were dead — Astro obfuscates classes. This is a clean structural pass.

   Voices : PT Serif (display + cuerpo) · Public Sans (meta tracked-sans)
   Palette: azul aduana #1E3A5C + rojo sello #B8452C sobre papel manila
   Moment color #8B6B47 (bronce) usado ×2 — capitulares de portada + artículo.
   ============================================================ */

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

:root {
  --primary:      #1E3A5C;
  --primary-dark: #142A44;
  --accent:       #B8452C;
  --accent-light: #F0DCD3;
  --moment:       #8B6B47;

  --bg:      #ECE5D7;   /* papel manila cálido de expediente */
  --paper:   #F8F4EA;   /* superficie de tarjeta — off-white cálido, NUNCA #fff */
  --paper2:  #F3ECDD;   /* superficie alterna (selección del editor) */
  --fg:      #22303C;
  --muted:   #6F6656;
  --border:  rgba(30, 58, 92, .14);

  --fh: 'PT Serif', Georgia, 'Times New Roman', serif;
  --fb: 'PT Serif', Georgia, serif;
  --fm: 'Public Sans', system-ui, -apple-system, sans-serif;

  --r: 8px;
}

/* === BASE === */
:root body { font-family: var(--fb); font-size: 17px; line-height: 1.75; color: var(--fg); background: var(--bg); margin: 0; -webkit-font-smoothing: antialiased; }
:root ::selection { background: var(--primary); color: #F6EFE0; }
html, body { overflow-x: hidden; }
:root img { max-width: 100%; height: auto; }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

/* =========================================================
   MASTHEAD  (body > nav)  — foto + gradiente + firma
   ========================================================= */
:root nav {
  position: relative;
  background: linear-gradient(180deg, rgba(16,26,42,.80) 0%, rgba(20,42,68,.72) 100%),
              url("/theme-assets/hero-masthead.jpg") center/cover no-repeat;
  background-color: var(--primary);
  border-bottom: 3px solid var(--accent);
  padding: 44px 0 38px;
  margin-bottom: 64px;
  text-align: center;
}
:root nav > div { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* monograma RV — firma */
:root nav::before {
  content: "";
  display: block;
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3E%3Ccircle%20cx='36'%20cy='36'%20r='34'%20fill='none'%20stroke='%23C9A26B'%20stroke-width='2'/%3E%3Ctext%20x='36'%20y='48'%20text-anchor='middle'%20font-family='Georgia,serif'%20font-style='italic'%20font-weight='700'%20font-size='30'%20fill='%23F1E6CF'%3ERV%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  position: relative; z-index: 1;
}
/* kicker */
:root nav > div::before {
  content: "RUTAS DE VISA · EE. UU. · ESPAÑOL CLARO";
  display: block;
  font-family: var(--fm);
  font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: #E7C89C;
  margin-bottom: 14px;
}
/* wordmark (home = h1, article = a) */
:root nav h1,
:root nav > div > a {
  font-family: var(--fh); font-style: italic; font-weight: 700;
  font-size: 46px; line-height: 1.04; letter-spacing: -.015em;
  color: #F5EEDD; text-decoration: none; text-shadow: 0 2px 14px rgba(0,0,0,.36);
  margin: 0; display: inline-block;
}
:root nav > div > a:hover { color: #FFFFFF; }
/* manifiesto (la descripción del sitio, en cursiva contenida) */
:root nav h1 + p {
  font-family: var(--fb); font-style: italic;
  font-size: 16px; line-height: 1.6;
  color: rgba(245,238,221,.86);
  max-width: 620px; margin: 14px auto 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================================
   HOMEPAGE  (main sin > article)  — wrapper = grid, cards = items
   ========================================================= */
:root main { padding: 0 20px 76px; }
:root main:not(:has(> article)) > div { max-width: 1120px; margin: 0 auto; }

/* --- tarjeta base (mobile: pila) --- */
:root main:not(:has(> article)) > div > div {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20,30,45,.05);
  padding: 26px 32px 24px;
  margin: 0 0 24px;
}
:root main:not(:has(> article)) > div > div > p:first-of-type {
  font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
:root main:not(:has(> article)) > div > div > h2 { margin: 0 0 12px; }
:root main:not(:has(> article)) > div > div > h2 a {
  font-family: var(--fh); font-weight: 700; font-size: 21px; line-height: 1.24;
  letter-spacing: -.01em; color: var(--primary); text-decoration: none;
}
:root main:not(:has(> article)) > div > div > h2 a:hover { color: var(--accent); }
:root main:not(:has(> article)) > div > div > p:last-of-type {
  font-family: var(--fb); font-size: 15.5px; line-height: 1.66; color: var(--fg);
  opacity: .9; max-width: 64ch; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* "Continue Reading" — enlace QUIETO (navy), no rojo repetido */
:root main:not(:has(> article)) > div > div > a {
  margin-top: auto; align-self: flex-start;
  font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  text-decoration: none; border-bottom: 1px solid rgba(30,58,92,.32); padding: 2px 0;
  transition: color .15s ease, border-color .15s ease;
}
:root main:not(:has(> article)) > div > div > a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- HERO: tarjeta 1 --- */
:root main:not(:has(> article)) > div > div:first-of-type {
  position: relative;
  overflow: visible;
  background: var(--paper);
  border-color: rgba(184,69,44,.28);
  box-shadow: 0 3px 20px rgba(20,30,45,.10);
  padding: 42px 46px 40px;
}
/* M4b — píldora flotante que cruza a medias el borde superior de la tarjeta destacada */
:root main:not(:has(> article)) > div > div:first-of-type::before {
  content: "ÚLTIMO ANÁLISIS";
  position: absolute; top: 0; left: 40px; transform: translateY(-50%);
  font-family: var(--fm); font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 999px; padding: 5px 13px 4px; z-index: 2;
}
:root main:not(:has(> article)) > div > div:first-of-type > p:first-of-type { font-size: 11px; margin-bottom: 14px; }
:root main:not(:has(> article)) > div > div:first-of-type > h2 { margin: 0 0 18px; }
:root main:not(:has(> article)) > div > div:first-of-type > h2 a {
  font-style: italic; font-size: 44px; line-height: 1.08; letter-spacing: -.02em;
}
:root main:not(:has(> article)) > div > div:first-of-type > p:last-of-type {
  font-size: 20px; line-height: 1.5; opacity: .95; max-width: 60ch;
  -webkit-line-clamp: unset; display: block; margin-bottom: 22px;
}
:root main:not(:has(> article)) > div > div:first-of-type > p:last-of-type::first-letter {
  float: left; font-family: var(--fh); font-weight: 700; font-size: 66px; line-height: .78;
  color: var(--moment); margin: 6px 12px 0 0;
}
:root main:not(:has(> article)) > div > div:first-of-type > a {
  border: 1.5px solid var(--primary); border-radius: 6px; padding: 11px 22px;
  letter-spacing: .14em; color: var(--primary); border-bottom-width: 1.5px;
}
:root main:not(:has(> article)) > div > div:first-of-type > a:hover {
  background: var(--primary); color: #F6EFE0; border-color: var(--primary);
}

/* --- byline en el hero --- */
:root main:not(:has(> article)) > div > div:first-of-type > h2::after {
  content: "POR ANDRÉS CARMONA · LOGÍSTICA MIGRATORIA · TIJUANA";
  display: block; font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-top: 16px;
}

/* --- SELECCIÓN DEL EDITOR: tarjetas 2-4 --- */
/* etiqueta de sección: banda a ancho completo POR ENCIMA de la fila, no dentro de la 1.ª tarjeta (M2) */
:root main:not(:has(> article)) > div > div:nth-of-type(2) { position: relative; margin-top: 58px; }
:root main:not(:has(> article)) > div > div:nth-of-type(2)::before {
  content: "SELECCIÓN DEL EDITOR — EMPIEZA POR AQUÍ";
  position: absolute; left: 0; right: 0; bottom: calc(100% + 16px);
  font-family: var(--fm); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--primary);
  padding-bottom: 12px; margin: 0;
  border-bottom: 1px solid var(--border);
}
:root main:not(:has(> article)) > div > div:nth-of-type(2),
:root main:not(:has(> article)) > div > div:nth-of-type(3),
:root main:not(:has(> article)) > div > div:nth-of-type(4) {
  background: var(--paper2); border-color: rgba(30,58,92,.16);
}
:root main:not(:has(> article)) > div > div:nth-of-type(2) > h2 a,
:root main:not(:has(> article)) > div > div:nth-of-type(3) > h2 a,
:root main:not(:has(> article)) > div > div:nth-of-type(4) > h2 a { font-size: 19px; line-height: 1.2; }

/* --- STRIP 1 + primera entrada del diario: tarjeta 5 --- */
:root main:not(:has(> article)) > div > div:nth-of-type(5) {
  background: transparent; border: 0; box-shadow: none; padding: 0 0 8px;
}
:root main:not(:has(> article)) > div > div:nth-of-type(5)::before {
  content: "EL DIARIO — MÁS RECIENTES";
  display: flex; align-items: center; justify-content: center;
  height: 200px; margin: 0 0 34px; border-radius: var(--r);
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
              url("/theme-assets/hero-masthead.jpg") center 30%/cover no-repeat;
  font-family: var(--fm); font-size: 13px; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: #F6EFE0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
:root main:not(:has(> article)) > div > div:nth-of-type(5) > h2 a { font-size: 26px; font-style: italic; line-height: 1.18; }
:root main:not(:has(> article)) > div > div:nth-of-type(5) > p:last-of-type { font-size: 16.5px; max-width: 66ch; }

/* --- ARCHIVO compacto (M1/M7): índice de tarjetas crema, MISMO sistema visual que el diario --- */
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20,30,45,.05);
  padding: 20px 22px; margin: 0;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:not(:has(> article)) > div > div:nth-of-type(n+14):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20,30,45,.10);
  border-color: rgba(184,69,44,.30);
}
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) > p:first-of-type {
  order: 0; margin: 0 0 8px; font-family: var(--fm); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .9;
}
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) > h2 { margin: 0; }
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) > h2 a {
  font-family: var(--fh); font-size: 16px; line-height: 1.34; font-weight: 700;
  letter-spacing: -.005em; color: var(--primary); text-decoration: none;
}
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) > h2 a:hover { color: var(--accent); }
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) > p:last-of-type,
:root main:not(:has(> article)) > div > div:nth-of-type(n+14) > a { display: none; }

/* tarjeta 14: entrada líder del archivo con la franja "VER MÁS" a sangre completa sobre la tarjeta (M6) */
:root main:not(:has(> article)) > div > div:nth-of-type(14) { margin-top: 40px; }
:root main:not(:has(> article)) > div > div:nth-of-type(14)::before {
  content: "VER MÁS";
  display: flex; align-items: center; justify-content: center;
  height: 200px; margin: -20px -22px 22px; border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
              url("/theme-assets/hero-masthead.jpg") center 70%/cover no-repeat;
  font-family: var(--fm); font-size: 13px; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: #F6EFE0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
:root main:not(:has(> article)) > div > div:nth-of-type(14) > h2 a { font-size: 21px; line-height: 1.24; }
:root main:not(:has(> article)) > div > div:nth-of-type(14) > p:last-of-type {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 10px 0 0; font-family: var(--fb); font-size: 15px; line-height: 1.6; color: var(--fg); opacity: .9;
}

/* =========================================================
   DESKTOP GRID  (≥ 900px) — 6 columnas
   ========================================================= */
@media (min-width: 900px) {
  :root main:not(:has(> article)) > div {
    display: grid; grid-template-columns: repeat(6, 1fr);
    column-gap: 40px; row-gap: 40px; align-items: stretch;
  }
  :root main:not(:has(> article)) > div > div { margin: 0; }
  /* hero + portadores de franja ocupan la fila completa (la 14 es la líder del archivo) */
  :root main:not(:has(> article)) > div > div:first-of-type,
  :root main:not(:has(> article)) > div > div:nth-of-type(5),
  :root main:not(:has(> article)) > div > div:nth-of-type(14) { grid-column: 1 / -1; }
  /* archivo compacto: índice de 3 al ancho (M7) */
  :root main:not(:has(> article)) > div > div:nth-of-type(n+15) { grid-column: span 2; }
  /* selección del editor: 3 al ancho + reserva para la etiqueta de sección (M2) */
  :root main:not(:has(> article)) > div > div:nth-of-type(2),
  :root main:not(:has(> article)) > div > div:nth-of-type(3),
  :root main:not(:has(> article)) > div > div:nth-of-type(4) { grid-column: span 2; margin-top: 54px; }
  /* la etiqueta abarca las 3 tarjetas de la fila (M2) */
  :root main:not(:has(> article)) > div > div:nth-of-type(2)::before { left: -33px; right: auto; width: calc(300% + 278px); }
  /* diario: 2 al ancho */
  :root main:not(:has(> article)) > div > div:nth-of-type(n+6):nth-of-type(-n+13) { grid-column: span 3; }
  /* hero interno: título grande */
  :root main:not(:has(> article)) > div > div:first-of-type { padding: 46px 52px 44px; }
  :root main:not(:has(> article)) > div > div:first-of-type > h2 a { font-size: 50px; }
}

/* =========================================================
   ARTÍCULO  (main:has(> article))
   ========================================================= */
:root main:has(> article) > article { max-width: 740px; margin: 0 auto; padding-top: 6px; }

:root main > article > h1 {
  font-family: var(--fh); font-style: italic; font-weight: 700;
  font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -.015em;
  color: var(--primary); margin: 6px 0 10px; max-width: none;
}
:root main > article > h1 + p {
  font-family: var(--fm); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 30px;
}
:root main > article > h1 + p em { font-style: normal; }

/* S6 — ancla de personalidad: la fecha vive en <time> (hermano de <article>); añadimos firma + ubicación */
:root main:has(> article) > time {
  display: block; font-family: var(--fm); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 4px;
}
:root main:has(> article) > time::after {
  content: "Por Andrés Carmona · Logística migratoria · Tijuana";
  display: block; margin-top: 7px;
  font-family: var(--fm); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); opacity: .92;
}

/* cuerpo */
:root main > article > p,
:root main > article > section > p {
  font-family: var(--fb); font-size: 18.5px; line-height: 1.78; margin: 0 0 20px;
  max-width: 68ch; color: var(--fg);
}
:root main > article > figure:first-of-type + p::first-letter {
  float: left; font-family: var(--fh); font-weight: 700; font-size: 60px; line-height: .76;
  color: var(--moment); margin: 6px 12px 0 0;
}

/* figuras */
:root main > article figure { margin: 28px 0; }
:root main > article figure img {
  width: 100%; height: auto; display: block; border-radius: var(--r);
  box-shadow: 0 6px 22px rgba(20,30,45,.16);
}

/* encabezados */
:root main > article > h2,
:root main > article > section > h2 {
  font-family: var(--fh); font-weight: 700; font-size: 27px; line-height: 1.22;
  letter-spacing: -.01em; color: var(--primary); margin: 44px 0 14px; max-width: none;
  padding-top: 14px; border-top: 2px solid var(--accent);
}
/* dinkus entre secciones (solo artículos planos, no la primera) */
:root main > article > h2:not(:first-of-type) { border-top: 0; padding-top: 0; margin-top: 52px; }
:root main > article > h2:not(:first-of-type)::before {
  content: "✷ ✷ ✷"; display: block; text-align: center;
  color: var(--accent); font-size: 15px; letter-spacing: .5em;
  margin: 0 auto .8em; opacity: .7;
}
:root main > article > h3,
:root main > article > section > h3 {
  font-family: var(--fh); font-style: italic; font-weight: 700; font-size: 20px;
  color: var(--accent); margin: 30px 0 10px; max-width: none;
}

/* listas */
:root main > article ul,
:root main > article ol { margin: 0 0 20px 24px; max-width: 68ch; }
:root main > article li { margin-bottom: 8px; line-height: 1.7; }
:root main > article ul li::marker { color: var(--accent); }
:root main > article ol li::marker { color: var(--primary); font-weight: 700; }

/* enlaces del cuerpo */
:root main > article > p a,
:root main > article > section > p a,
:root main > article li a {
  color: var(--primary); text-decoration: underline;
  text-decoration-color: var(--accent); text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; font-weight: 700;
}
:root main > article > p a:hover,
:root main > article > section > p a:hover,
:root main > article li a:hover { color: var(--accent); text-decoration-color: var(--primary); }

/* CTA de afiliado /visit/ — ruta completa vence al enlace de cuerpo (Regla J) */
:root main > article > p a[href^="/visit/"],
:root main > article > section > p a[href^="/visit/"],
:root main > article > ul li a[href^="/visit/"],
:root main > article > ol li a[href^="/visit/"] {
  display: inline-block; background: var(--accent); color: #F6EFE0;
  border-radius: 6px; padding: 4px 14px; text-decoration: none;
  font-family: var(--fm); font-size: 15px; font-weight: 700; letter-spacing: .02em;
}
:root main > article > p a[href^="/visit/"]:hover,
:root main > article > section > p a[href^="/visit/"]:hover,
:root main > article > ul li a[href^="/visit/"]:hover,
:root main > article > ol li a[href^="/visit/"]:hover { background: var(--primary); color: #F6EFE0; }

/* blockquote con comilla colgante */
:root main > article blockquote {
  border-left: 3px solid var(--accent); background: transparent;
  padding: 8px 0 8px 28px; margin: 34px 0; position: relative;
  font-family: var(--fb); font-style: italic; font-size: 21px; line-height: 1.5;
  color: var(--primary); max-width: none; border-radius: 0;
}
:root main > article blockquote p { margin: 0; max-width: none; }

/* AVISO / disclaimer (aside.astro-z84P3TC1) — caja tostada, preservada */
:root main > article aside {
  background: var(--paper2); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--r);
  padding: 18px 22px; margin: 40px 0 0;
  font-family: var(--fb); font-size: 14.5px; line-height: 1.66; color: var(--fg);
}
:root main > article aside b {
  display: inline-block; font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-right: 6px;
}
:root main > article aside a { color: var(--primary); text-decoration-color: var(--accent); font-weight: 700; }

/* tablas comparativas */
:root main > article table { border-collapse: collapse; width: 100%; margin: 26px 0; font-size: 15px; }
:root main > article table th {
  background: var(--primary); color: #F6EFE0; padding: .6em .85em; text-align: left;
  font-family: var(--fm); font-weight: 700; font-size: 13px; letter-spacing: .03em;
}
:root main > article table td { padding: .55em .85em; border-bottom: 1px solid var(--border); vertical-align: top; }
:root main > article table tr:nth-child(even) td { background: var(--paper); }

/* páginas índice (autor): listas de entradas */
:root main > article > section > ul { list-style: none; margin: 8px 0 0; padding: 0; }
:root main > article > section > ul > li { margin: 0; padding: 11px 0; border-bottom: 1px dotted rgba(30,58,92,.2); }
:root main > article > section > ul > li:last-child { border-bottom: 0; }
:root main > article > section > ul > li > a {
  font-family: var(--fh); font-size: 16.5px; line-height: 1.35; color: var(--primary);
  text-decoration: none; font-weight: 400;
}
:root main > article > section > ul > li > a:hover { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
:root footer {
  background: var(--primary-dark); color: rgba(245,238,221,.72);
  padding: 28px 20px 34px; margin-top: 56px; text-align: center;
  font-family: var(--fm); font-size: 12px; letter-spacing: .04em;
}
:root footer a { color: rgba(245,238,221,.9); text-decoration: none; border-bottom: 1px dotted rgba(245,238,221,.4); }
:root footer a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 899px) {
  :root nav { padding: 34px 0 28px; margin-bottom: 44px; }
  :root nav h1, :root nav > div > a { font-size: 34px; }
  :root main:not(:has(> article)) > div > div:first-of-type { padding: 30px 26px; }
  :root main:not(:has(> article)) > div > div:first-of-type > h2 a { font-size: 32px; }
  :root main:not(:has(> article)) > div > div:first-of-type > p:last-of-type { font-size: 18px; }
  :root main:not(:has(> article)) > div > div:first-of-type > p:last-of-type::first-letter { font-size: 56px; }
  /* M4b — alinear la píldora flotante con el padding de la tarjeta en móvil */
  :root main:not(:has(> article)) > div > div:first-of-type::before { left: 20px; }
  /* M6 — franjas de foto atmosféricas ~200px en móvil (no bandas finas de miniatura) */
  :root main:not(:has(> article)) > div > div:nth-of-type(5)::before,
  :root main:not(:has(> article)) > div > div:nth-of-type(14)::before { height: 200px; }
  :root main > article > h1 { font-size: 32px; }
  :root main > article > p, :root main > article > section > p { font-size: 17.5px; }
}


/* 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; }
  /* M4b — con overflow-x:hidden el eje vertical deja de ser visible y recorta
     la mitad superior de la píldora flotante; el padding-top la mete en la
     zona de padding de main (dentro del border-box → nunca se recorta) */
  :root main:not(:has(> article)) { padding-top: 26px; }
}


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


/* archive-tail-fix v2 (M7) — el archivo compacto es el 2.º <div> de <main>
   (hermano de la rejilla de tarjetas), NO una tarjeta dentro de la rejilla.
   El tema base lo pinta como panel blanco y la regla genérica `main > div`
   lo convertía en una rejilla de 6 col con filas de texto plano. Aquí se
   reconstruye como índice de revista: tarjetas crema en caja con el MISMO
   sistema visual que el diario (papel, borde, radio, sombra, PT Serif, hover).
   Selector estructural (:nth-of-type(2)) porque la clase se ofusca por sitio. */
:root main:not(:has(> article)) > div:nth-of-type(2) {
  background: transparent;
  border: 0; box-shadow: none; border-radius: 0;
  padding: 0; margin: 40px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
  align-items: stretch;
}
/* cada entrada <p> = tarjeta crema en caja, tokens del diario */
:root main:not(:has(> article)) > div:nth-of-type(2) > p {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20,30,45,.05);
  padding: 18px 22px; margin: 0;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:not(:has(> article)) > div:nth-of-type(2) > p:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20,30,45,.10);
  border-color: rgba(184,69,44,.30);
}
/* fecha = kicker meta (Public Sans tracked) */
:root main:not(:has(> article)) > div:nth-of-type(2) > p > span {
  display: block; margin: 0 0 8px;
  font-family: var(--fm); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .9;
}
/* título = PT Serif, mismo tratamiento que las tarjetas del diario */
:root main:not(:has(> article)) > div:nth-of-type(2) > p > a {
  font-family: var(--fh); font-size: 16px; line-height: 1.34; font-weight: 700;
  letter-spacing: -.005em; color: var(--primary); text-decoration: none;
}
:root main:not(:has(> article)) > div:nth-of-type(2) > p > a:hover { color: var(--accent); }
/* escritorio: índice de 3 al ancho, alturas iguales por fila (grid stretch) */
@media (min-width: 900px) {
  :root main:not(:has(> article)) > div:nth-of-type(2) {
    grid-template-columns: repeat(3, 1fr); gap: 16px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Substack-modern overlay=55% grid=equal scale=dramatic family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 55%) ── */
: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.55) 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.55) 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; }
}


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


/* premium-upgrade v5 */
/* premium-upgrade v5 — big M2 band + wider M10 CTA net + M8 breathing. 2026-08-31. */

/* ── M2: PROMINENT full-row label, not the small word v2 tried ── */
:root main:not(:has(> h1))::before {
  content: "◆ LATEST FEATURES ◆" !important;
  display: block !important;
  font-family: var(--fh, "PT Sans"), Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 16px 24px 20px !important;
  margin: 0 0 40px !important;
  border-top: 3px solid var(--primary, #333) !important;
  border-bottom: 1px solid var(--border, #ccc) !important;
  color: var(--primary, #333) !important;
  background: transparent !important;
}

/* ── M10: broaden CTA net (Amazon, aff/ path, [target=_blank] product-shaped) ── */
: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^="/aff/"],
:root main:has(> h1) a[href^="/product/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"],
:root main:has(> h1) a[href*="amazon."],
:root main:has(> h1) a[href*="/track/"],
:root main:has(> h1) a[href*="/link/"],
:root main:has(> h1) a[href*="lstrk.net"],
:root main:has(> h1) a[href*="thrivecart"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  margin: 4px 2px !important;
}

/* ── M8: article body breathing ── */
:root main:has(> h1) > article > p {
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
}
:root main:has(> h1) > article > h2 {
  margin-top: 48px !important;
  margin-bottom: 18px !important;
}
:root main:not(:has(> h1)) > div:has(> div) {
  gap: 40px 32px !important;
}

