/* ==========================================================
   SONOT — Versión inicial estática · Sistema de diseño
   Paleta oficial: Azul Noche, Terracota Cálida, Cactus
   Turquesa, Sol Dorado.
   ========================================================== */
:root {
  --noche: #002b4b;
  --noche-950: #001d33;
  --noche-700: #0d3556;
  --noche-100: #c5d4e2;
  --terracota: #b56c42;
  --terracota-600: #9c5834;
  --cactus: #0a5d6e;
  --cactus-100: #d3e8ec;
  --sol: #d9a348;
  --sol-100: #f8ecd6;
  --fondo: #fdfcfa;
  --tinta: #002b4b;
  --tinta-suave: #40566b;
  --linea: #e3e0da;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Source Serif 4", Georgia, serif;
  --f-ui: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
  line-height: 1.12;
}

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }

/* ---------- Barra superior binacional ---------- */
.topbar {
  background: var(--noche-950);
  color: var(--noche-100);
  font-family: var(--f-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
}
.topbar .geo b { color: var(--sol); font-weight: 600; }

/* ---------- Cabecera / masthead ---------- */
header.masthead {
  background: var(--noche);
  color: #fff;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--terracota), var(--sol)) 1;
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem 0.9rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo span { color: var(--sol); }
.tagline {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--noche-100);
}

nav.secciones {
  background: var(--noche);
  overflow-x: auto;
}
nav.secciones ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding-block: 0 0.75rem;
}
nav.secciones a {
  display: block;
  padding: 0.35rem 0.8rem;
  font-family: var(--f-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}
nav.secciones a:hover { background: var(--noche-700); }
nav.secciones a.frontera { color: var(--sol); }

/* ---------- Módulo EN VIVO (oculto por defecto, cero CLS) ---------- */
#live-banner { display: none; background: var(--noche); color: #fff; border-bottom: 1px solid var(--noche-700); }
#live-banner.activo { display: block; }
#live-banner .wrap {
  display: grid;
  gap: 1rem;
  padding-block: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  #live-banner .wrap { grid-template-columns: 1fr 2fr; align-items: center; }
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terracota);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulso 1.4s ease-in-out infinite;
}
@keyframes pulso { 50% { opacity: 0.35; } }
#live-banner h2 { font-size: 1.5rem; margin-top: 0.7rem; }
#live-banner .sub { font-family: var(--f-ui); font-size: 0.85rem; color: var(--noche-100); margin-top: 0.25rem; }
.live-player { aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.live-player iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Kickers y tarjetas ---------- */
.kicker {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cactus);
}
.kicker.frontera { color: var(--terracota); }

.foto {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  background:
    linear-gradient(140deg, rgba(0,43,75,0.88), rgba(10,93,110,0.55)),
    radial-gradient(circle at 75% 20%, var(--sol) 0%, transparent 45%),
    linear-gradient(220deg, var(--terracota), var(--noche));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--f-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.foto.alta { aspect-ratio: 16 / 9; }

/* ---------- Apertura ---------- */
.apertura { padding-block: 2rem 1.5rem; border-bottom: 1px solid var(--linea); }
.apertura .grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .apertura .grid { grid-template-columns: 7fr 5fr; align-items: center; } }
.apertura h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); margin: 0.5rem 0 0.75rem; }
.apertura h1 a, .card h3 a { text-decoration: none; }
.apertura h1 a:hover, .card h3 a:hover { color: var(--terracota-600); }
.entradilla { color: var(--tinta-suave); font-size: 1.1rem; }
.firma {
  font-family: var(--f-ui);
  font-size: 0.78rem;
  color: var(--tinta-suave);
  margin-top: 0.9rem;
}
.firma b { color: var(--tinta); font-weight: 600; }

/* ---------- Bloque de 3 columnas ---------- */
.bloque { padding-block: 1.75rem; border-bottom: 1px solid var(--linea); }
.bloque-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.bloque-head h2 {
  font-size: 1.25rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--terracota);
}
.bloque-head a {
  font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600;
  color: var(--terracota-600); text-decoration: none;
}
.tres { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .tres { grid-template-columns: repeat(3, 1fr); } }
.card h3 { font-size: 1.15rem; margin: 0.55rem 0 0.4rem; }
.card p { font-size: 0.92rem; color: var(--tinta-suave); }

/* ---------- Opinión ---------- */
.opinion { background: var(--sol-100); border-bottom: 1px solid var(--linea); }
.opinion .bloque-head h2 { border-color: var(--sol); }
.op-grid { display: grid; gap: 1.25rem; padding-bottom: 1.75rem; }
@media (min-width: 700px) { .op-grid { grid-template-columns: repeat(3, 1fr); } }
.op-card {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}
.op-card blockquote {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.4;
}
.op-card .firma { margin-top: 0.7rem; }

/* ---------- Zonas publicitarias (dimensiones reservadas) ---------- */
.ad-slot {
  position: relative;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: #f3f1ec;
  border: 1px dashed var(--linea);
  overflow: hidden;
}
.ad-slot::before {
  content: "Publicidad";
  position: absolute;
  top: 4px; left: 8px;
  font-family: var(--f-ui);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  opacity: 0.5;
}
.ad-slot a, .ad-slot img { width: 100%; height: 100%; object-fit: contain; }
.ad-header { width: min(100%, 728px); height: 90px; margin-block: 1.25rem; }
.ad-inarticle { width: min(100%, 728px); height: 90px; margin-block: 2rem; }
@media (max-width: 640px) {
  .ad-header, .ad-inarticle { width: min(100%, 320px); height: 100px; }
}

/* ---------- Página de artículo ---------- */
#progreso {
  position: fixed; inset: 0 auto auto 0;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--terracota), var(--sol));
  z-index: 60;
}
article.nota { max-width: 42rem; margin-inline: auto; padding: 2.25rem 1rem 3rem; }
article.nota h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0.5rem 0 0.75rem; }
article.nota .entradilla { margin-bottom: 1rem; }
.meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
  font-family: var(--f-ui); font-size: 0.78rem; color: var(--tinta-suave);
  padding-block: 0.8rem; margin-bottom: 1.4rem;
  border-block: 1px solid var(--linea);
}
article.nota .cuerpo p { margin-bottom: 1.15rem; font-size: 1.125rem; }
article.nota .cuerpo p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 3.1em; line-height: 0.85;
  float: left; padding-right: 0.55rem;
  color: var(--terracota);
}
.destacado {
  border-left: 4px solid var(--sol);
  background: var(--sol-100);
  padding: 1rem 1.25rem;
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-style: italic;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.compartir { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.compartir a, .compartir button {
  font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600;
  padding: 0.45rem 0.9rem; border-radius: 4px;
  border: 1px solid var(--linea); background: #fff; color: var(--tinta);
  text-decoration: none; cursor: pointer;
}
.compartir a:hover, .compartir button:hover { border-color: var(--cactus); color: var(--cactus); }

.relacionados { border-top: 1px solid var(--linea); margin-top: 2.5rem; padding-top: 1.5rem; }
.relacionados h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.relacionados li { margin-bottom: 0.6rem; }
.relacionados a { color: var(--tinta); }
.relacionados a:hover { color: var(--terracota-600); }

/* ---------- Pie ---------- */
footer.pie { background: var(--noche); color: var(--noche-100); margin-top: 2.5rem; }
footer.pie .wrap {
  display: grid; gap: 1.5rem;
  padding-block: 2.25rem;
  font-family: var(--f-ui); font-size: 0.85rem;
}
@media (min-width: 700px) { footer.pie .wrap { grid-template-columns: 2fr 1fr 1fr; } }
footer.pie .logo { font-size: 1.6rem; }
footer.pie h4 {
  font-family: var(--f-ui); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sol); margin-bottom: 0.6rem;
}
footer.pie ul { list-style: none; }
footer.pie li { margin-bottom: 0.4rem; }
footer.pie a { color: var(--noche-100); text-decoration: none; }
footer.pie a:hover { color: #fff; }
.legal {
  border-top: 1px solid var(--noche-700);
  padding-block: 0.9rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--noche-100);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
