/*
Theme Name: calibre.news
Theme URI: https://calibre.news
Author: Nómada Digital / Raúl Luna
Author URI: https://nomadadigital.net
Description: Tema editorial de periodismo generativo para calibre.news. Diseño broadsheet con sistema de color paper/ink, tipografía Playfair Display + Inter + Space Mono, y banda de cobertura IA.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://calibre.news
Text Domain: calibre-news
Tags: news, editorial, custom-colors, custom-logo, featured-images, full-width-template, two-columns
*/

/* ═══════════════════════════════════════════════════════════════════════
   SISTEMA DE DISEÑO calibre.news  v1.1 — mobile-first, links neutrales
   ═══════════════════════════════════════════════════════════════════════ */

/* ── TOKENS: LIGHT (base) ──────────────────────────────────────────── */
:root {
  --ink:        #0f0f0d;
  --ink-mid:    #3a3a36;
  --ink-soft:   #6b6b65;
  --paper:      #f5f3ee;
  --paper-warm: #eceae3;
  --rule:       #d4d0c8;
  --crimson:    #cc2229;
  --crimson-dk: #a81b21;
  --teal-ai:    #00bfa5;
  --teal-dim:   #00897b;
  --gold:       #b8860b;

  --bg:      var(--paper);
  --fg:      var(--ink);
  --fg-mid:  var(--ink-mid);
  --fg-soft: var(--ink-soft);
  --surface: #ffffff;
  --border:  var(--rule);
  --accent:  var(--crimson);
  --ai:      var(--teal-ai);

  /* Escala tipográfica REDUCIDA — mobile base */
  --f-xs:   0.68rem;   /* 10.9px */
  --f-sm:   0.78rem;   /* 12.5px */
  --f-base: 0.875rem;  /* 14px   */
  --f-md:   1rem;      /* 16px   */
  --f-lg:   1.2rem;    /* 19.2px */
  --f-xl:   1.5rem;    /* 24px   */
  --f-2xl:  1.9rem;    /* 30.4px */
  --f-3xl:  2.4rem;    /* 38.4px */
  --f-hero: clamp(1.6rem, 4vw, 2.8rem); /* máx 44.8px en desktop */
}

/* ── TOKENS: DARK ───────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #f0ede6;
    --ink-mid:    #c8c5bc;
    --ink-soft:   #8a8880;
    --paper:      #141410;
    --paper-warm: #1c1b17;
    --rule:       #2e2d29;
    --crimson:    #e83a41;
    --crimson-dk: #cc2229;
    --teal-ai:    #26d4bc;
    --teal-dim:   #00bfa5;
    --gold:       #d4a017;
    --surface:    #1c1b17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink:        #f0ede6;
  --ink-mid:    #c8c5bc;
  --ink-soft:   #8a8880;
  --paper:      #141410;
  --paper-warm: #1c1b17;
  --rule:       #2e2d29;
  --crimson:    #e83a41;
  --crimson-dk: #cc2229;
  --teal-ai:    #26d4bc;
  --teal-dim:   #00bfa5;
  --gold:       #d4a017;
  --surface:    #1c1b17;
  color-scheme: dark;
}

/* ── RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--f-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LINKS: NEUTRALIZAR AZUL DEL NAVEGADOR ──────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--accent); }

/* Links de navegación, cabeceras y tarjetas heredan —
   SOLO los links de cuerpo de texto llevan subrayado */
.entry-content a,
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── IMÁGENES ───────────────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── CONTENEDOR ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;           /* tope real de contenido */
  margin-inline: auto;
  padding-left:  max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ── UTILIDADES ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.badge-ia {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--teal-ai);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-ia::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 46' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 1L38.5 11.5V34.5L20 45L1.5 34.5V11.5L20 1Z' stroke='%23fafafa' stroke-width='3' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; vertical-align: middle; margin-right: 3px; }

.rule-h      { border: none; border-top: 1px solid var(--border); }
.rule-accent { border: none; border-top: 2px solid var(--accent); }

/* ── TOP BAR ────────────────────────────────────────────────────────── */
.topbar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  padding-block: 5px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--f-xs);
  color: var(--fg-soft);
  font-family: 'Space Mono', monospace;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-date { letter-spacing: 0.04em; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-ia-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dim);
  font-size: var(--f-xs);
}
.topbar-location {
  font-size: var(--f-xs);
  color: var(--fg-soft);
}
.ia-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-ai);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ── MASTHEAD ───────────────────────────────────────────────────────── */
.masthead {
  padding-block: 18px 14px;
  border-bottom: 3px solid var(--ink);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
}
.masthead-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.masthead-tagline {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.masthead-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.masthead-search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 2px;
  font-size: var(--f-sm);
  color: var(--fg-soft);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.masthead-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--f-sm);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  width: 120px;
}
.masthead-subscribe {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ── NAV ────────────────────────────────────────────────────────────── */
.nav-bar {
  background: var(--fg);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-item {
  font-family: 'Inter', sans-serif;
  font-size: var(--f-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.72);
  padding: 9px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-item:hover {
  color: var(--paper);
  border-bottom-color: rgba(245, 243, 238, 0.25);
}
.nav-item.active {
  color: var(--paper);
  border-bottom-color: var(--teal-ai);
}
.nav-item.ia-cat        { color: var(--teal-ai); opacity: .9; }
.nav-item.ia-cat:hover  { opacity: 1; color: var(--teal-ai); }

/* ── HERO SECTION ───────────────────────────────────────────────────── */
.hero-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

/* Mobile: single column */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hero-lead { min-width: 0; }

.hero-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--paper-warm);
  margin-bottom: 16px;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#1a1a2e 0%,#16213e 40%,#0f3460 70%,#1a1a2e 100%);
  position: relative;
}
.hero-image-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%,rgba(0,191,165,.13) 0%,transparent 50%),
    radial-gradient(circle at 80% 30%,rgba(204,34,41,.1) 0%,transparent 40%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,191,165,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,165,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-caption {
  position: absolute;
  bottom: 10px; right: 10px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.kicker-cat {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-hero);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 10px;
}
.hero-headline a { color: inherit; text-decoration: none; }
.hero-headline a:hover { color: var(--accent); }

.hero-deck {
  font-size: var(--f-md);
  color: var(--fg-mid);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 14px;
  font-weight: 300;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-byline,
.hero-time {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

/* Hero sidebar */
.hero-sidebar {
  display: none; /* oculto en mobile; se activa en ≥900px */
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.sidebar-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-item {
  padding-block: 13px;
  border-bottom: 1px solid var(--border);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 4px;
}
.sidebar-item-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 5px;
}
.sidebar-item-head a       { color: inherit; text-decoration: none; }
.sidebar-item-head a:hover { color: var(--accent); }
.sidebar-item-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

/* ── SECTION HEADER ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 18px 12px;
  border-bottom: 2px solid var(--fg);
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.section-more {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

/* ── CARDS GRID ─────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  border-top: 1px solid var(--border);
}
.card {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
  min-width: 0;
}
.card:hover { background: var(--paper-warm); }
.card-img {
  aspect-ratio: 3/2;
  background: var(--paper-warm);
  margin-bottom: 12px;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-img-placeholder { width: 100%; height: 100%; }
.card-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.card-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.card-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 7px;
}
.card-head a       { color: inherit; text-decoration: none; }
.card-head a:hover { color: var(--accent); }
.card-deck {
  font-size: var(--f-sm);
  color: var(--fg-mid);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-time {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

/* ── AI BAND ────────────────────────────────────────────────────────── */
.ai-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: 28px;
  margin-block: 32px 0;
}
.ai-band-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.ai-band-icon {
  display: flex;
  align-items: center;
  color: var(--teal-ai);
  line-height: 1;
  width: 2.4rem;
  flex-shrink: 0;
}
.ai-band-icon svg {
  width: 100%;
  height: auto;
}
.ai-band-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ai);
  margin-bottom: 8px;
}
.ai-band-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-2xl);
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
  text-wrap: balance;
  margin-bottom: 8px;
}
.ai-band-sub {
  font-size: var(--f-sm);
  color: rgba(245,243,238,.6);
  max-width: 55ch;
  line-height: 1.6;
  font-weight: 300;
}
.ai-band-articles {
  border-top: 1px solid rgba(245,243,238,.1);
  margin-top: 24px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  gap: 0;
}
.ai-article {
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,243,238,.1);
  min-width: 0;
}
.ai-article:last-child { border-bottom: none; }
.ai-article-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-ai);
  margin-bottom: 5px;
}
.ai-article-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-md);
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper);
  text-wrap: balance;
  margin-bottom: 5px;
}
.ai-article-head a       { color: inherit; text-decoration: none; }
.ai-article-head a:hover { color: var(--teal-ai); }
.ai-article-time {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: rgba(245,243,238,.38);
}

/* ── TWO-COL SECTION ────────────────────────────────────────────────── */
.two-col-section {
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
}
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  gap: 0;
}
.two-col-main  { min-width: 0; }
.two-col-aside { min-width: 0; }

/* Long read */
.longread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.longread-img {
  aspect-ratio: 4/3;
  background: var(--paper-warm);
  overflow: hidden;
}
.longread-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.longread-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.longread-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.longread-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  padding: 2px 5px;
}
.longread-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-xl);
  font-weight: 900;
  line-height: 1.15;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 8px;
}
.longread-head a       { color: inherit; text-decoration: none; }
.longread-head a:hover { color: var(--accent); }
.longread-deck {
  font-size: var(--f-sm);
  color: var(--fg-mid);
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 300;
}
.longread-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

/* List articles */
.list-article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}
.list-article:last-child { border-bottom: none; }
.list-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 4px;
}
.list-head a       { color: inherit; text-decoration: none; }
.list-head a:hover { color: var(--accent); }
.list-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.list-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Aside */
.aside-section { margin-bottom: 24px; }
.aside-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.aside-item {
  padding-block: 10px;
  border-bottom: 1px solid var(--border);
}
.aside-item:last-child { border-bottom: none; }
.aside-item-head {
  font-family: 'Inter', sans-serif;
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 3px;
}
.aside-item-head a       { color: inherit; text-decoration: none; }
.aside-item-head a:hover { color: var(--accent); }
.aside-item-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--fg-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 32px 22px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* mobile: 2 cols */
  gap: 28px;
  margin-bottom: 24px;
}
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-xl);
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 7px;
  letter-spacing: -0.02em;
  grid-column: 1 / -1;   /* ancho completo en mobile */
}
.footer-brand-name span { color: var(--teal-ai); }
.footer-brand-desc {
  font-size: var(--f-xs);
  color: rgba(245,243,238,.48);
  line-height: 1.65;
  max-width: 30ch;
  font-weight: 300;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.03em;
  grid-column: 1 / -1;
  margin-top: -14px;
  margin-bottom: 4px;
}
.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: var(--f-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,243,238,.38);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,243,238,.1);
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  font-size: var(--f-sm);
  color: rgba(245,243,238,.65);
  text-decoration: none;
  transition: color .1s;
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(245,243,238,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: rgba(245,243,238,.32);
  letter-spacing: 0.04em;
}
.footer-ia-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--teal-dim);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── IMAGE PLACEHOLDERS ─────────────────────────────────────────────── */
.ph-tech     { background: linear-gradient(135deg,#0d1b2a 0%,#1b263b 100%); }
.ph-politica { background: linear-gradient(135deg,#2d0a0a 0%,#4a1010 100%); }
.ph-ia       { background: linear-gradient(135deg,#001a1a 0%,#003333 100%); }
.ph-economia { background: linear-gradient(135deg,#1a1400 0%,#332800 100%); }
.ph-ciencia  { background: linear-gradient(135deg,#0a001a 0%,#1a0033 100%); }
.ph-futuro   { background: linear-gradient(135deg,#001a1a 0%,#001133 100%); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — tablet ≥ 640px
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid .card:nth-child(2n) { border-right: none; }

  /* ai-band: sigue en 1 col hasta 900px — los 3 artículos se muestran apilados */
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — desktop ≥ 900px
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

  /* Hero: lead + sidebar */
  .hero-grid {
    grid-template-columns: 1fr 280px;
    gap: 0;
  }
  .hero-lead {
    padding-right: 28px;
    border-right: 1px solid var(--border);
  }
  .hero-sidebar {
    display: flex;
    padding-left: 22px;
  }

  /* Cards: 3 columnas */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid .card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .cards-grid .card:last-child { border-right: none; }

  /* AI band: 3 artículos */
  .ai-band-articles { grid-template-columns: repeat(3, 1fr); }
  .ai-article {
    display: block;
    padding: 0 22px;
    border-right: 1px solid rgba(245,243,238,.1);
    border-bottom: none;
  }
  .ai-article:first-child { padding-left: 0; }
  .ai-article:last-child  { border-right: none; }
  .ai-article:nth-child(2) { border-right: 1px solid rgba(245,243,238,.1); }

  /* Two-col */
  .two-col-grid { grid-template-columns: 2fr 1fr; }
  .two-col-main {
    padding-right: 28px;
    border-right: 1px solid var(--border);
  }
  .two-col-aside {
    padding-left: 24px;
    padding-top: 0;
  }

  /* Long read: imagen + texto lado a lado */
  .longread { grid-template-columns: 1fr 1fr; }

  /* Footer: 4 columnas */
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand-name { grid-column: 1; }
  .footer-brand-desc { grid-column: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — wide ≥ 1200px
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 300px; }

  :root {
    --f-xs:   0.72rem;
    --f-sm:   0.82rem;
    --f-base: 0.9rem;
    --f-md:   1.05rem;
    --f-lg:   1.25rem;
    --f-xl:   1.6rem;
    --f-2xl:  2rem;
    --f-hero: clamp(1.8rem, 3vw, 2.8rem);
  }
}

/* ── MASTHEAD RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .masthead-inner { grid-template-columns: 1fr; gap: 10px; }
  .masthead-left  { display: none; }
  .masthead-right { order: -1; align-items: flex-end; }
}
@media (max-width: 600px) {
  .masthead-right { display: none; }
  .topbar-right .topbar-location { display: none; }
}
