/* PAIS — sistema editorial tipográfico (texto primero, sin fotos) */
:root {
  --navy: #061633;
  --gold: #f5c518;
  --ink: #14181f;
  --ink-2: #4a5260;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e4e1da;
  --serif: 'Playfair Display', Georgia, 'Noto Serif', serif;
  --sans: 'Inter', -apple-system, 'Noto Sans', sans-serif;
}
html[data-theme="dark"] {
  --ink: #e8e6e1;
  --ink-2: #9aa3b2;
  --paper: #0b0f17;
  --card: #131a26;
  --line: #232c3d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── topbar ── */
.topbar { background: var(--navy); color: #c9d4e8; font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 34px; }
.topbar-date { white-space: nowrap; }
.topbar-fx { display: flex; gap: 14px; overflow: hidden; flex: 1; white-space: nowrap; }
.fx-pair b { color: var(--gold); font-weight: 600; }
.topbar-right { margin-inline-start: auto; white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.topbar-right a { color: #fff; font-weight: 600; }
.tb-brand { color: var(--gold); font-weight: 800; letter-spacing: 2px; }
.theme-btn { background: none; border: none; color: #c9d4e8; font-size: 15px; cursor: pointer; }

/* ── masthead ── */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead-in { padding: 20px; }
.brand { display: flex; align-items: center; gap: 16px; line-height: 1; }
.brand-flag { font-size: 46px; line-height: 1; }
img.brand-flag {
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--line), 0 2px 8px rgba(0, 0, 0, .15);
}
.flag-inline { width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }
.brand-name {
  display: block; font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 5vw, 46px); letter-spacing: 2px; color: var(--ink);
}
.brand-sub { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-2); margin-top: 7px; }

/* ── nav ── */
.mainnav { background: var(--card); border-bottom: 2.5px solid var(--navy); position: sticky; top: 0; z-index: 50; }
.nav-links { display: flex; flex-wrap: wrap; }
.nav-links a {
  padding: 11px 13px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .3px; border-bottom: 3px solid transparent; transition: .15s;
}
.nav-links a:hover, .nav-links a.on { border-bottom-color: var(--cat, var(--gold)); color: var(--cat, inherit); }

/* ── ticker ── */
.ticker { display: flex; align-items: center; background: #a31a1a; color: #fff; overflow: hidden; height: 36px; }
.ticker-tag { background: #7a0f0f; font-weight: 800; font-size: 11.5px; letter-spacing: 2px; padding: 0 14px; line-height: 36px; flex-shrink: 0; }
.ticker-rail { overflow: hidden; flex: 1; }
.ticker-move { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; animation: tick 90s linear infinite; padding-inline-start: 10px; }
.ticker-move a { font-size: 13px; font-weight: 500; }
.ticker-move a:hover { text-decoration: underline; }
.tick-dot { font-size: 7px; color: var(--gold); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-move { animation-name: tick-rtl; }
@keyframes tick-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── kicker / byline ── */
.kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cat, var(--navy));
  border-inline-start: 3px solid var(--cat, var(--gold)); padding-inline-start: 8px; margin-bottom: 10px;
}
.byline { font-size: 12px; color: var(--ink-2); }

/* ── fotos ── */
.img-box {
  position: relative; overflow: hidden; border-radius: 8px;
  background: linear-gradient(135deg, #1b2740, #0a0f1d);
}
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-sq { aspect-ratio: 1; }
.img-box img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
a:hover .img-box img, .video-card:hover .img-box img { transform: scale(1.04); }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; padding: 28px 0 10px; }
.hero-lead .img-box { margin-bottom: 16px; }
.hero-lead h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.14; margin: 4px 0 10px; }
.hero-lead:hover h1 { text-decoration: underline; }
.hero-lead .lede { color: var(--ink-2); font-size: 16px; max-width: 62ch; margin-bottom: 8px; }
.hero-side { display: flex; flex-direction: column; gap: 15px; border-inline-start: 1px solid var(--line); padding-inline-start: 26px; }
.side-card { display: grid; grid-template-columns: 96px 1fr; gap: 13px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-card:only-child, .side-card:last-child { border-bottom: none; }
.side-card:not(:has(.img-box)) { grid-template-columns: 1fr; }
.side-card h3 { font-family: var(--serif); font-size: 16px; line-height: 1.28; margin-bottom: 4px; }
.side-card:hover h3 { text-decoration: underline; }

/* ── más portada ── */
.top-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 22px 0 6px; border-top: 1px solid var(--line); margin-top: 24px; }
.brief .img-box { margin-bottom: 9px; }
.brief h3 { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; margin-bottom: 5px; }
.brief:hover h3 { text-decoration: underline; }

/* ── vídeo ── */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-grid.big { grid-template-columns: repeat(3, 1fr); }
.video-card h3 { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; margin: 9px 0 4px; }
.vthumb { cursor: pointer; }
.vthumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; z-index: 2; transition: transform .2s;
}
.vthumb .play::before {
  content: ''; position: absolute; width: 62px; height: 43px; border-radius: 11px;
  background: rgba(163, 26, 26, .92); z-index: -1;
}
.vthumb:hover .play { transform: scale(1.12); }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; }

/* ── secciones portada ── */
.sec-row { padding: 26px 0 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 3px solid var(--cat, var(--navy)); margin-bottom: 16px; }
.sec-head h2 { font-family: var(--serif); font-size: 23px; padding-bottom: 6px; }
.sec-head h2 a:hover { color: var(--cat); }
.sec-all { font-size: 12.5px; font-weight: 700; color: var(--cat, var(--navy)); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-grid.four { grid-template-columns: repeat(4, 1fr); }
.card .img-box { margin-bottom: 10px; }
.card h3 { font-family: var(--serif); font-size: 16px; line-height: 1.3; margin-bottom: 5px; }
.card p { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.card:hover h3 { text-decoration: underline; }

/* ── página de sección ── */
.sec-hero { padding: 32px 0 16px; border-bottom: 4px solid var(--cat, var(--navy)); margin-bottom: 8px; }
.sec-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--cat, var(--ink)); }
.sec-hero p { color: var(--ink-2); margin-top: 4px; }
.sec-list .row { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sec-list .row h3 { font-family: var(--serif); font-size: 18px; line-height: 1.3; margin-bottom: 3px; }
.sec-list .row:hover h3 { text-decoration: underline; }
.empty { padding: 50px 0; color: var(--ink-2); font-size: 15px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 36px 0 10px; font-weight: 700; }
.pager a { border: 1.5px solid var(--line); background: var(--card); padding: 9px 20px; border-radius: 24px; font-size: 14px; }
.pager a:hover { border-color: var(--gold); }
.pager span { color: var(--ink-2); font-size: 13.5px; }

/* ── índice planetario ── */
.world-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 36px; padding: 40px 0 22px;
}
.wh-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-2); border-inline-start: 3px solid var(--gold);
  padding-inline-start: 10px; margin-bottom: 14px;
}
.world-hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.06; }
.wh-sub { color: var(--ink-2); margin: 16px 0 22px; max-width: 54ch; }
.wh-search { position: relative; width: min(460px, 100%); }
.wh-search svg {
  position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-2); pointer-events: none;
}
.cfilter {
  width: 100%; padding: 14px 20px; padding-inline-start: 46px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 28px;
  background: var(--card); color: var(--ink); outline: none; font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.cfilter:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 197, 24, .15); }
.wh-stats { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px; }
.wh-stats b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wh-stats span { font-size: 9.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.wh-live { position: relative; padding-inline-start: 16px; }
.wh-live::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%; margin-top: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: #17a34a;
  box-shadow: 0 0 0 0 rgba(23, 163, 74, .5); animation: pulso 2.2s ease-out infinite;
}
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(23, 163, 74, .45); }
  70% { box-shadow: 0 0 0 9px rgba(23, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) { .wh-live::before { animation: none; } }
.wh-globe { position: relative; width: min(480px, 100%); aspect-ratio: 1; margin: 0 auto; }
.wh-globe canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.globo-tip {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 16px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 5;
}
html[data-theme="dark"] .globo-tip { background: var(--gold); color: #14181f; }

/* la portada del día en el índice: lo último del planeta, un país cada vez */
.mundo-ahora { padding: 6px 0 10px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #a31a1a; padding-bottom: 6px;
}
.live-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #a31a1a;
  box-shadow: 0 0 0 0 rgba(163, 26, 26, .5); animation: pulso-rojo 2.2s ease-out infinite;
}
@keyframes pulso-rojo {
  0% { box-shadow: 0 0 0 0 rgba(163, 26, 26, .45); }
  70% { box-shadow: 0 0 0 8px rgba(163, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 26, 26, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-pill::before { animation: none; } }
html[data-theme="dark"] .live-pill { color: #e05252; }
html[data-theme="dark"] .live-pill::before { background: #e05252; }
.ahora-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ahora-card .img-box { margin-bottom: 9px; }
.ahora-pais {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px;
}
.ahora-pais i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; margin-inline-start: auto; }
.ahora-card h3 { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; }
.ahora-card:hover h3 { text-decoration: underline; }

.region { padding: 20px 0 6px; }
.sec-n { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.country-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.country-card:hover {
  border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 22, 51, .10);
}
.country-card.off .cc-names { opacity: .55; }
.cc-flag {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 1.5px var(--line), 0 1px 3px rgba(0, 0, 0, .12);
}
.country-card:hover .cc-flag { box-shadow: 0 0 0 1.5px var(--gold), 0 1px 3px rgba(0, 0, 0, .12); }
.cc-names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cc-names b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-names i { font-style: normal; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-count { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; font-variant-numeric: tabular-nums; }

/* ── página de la noticia ── */
.story { max-width: 820px; margin: 0 auto; padding: 32px 0 8px; }
.story h1 { font-family: var(--serif); font-size: clamp(27px, 3.6vw, 44px); line-height: 1.16; margin: 6px 0 14px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 0; margin-bottom: 22px; }
.story-img { margin: 0 0 20px; }
.story-img img { width: 100%; border-radius: 10px; }
.story-img figcaption { font-size: 12px; color: var(--ink-2); margin-top: 7px; }
.story .lede { font-size: 19px; line-height: 1.62; margin-bottom: 24px; }
.btn-fuente {
  display: inline-block; background: var(--gold); color: #14181f !important;
  font-weight: 800; padding: 13px 26px; border-radius: 28px; font-size: 15px;
  transition: .15s;
}
.btn-fuente:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nota-fuente { font-size: 12.5px; color: var(--ink-2); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── footer ── */
.footer { border-top: 3px solid var(--navy); margin-top: 44px; background: var(--card); }
.f-in { padding: 30px 20px; text-align: center; color: var(--ink-2); font-size: 13.5px; }
.f-name { font-size: 26px; letter-spacing: 3px; margin-bottom: 8px; color: var(--ink); }
.f-bottom { margin-top: 14px; font-size: 12px; }

/* ── responsive ── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-side { border-inline-start: none; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .top-more, .news-grid, .news-grid.four, .video-grid, .video-grid.big, .ahora-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-flag { font-size: 34px; }
  img.brand-flag { width: 40px; height: 40px; }
  .nav-links { overflow-x: auto; flex-wrap: nowrap; }
  .nav-links a { white-space: nowrap; }
  .world-hero { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .wh-kicker { border: none; padding: 0; }
  .wh-sub { margin-inline: auto; }
  .wh-search { margin: 0 auto; }
  .wh-stats { justify-content: center; }
  .wh-globe { width: min(340px, 88vw); margin-top: 8px; }
}
@media (max-width: 560px) {
  .topbar-fx { display: none; }
  .top-more, .news-grid, .news-grid.four, .video-grid, .video-grid.big { grid-template-columns: 1fr; }
  .ahora-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ahora-card h3 { font-size: 13.5px; }
  .side-card { grid-template-columns: 84px 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PAIS — IDENTIDAD TINTA Y ALMAGRE (2026-07-16).
   El diario clásico: papel marfil, tinta negra cálida, UN acento rojo almagre
   de prensa, oro solo para la marca. Titulares en Literata (latín + cirílico +
   griego; el resto de alfabetos cae a la serif del sistema). Fuera el arcoíris
   de secciones: como los diarios impresos, una sola tinta. Esta capa va al
   final y manda sobre el sistema de arriba.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* blanco y limpio (pedido del user): el papel es BLANCO puro, la
     originalidad la ponen la tinta, el almagre, el rombo y Literata */
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #191611;
  --ink-2: #6b6558;
  --line: #e7e4dc;
  --navy: #191611;            /* la tinta de casa ya no es azul: negro cálido */
  --gold: #c9971c;            /* oro de cabecera, solo para la marca */
  --rojo: #9c2b1e;            /* almagre: el único acento de prensa */
  --serif: 'Literata', Georgia, 'Noto Serif', serif;
}
.cc-count { background: #f6f4ef; }
html[data-theme="dark"] {
  --paper: #131110;
  --card: #1b1815;
  --ink: #eae5d8;
  --ink-2: #a29a89;
  --line: #35302a;
  --navy: #1b1815;
  --gold: #d8b45a;
  --rojo: #d24a3a;
}
::selection { background: var(--gold); color: #1a1713; }

/* ── topbar y footer: tinta con texto de papel ── */
.topbar { background: #1a1713; color: #cfc9ba; }
html[data-theme="dark"] .topbar { background: #060504; }
.theme-btn { color: #cfc9ba; }
.footer { border-top: 3px double var(--ink); }

/* ── masthead y línea de edición ── */
.masthead { border-bottom: none; }
img.brand-flag { box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0, 0, 0, .18); }
.edition-line { border-top: 1px solid var(--line); border-bottom: 2.5px solid var(--ink); background: var(--card); }
.ed-in { display: flex; align-items: center; gap: 16px; padding: 6px 20px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-2); }
.ed-no { font-weight: 800; color: var(--rojo); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ed-date { white-space: nowrap; }
.ed-mid { flex: 1; position: relative; height: 1px; background: var(--line); }
.ed-mid::before {
  content: ''; position: absolute; inset-inline-start: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ── navegación de impreso: una tinta, subrayado almagre ── */
.mainnav { border-bottom: 1px solid var(--line); }
.nav-links a { text-transform: uppercase; font-size: 12px; letter-spacing: 1.2px; font-weight: 700; }
.nav-links a:hover, .nav-links a.on { border-bottom-color: var(--rojo); color: var(--ink); }

/* ── una sola paleta: los rubros pierden el arcoíris ── */
.kicker { color: var(--rojo); border-inline-start-color: var(--rojo); }
.sec-head { border-bottom: 4px double var(--ink); }
.sec-head h2 a:hover { color: var(--rojo); }
.sec-all { color: var(--rojo); }
.sec-hero { border-bottom: 4px double var(--ink); }
.sec-hero h1 { color: var(--ink); }
.img-box { background: linear-gradient(135deg, #2a251d, #16130e); border-radius: 3px; }
.story-img img { border-radius: 3px; }

/* ── ÚLTIMA HORA y vídeo en almagre ── */
.ticker { background: #7d1a10; }
.ticker-tag { background: #5c120a; }
.vthumb .play::before { background: rgba(125, 26, 16, .92); }

/* ── titulares con la pluma de Literata ── */
.hero-lead h1, .story h1 { font-weight: 800; letter-spacing: -.3px; }
.brand-name { font-weight: 800; }
.side-card h3, .brief h3, .card h3 { font-weight: 700; }

/* ── el índice planetario hereda la tinta ── */
.wh-kicker { border-inline-start-color: var(--rojo); }
.cfilter:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 151, 28, .15); }
.country-card { border-radius: 4px; }
.country-card:hover { border-color: var(--gold); }
.globo-tip { background: #1a1713; }
html[data-theme="dark"] .globo-tip { background: var(--gold); color: #1a1713; }
.live-pill { color: var(--rojo); }
.live-pill::before { background: var(--rojo); }

/* ── botones de imprenta ── */
.btn-fuente { border-radius: 4px; }
.pager a { border-radius: 4px; }
.pager a:hover { border-color: var(--rojo); }

@media (max-width: 800px) {
  .ed-in { gap: 10px; letter-spacing: 1.5px; font-size: 10px; }
}
