/*
  Hoja de estilos de la web pública. Busca «=====» para saltar de sección.
  Secciones, por orden:
   - Variables de color (cambiar aquí la paleta)
   - Base: enlaces, tipografía y maquetación
   - Bloques, etiquetas y pills de tipo
   - Tarjetas de artículo y listados
   - Cabecera: barra superior, logo, menú y buscador
   - Botones
   - Portada: últimas noticias, hechos, opinión y bandas de llamada
   - Pie de página
   - Artículo: cabecera y titular
   - Adaptación a pantallas pequeñas (móvil)
   - Usuarios
   - Selector de tarifas
   - Página de suscripciones
   - Cuerpo de artículos en Markdown
   - Páginas institucionales y corrección en artículos
   - Contenido promocionado
   - Buscador
   - Pills enlazadas y filtros
   - Un mismo hecho (análisis de cobertura)
   - Árbol mediático
   - Tarjeta del árbol mediático en portada
   - Fuentes analíticas
   - Suscripciones: fichas más vivas y botón que explica qué añade cada plan
   - Portada: zona de suscripciones
   - Trazo libre: donación con regalo
   - Apoyo que nos mantiene libres
   - Trazo libre ocupa el doble de ancho que las demás tarjetas
   - Modo oscuro (opt-in: el modo claro es el predeterminado)
   - Botón de cambio de tema
   - Portada: las siete secciones (4 + 3) con aire entre filas
   - Secciones en carrusel horizontal en bucle
   - Botón de modo claro/oscuro junto al buscador
   - Selector de idioma (barra superior)
   - Aviso de idioma en los artículos
   - Boletín
   - Cuenta del lector
   - Comentarios
   - Accesibilidad: enlace de salto, foco del contenido principal
   - Buscador y botón de tema: debajo de la barra de secciones
   - Estadísticas
   - Fechas de publicación/actualización, correcciones, autoría
   - Formularios: errores, resumen, estado de carga
   - Búsqueda
*/

/* ===== Variables de color (cambiar aquí la paleta) ===== */
:root {
  --ink: #17151a;
  --purple: #940ae3;
  --lime: #8dc601;
  --magenta: #c01f48;
  --paper: #f7f5f8;
  --mute: #4a4552;
  --line: #d9d4df;
  --card: #fff;
  --bar: #17151a;
  --soft: #ebe7ef;
  --soft2: #e4dfe9;
  --mute2: #5b5563;
  --purple-t: #940ae3;
  --magenta-t: #c01f48;
  --tint-p: #f3e8fb;
  --tint-l: #f0f7dc;
  --tint-m: #fbe6ec;
  --ok-t: #3b5d00;
  --bad-t: #a3173c;
  --warn-t: #8a5a0a;
  --hl: #e3f1b0;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
/* ===== Base: enlaces, tipografía y maquetación ===== */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.serif {
  font-family: "Newsreader", Georgia, serif;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.main {
  padding-top: 24px;
  padding-bottom: 56px;
}
.g2 {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
}
.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
/* ===== Bloques, etiquetas y pills de tipo ===== */
.hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}
.block {
  padding: 40px 0;
}
.tag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-t);
}
.pill {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  color: #fff;
}
.pill-noticia {
  background: var(--bar);
}
.pill-analisis {
  background: var(--purple);
}
.pill-opinion {
  background: var(--magenta);
}
/* ===== Tarjetas de artículo y listados ===== */
.ph {
  background: repeating-linear-gradient(135deg, var(--soft2) 0 12px, var(--soft) 12px 24px);
  color: var(--mute2);
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-tags {
  margin-top: 14px;
}
.card-tags .tag {
  margin-left: 8px;
}
.card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin: 8px 0;
}
.card p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
}
.card-big h2,
.card-big h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.08;
  margin: 12px 0;
}
.card-big p {
  font-size: 19px;
}
.card.compact {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 4px;
}
.card.compact:first-of-type {
  border: 0;
  margin-top: 0;
  padding: 0;
}
.meta {
  font-size: 12px;
  color: var(--mute2);
  margin-top: 8px;
}
.sec {
  border-top: 3px solid var(--ink);
  padding-top: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sec h1,
.sec h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sec .meta {
  margin: 0;
}
/* ===== Cabecera: barra superior, logo, menú y buscador ===== */
.topbar {
  background: var(--bar);
  color: #efeff0;
  font-size: 13px;
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 16px;
}
.topbar-r {
  display: flex;
  gap: 20px;
  align-items: center;
}
.masthead {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 28px auto 24px;
}
.logo {
  width: 100%;
  height: auto;
  display: block;
}
.navrow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  font-weight: 500;
  font-size: 15px;
}
.search {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--mute);
}
.legend-link {
  margin-left: auto;
  text-decoration: underline;
  color: var(--ink);
  font-weight: 500;
}
/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-weight: 700;
  border-radius: 2px;
}
.btn-accent {
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
}
.btn-dark {
  background: var(--bar);
  color: #fff;
}
.btn-line {
  border: 2px solid #fff;
  padding: 12px 22px;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
/* ===== Portada: últimas noticias, hechos, opinión y bandas de llamada ===== */
.last {
  margin: 0;
  padding: 0;
}
.last li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.3;
}
.last span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--mute2);
  margin-bottom: 2px;
}
.facts {
  background: var(--bar);
  color: #efeff0;
  border-radius: 2px;
  padding: 40px;
}
.facts h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  margin: 12px 0 28px;
  max-width: 820px;
}
.facts-tag {
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts .g3 {
  font-size: 15px;
  line-height: 1.55;
}
.facts strong {
  display: block;
  color: var(--lime);
  margin-bottom: 8px;
}
.opinion {
  background: var(--soft);
  padding: 32px 40px;
  border-radius: 2px;
}
.cta {
  background: var(--purple);
  color: #fff;
}
.cta .g2 {
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: center;
}
.cta h2 {
  font-family: "Newsreader", Georgia, serif;
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
}
.cta p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 640px;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* ===== Pie de página ===== */
.footer {
  background: var(--bar);
  color: #efeff0;
  font-size: 14px;
  line-height: 2;
}
.footer .g4 {
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer strong {
  display: block;
  margin-bottom: 4px;
}
.footer p {
  line-height: 1.5;
  margin: 0 0 12px;
  color: #c9c4cf;
}
.brand {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.brand-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}
.brand-sub {
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal {
  border-top: 1px solid #3a3740;
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 12px;
  color: #c9c4cf;
}
/* ===== Artículo: cabecera y titular ===== */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h1 {
  font-size: 46px;
  line-height: 1.1;
  margin: 12px 0;
}
.dek {
  font-size: 20px;
  color: var(--mute);
}
/* ===== Adaptación a pantallas pequeñas (móvil) ===== */
@media (max-width: 860px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 0 20px;
  }
  .hide-s {
    display: none;
  }
  .card-big h2,
  .card-big h3 {
    font-size: 32px;
  }
}

/* ===== Usuarios ===== */
.auth,
.plans {
  max-width: 520px;
  margin: 24px auto;
}
.plans {
  max-width: 860px;
}
.auth h1,
.plans h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--card);
}
.input:focus,
.btn:focus-visible,
.linkbtn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.field-error {
  color: var(--bad-t);
  font-size: 13px;
  margin-top: 6px;
}
.ulink {
  text-decoration: underline;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.linkbtn:hover {
  text-decoration: underline;
}
form.inline {
  display: inline;
  margin: 0;
}
.flashes {
  padding-top: 16px;
}
.flash {
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 14px;
  border: 1px solid var(--ink);
  background: var(--card);
}
.flash-ok {
  border-color: var(--ok-t);
  background: var(--tint-l);
}
.flash-error {
  border-color: var(--bad-t);
  background: var(--tint-m);
}
.plan-grid {
  grid-template-columns: 1fr 1fr;
  margin: 24px 0;
}
.plan {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 24px;
}
.plan ul {
  padding-left: 18px;
  color: var(--mute);
  line-height: 1.7;
}
.plan-price {
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0;
}
@media (max-width: 860px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Selector de tarifas ===== */
.interval {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.interval label {
  font-size: 15px;
}
.plan-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.plan-row {
  display: grid;
  grid-template-columns: auto 110px 1fr auto;
  gap: 8px 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 14px 16px;
  cursor: pointer;
}
.plan-row:has(input[type="radio"]:checked) {
  outline: 3px solid var(--purple);
}
.plan-name {
  font-size: 22px;
  font-weight: 600;
}
.plan-perk {
  color: var(--mute);
  font-size: 14px;
}
.plan-cost {
  text-align: right;
  font-weight: 700;
}
.plan-cost small {
  font-weight: 400;
  color: var(--mute2);
}
@media (max-width: 860px) {
  .plan-row {
    grid-template-columns: auto 1fr auto;
  }
  .plan-perk {
    grid-column: 2/4;
    grid-row: 2;
  }
}
.plan-row.is-current {
  background: var(--tint-p);
}
.plan-row .pill {
  margin-left: 8px;
  vertical-align: middle;
}
.account {
  max-width: 860px;
  margin: 24px auto;
}
.account h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
}
/* Pestañas de Mi cuenta: enlaces normales (?tab=…), sin JavaScript. En pantallas estrechas se desplazan en horizontal. */
.acc-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 8px;
  border-bottom: 3px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: thin;
}
.acc-tabs a {
  flex: 0 0 auto;
  padding: 12px 20px;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid transparent;
  border-bottom: 0;
}
.acc-tabs a:hover {
  background: var(--card);
  border-color: var(--line);
}
.acc-tabs a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (max-width: 520px) {
  .acc-tabs a {
    padding: 12px 14px;
  }
}
.summary {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* ===== Página de suscripciones ===== */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pricing {
  max-width: 1100px;
  margin: 24px auto;
}
.pricing-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.pricing-head h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 8px 0 12px;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tier {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.tier h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}
.tier-price {
  font-size: 34px;
  font-weight: 600;
  margin: 8px 0 2px;
}
.tier-price small {
  font-size: 15px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  color: var(--mute);
}
.tier-list {
  padding-left: 18px;
  margin: 0 0 20px;
  line-height: 1.6;
  flex: 1;
  font-size: 15px;
}
.tier-list .inherits {
  color: var(--mute);
  list-style: none;
  margin-left: -18px;
  font-weight: 700;
}
.tier-free {
  background: var(--tint-p);
}
.matrix-title {
  font-size: 30px;
  margin: 48px 0 16px;
  font-weight: 600;
}
.matrix-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--card);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
.matrix th,
.matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.matrix thead th {
  border-bottom: 2px solid var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
}
.matrix tbody th,
.matrix-price th {
  text-align: left;
  font-weight: 500;
}
.matrix-price td {
  color: var(--mute);
  font-size: 13px;
}
.matrix .yes {
  color: var(--ok-t);
  font-weight: 700;
  font-size: 18px;
}
.matrix .no {
  color: #8b8593;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p {
  margin: 10px 0 0;
  color: var(--mute);
  line-height: 1.6;
}
@media (max-width: 860px) {
  .pricing-head h1 {
    font-size: 34px;
  }
}

/* ===== Cuerpo de artículos en Markdown ===== */
.prose {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  margin-top: 24px;
}
.prose h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 24px;
  margin: 32px 0 8px;
}
.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 20px;
}
.prose a {
  color: var(--purple-t);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--lime);
  color: var(--mute);
  font-style: italic;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 2px;
}
.prose pre {
  background: var(--bar);
  color: #efeff0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 2px;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.prose th {
  background: var(--soft);
}
.article-figure {
  margin: 24px 0;
}
.article-figure img {
  width: 100%;
  height: auto;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--mute2);
  margin-top: 6px;
}
.empty {
  padding: 32px;
  border: 1px dashed var(--ink);
  color: var(--mute);
}

/* ===== Páginas institucionales y corrección en artículos ===== */
.page-layout {
  max-width: 1000px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.page-nav ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}
.page-nav li {
  border-bottom: 1px solid var(--line);
}
.page-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
}
.page-nav a.active {
  font-weight: 700;
  color: var(--purple-t);
}
.page h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.page .prose {
  margin-top: 20px;
}
.correction {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--magenta);
  background: var(--tint-m);
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .page h1 {
    font-size: 34px;
  }
}

/* ===== Contenido promocionado ===== */
.pill-promocionado {
  background: var(--lime);
  color: var(--ink);
}
.sponsored {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--lime);
  background: var(--tint-l);
  font-size: 15px;
  line-height: 1.5;
}

/* ===== Buscador ===== */
.searchform {
  display: flex;
  gap: 8px;
  align-items: center;
}
.searchform .input {
  width: 220px;
}
.search-page {
  max-width: 820px;
  margin: 24px auto;
}
.search-page h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.results {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.result {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.result h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  margin: 8px 0;
}
.result p {
  margin: 0;
  color: var(--mute);
  line-height: 1.55;
}
mark {
  background: var(--hl);
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.btn-line-dark {
  border: 2px solid var(--ink);
  padding: 12px 20px;
}
@media (max-width: 860px) {
  .navrow {
    flex-wrap: wrap;
  }
  .searchform {
    width: 100%;
    order: -1;
  }
  .searchform .input {
    flex: 1;
    width: auto;
  }
  .search-page h1 {
    font-size: 32px;
  }
}

/* ===== Pills enlazadas y filtros ===== */
a.pill {
  text-decoration: none;
}
a.pill:hover,
a.pill:focus-visible {
  filter: brightness(0.92);
  text-decoration: underline;
}
.kindfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
}
.kindfilter .pill.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ===== Un mismo hecho (análisis de cobertura) ===== */
.facts h2 a {
  text-decoration: none;
}
.facts h2 a:hover {
  text-decoration: underline;
}
.facts-more {
  display: inline-block;
  margin-top: 24px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
a.facts-tag {
  text-decoration: none;
}
a.facts-tag:hover {
  text-decoration: underline;
}
.spectrum {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
}
.sp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.sp-bar {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 120px;
  background: rgba(148, 10, 227, 0.12);
  border-bottom: 3px solid currentColor;
}
.sp-bar i {
  display: block;
  width: 100%;
  background: var(--lime);
}
.sp-empty .sp-bar {
  background: repeating-linear-gradient(135deg, rgba(128, 128, 128, 0.25) 0 6px, transparent 6px 12px);
  border-bottom-style: dashed;
}
.sp-col b {
  font-size: 13px;
  line-height: 1.2;
}
.sp-n {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.sp-short {
  display: none;
}
.spectrum-compact .sp-full {
  display: none;
}
.spectrum-compact .sp-short {
  display: inline;
}
.spectrum-compact .sp-bar {
  height: 56px;
}
.spectrum-compact {
  gap: 6px;
}
.spectrum-compact .sp-col b,
.spectrum-compact .sp-n {
  font-size: 11px;
}
.facts .spectrum {
  color: #efeff0;
}
.facts .sp-bar {
  background: rgba(255, 255, 255, 0.12);
}
.facts .spectrum-compact .sp-bar i {
  background: var(--lime);
}

.versus {
  max-width: 980px;
  margin: 0 auto;
}
.versus-head {
  background: var(--bar);
  color: #efeff0;
  padding: 40px;
  border-radius: 2px;
  border-top: 6px solid var(--lime);
}
.versus-head .facts-tag {
  color: var(--lime);
}
.versus-head h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 12px 0;
  font-weight: 600;
}
.versus-dek {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 16px;
  color: #d8d3de;
}
.versus-meta {
  font-size: 13px;
  color: #c9c4cf;
}
.versus-know {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2px;
}
.versus-know section {
  background: var(--card);
  padding: 24px 28px;
  border: 1px solid var(--line);
}
.versus-know h2 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.versus-know section:first-child h2 {
  color: var(--ok-t);
}
.versus-know section:last-child h2 {
  color: var(--magenta-t);
}
.versus-know p {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
}
.versus-cov {
  margin-top: 40px;
  padding: 32px;
  background: var(--soft);
  border-radius: 2px;
}
.versus-cov h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.cov-lead {
  margin: 0 0 24px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
  max-width: 720px;
}
.versus-cov .spectrum {
  color: var(--ink);
}
.versus-cov .sp-bar {
  background: rgba(23, 21, 26, 0.08);
}
.versus-cov .sp-bar i {
  background: var(--purple);
}
.versus-cov .sp-col b {
  font-size: 14px;
}
.versus-cov .sp-n {
  font-size: 15px;
  font-weight: 700;
}
.cov-note {
  margin: 20px 0 0;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.outlets-wrap {
  overflow-x: auto;
  margin-top: 24px;
}
.outlets {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 14px;
  background: var(--card);
}
.outlets th,
.outlets td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.outlets thead th {
  background: var(--bar);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.outlets tbody th {
  font-weight: 700;
}
.dots {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
  margin-right: 4px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  display: block;
}
.dots.lv1 i:nth-child(-n + 1),
.dots.lv2 i:nth-child(-n + 2),
.dots.lv3 i {
  background: var(--purple);
}
.cov-method {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
}
.versus-prose {
  counter-reset: sec;
}
.versus-prose h2 {
  counter-increment: sec;
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
.versus-prose h2::before {
  content: counter(sec, decimal-leading-zero);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-t);
}
@media (max-width: 860px) {
  .versus-head {
    padding: 28px 20px;
  }
  .versus-head h1 {
    font-size: 32px;
  }
  .versus-know {
    grid-template-columns: 1fr;
  }
  .versus-cov {
    padding: 24px 16px;
  }
  .spectrum:not(.spectrum-compact) {
    gap: 6px;
  }
  .spectrum:not(.spectrum-compact) .sp-full {
    display: none;
  }
  .spectrum:not(.spectrum-compact) .sp-short {
    display: inline;
  }
  .sp-bar {
    height: 90px;
  }
}
.src-link {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--purple-t);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Árbol mediático ===== */
.tree-page h1,
.tree-entity h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.tree-entity {
  max-width: 900px;
  margin: 24px auto;
}
.tree-entity h2 {
  font-size: 28px;
  margin: 32px 0 12px;
}
.tree-page > .dek {
  max-width: 820px;
}
.tree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 12px;
  font-size: 13px;
}
.tree-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.tree-scroll {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
}
.tree-svg {
  display: block;
  width: 100%;
  min-width: 1000px;
  height: auto;
  font-family: "Space Grotesk", sans-serif;
}
.tree-svg .nbox {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.tree-svg .node.hub .nbox {
  fill: #f1f8d6;
  stroke-width: 2.5;
}
.tree-svg .nlabel {
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--ink);
  pointer-events: none;
}
.tree-svg .ninit {
  font-size: 11px;
  font-weight: 700;
  fill: #fff;
  pointer-events: none;
}
.tree-svg .nbadge {
  fill: var(--ink);
}
.tree-svg .ndeg {
  font-size: 10px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
  pointer-events: none;
}
.tree-svg .node:hover .nbox,
.tree-svg .node:focus .nbox,
.tree-svg .node.hl .nbox {
  fill: var(--lime);
  stroke-width: 2.5;
}
.tree-svg .node:focus {
  outline: none;
}
.tree-svg .node:focus-visible .nbox {
  stroke: var(--purple);
  stroke-width: 3.5;
}
.tree-svg .edge {
  opacity: 0.92;
  transition: opacity 0.15s;
}
.tree-svg .edge.v-declarada {
  opacity: 0.62;
}
.tree-svg .edge.v-indicio {
  opacity: 0.42;
}
.tree-svg.is-focus .edge {
  opacity: 0.06;
}
.tree-svg.is-focus .edge.hl {
  opacity: 1;
}
.tree-svg.is-focus .edge.hl .line {
  stroke-width: 3.6;
}
.tree-svg.is-focus .node:not(.hl) {
  opacity: 0.28;
}
.tree-svg .edge.off {
  display: none;
}
.tree-svg .hd-bar,
.tree-svg .rh-bar {
  fill: var(--ink);
}
.tree-svg .hd-bar-nc {
  fill: #5b5563;
}
.tree-svg .hd-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: #fff;
  text-anchor: middle;
}
.tree-svg .rh-l {
  font-size: 12.5px;
  font-weight: 700;
  fill: #fff;
}
.tree-svg .rh-n {
  font-size: 10.5px;
  fill: #c9c4cf;
}
.tree-scroll {
  border: 2px solid var(--ink);
}
.tree-insights {
  margin-top: 40px;
  padding: 28px;
  background: var(--soft);
}
.tree-insights h2 {
  font-size: 28px;
  margin: 0 0 16px;
}
.tree-insights h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.tree-insgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tree-insights ol,
.tree-insights ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}
.tree-chains {
  list-style: none;
  padding-left: 0 !important;
}
.tree-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.tree-facts div {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.tree-facts dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
  margin-bottom: 4px;
}
.tree-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .tree-page h1,
  .tree-entity h1 {
    font-size: 32px;
  }
  .tree-insgrid {
    grid-template-columns: 1fr;
  }
}

/* ===== Tarjeta del árbol mediático en portada ===== */
.tree-teaser {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  background: var(--lime);
  color: var(--ink);
  padding: 40px;
  border-radius: 2px;
  margin: 0 0 40px;
}
.tt-tag {
  display: inline-block;
  background: var(--bar);
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.tree-teaser h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 600;
  margin: 16px 0 12px;
}
.tt-dek {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 540px;
}
.tt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 0 20px;
}
.tt-stats b {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 44px;
  line-height: 1;
}
.tt-stats span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tt-tiers {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.tt-tiers li {
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.tt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.tt-btn {
  background: var(--bar);
  color: #fff;
  padding: 16px 24px;
  font-weight: 700;
  border-radius: 2px;
}
.tt-btn:hover {
  text-decoration: none;
  background: #2c2931;
}
.tt-link {
  text-decoration: underline;
  font-weight: 700;
}
.tt-map {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 16px 14px 10px;
}
.tt-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.tt-map .tree-svg-mini .edge {
  opacity: 0.95;
}
.tt-map-cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}
.tt-badge {
  position: absolute;
  top: -13px;
  right: 14px;
  background: var(--bar);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}
@media (max-width: 860px) {
  .tree-teaser {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .tree-teaser h2 {
    font-size: 32px;
  }
}
.tree-svg.tree-svg-mini {
  min-width: 0;
  width: 100%;
}
.tree-svg-mini .hd-bar,
.tree-svg-mini .rh-bar {
  fill: #e5e0ea;
}
.tree-svg-mini .hd-bar-nc {
  fill: #cfc9d6;
}

.why-list {
  list-style: none;
  padding-left: 0 !important;
}
.why-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.why-list li:last-child {
  border-bottom: 0;
}
.why-link {
  font-weight: 700;
  color: var(--purple-t);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Fuentes analíticas ===== */
.src-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.src-card {
  border: 1px solid var(--line, #d9d6cf);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 16px 18px;
  background: var(--paper);
}
.src-card h2 {
  margin: 6px 0;
  font-size: 1.25rem;
}
.src-card h2 a {
  color: inherit;
  text-decoration: none;
}
.src-card h2 a:hover {
  text-decoration: underline;
}
.src-card.rel-alta {
  border-left-color: var(--ok-t);
}
.src-card.rel-media {
  border-left-color: #b7791f;
}
.src-card.rel-baja {
  border-left-color: var(--bad-t);
}
.src-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.rel-badge {
  display: inline-block;
  font:
    600 0.75rem/1 system-ui,
    sans-serif;
  padding: 5px 9px;
  border-radius: 99px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rel-badge.rel-alta {
  color: var(--ok-t);
}
.rel-badge.rel-media {
  color: var(--warn-t);
}
.rel-badge.rel-baja {
  color: var(--bad-t);
}
.src-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.src-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.src-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.src-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.src-grid h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.src-orig {
  text-decoration: none;
  font-weight: 700;
  margin-left: 2px;
}
.src-detail h3 {
  margin: 18px 0 6px;
  font-size: 1rem;
}
.src-detail .plain {
  padding-left: 18px;
}

/* ===== Suscripciones: fichas más vivas y botón que explica qué añade cada plan ===== */
.tier {
  position: relative;
  overflow: hidden;
  border-top: 0;
  box-shadow: 0 1px 0 rgba(23, 21, 26, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tier::before {
  content: "";
  display: block;
  height: 6px;
  margin: -24px -24px 20px;
  background: linear-gradient(90deg, var(--purple), var(--lime));
  opacity: calc(0.35 + var(--lvl, 1) * 0.11);
}
.tier:hover,
.tier:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23, 21, 26, 0.14);
}
.tier-free::before {
  background: var(--lime);
  opacity: 1;
}
.tier-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--purple);
  color: #fff;
  padding: 16px 18px;
  text-align: left;
  border-radius: 2px;
  border-bottom: 4px solid rgba(0, 0, 0, 0.28);
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}
.tier-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
}
.tier-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.tier-cta-main {
  font-size: 18px;
  line-height: 1.2;
}
.tier-cta-adds {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: #f1e3fb;
}
.tier-free .tier-cta {
  background: var(--bar);
}
.tier-free .tier-cta-adds {
  color: #d8d3de;
}
@media (prefers-reduced-motion: reduce) {
  .tier,
  .tier-cta {
    transition: none;
  }
  .tier:hover,
  .tier:focus-within,
  .tier-cta:hover {
    transform: none;
  }
}

/* ===== Portada: zona de suscripciones ===== */
.plans-strip {
  margin: 72px 0 56px;
}
.ps-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 3px solid var(--purple);
  padding-top: 14px;
  margin-bottom: 20px;
}
.ps-head h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  max-width: 680px;
}
.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.ps-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--purple);
  padding: 18px 16px 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
}
.ps-card:hover,
.ps-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23, 21, 26, 0.14);
  text-decoration: none;
}
.ps-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.ps-name {
  font-size: 22px;
  font-weight: 600;
}
.ps-price {
  font-size: 28px;
  font-weight: 700;
}
.ps-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--mute);
}
.ps-adds {
  font-size: 14px;
  line-height: 1.4;
  color: var(--mute);
  flex: 1;
}
.ps-go {
  margin: 10px -16px 0;
  padding: 12px 16px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
/* :not(.ps-free): la tarjeta Trazo libre tiene su propio hover (más abajo); si no, esta regla la pondría negra */
.ps-card:not(.ps-free):hover .ps-go {
  background: var(--bar);
}
.ps-free {
  background: var(--bar);
  color: #fff;
  border-top-color: var(--lime);
}
.ps-free .ps-adds,
.ps-free .ps-price small {
  color: #d8d3de;
}
.ps-free .ps-go {
  background: var(--lime);
  color: var(--ink);
}
/* Hover/foco: morado con texto blanco. Sin esto, `.ps-card:hover .ps-go` lo pone en --bar (negro) y deja el texto en --ink (negro): ilegible. */
.ps-free:hover .ps-go,
.ps-free:focus-visible .ps-go {
  background: var(--purple);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .ps-card {
    transition: none;
  }
  .ps-card:hover,
  .ps-card:focus-visible {
    transform: none;
  }
}

/* ===== Trazo libre: donación con regalo ===== */
.tier-kind,
.ps-kind {
  display: inline-block;
  align-self: flex-start;
  font:
    700 11px/1 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 2px;
  margin: 6px 0 0;
}
.ps-free .ps-kind {
  margin: 0;
}

/* ===== Apoyo que nos mantiene libres ===== */
.apoyo {
  max-width: 980px;
  margin: 24px auto;
}
.apoyo h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.apoyo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}
.don-form {
  background: var(--card);
  border: 1px solid var(--ink);
  border-top: 6px solid var(--lime);
  padding: 26px;
  display: grid;
  gap: 14px;
}
.don-form h2,
.wall h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}
.don-amount {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.don-amount .input {
  font-size: 24px;
  max-width: 140px;
}
.don-name {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}
.don-check {
  font-weight: 700;
}
.wall {
  background: var(--tint-p);
  padding: 26px;
  border-top: 6px solid var(--purple);
}
.wall-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
}
@media (max-width: 860px) {
  .apoyo-grid {
    grid-template-columns: 1fr;
  }
  .apoyo h1 {
    font-size: 34px;
  }
}
.don-freq {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.don-freq legend {
  width: 100%;
  padding: 0 0 4px;
}
.don-freq label {
  font-weight: 700;
}

/* ===== Trazo libre ocupa el doble de ancho que las demás tarjetas ===== */
.ps-free,
.tier-free {
  grid-column: span 2;
}
@media (max-width: 560px) {
  .ps-free,
  .tier-free {
    grid-column: auto;
  }
}

/* ===== Modo oscuro (opt-in: el modo claro es el predeterminado) ===== */
:root[data-theme="dark"] {
  --ink: #ecebf0;
  --paper: #141217;
  --card: #1e1b23;
  --mute: #c9c5d1;
  --mute2: #aaa5b4;
  --line: #3a3641;
  --bar: #0a090c;
  --soft: #25212b;
  --soft2: #2c2832;
  --purple-t: #c785f5;
  --magenta-t: #ff7a96;
  --tint-p: #2a1c38;
  --tint-l: #242d12;
  --tint-m: #3a1a24;
  --ok-t: #a6d44a;
  --bad-t: #ff8aa0;
  --warn-t: #f0b45a;
  --hl: #4a5b12;
  color-scheme: dark;
}
/* Islas que mantienen su aspecto claro: mapa del árbol (colores fijos en el SVG), portada-teaser (fondo lima) y piezas sobre lima */
:root[data-theme="dark"] .tree-scroll,
:root[data-theme="dark"] .tt-map,
:root[data-theme="dark"] .tree-teaser,
:root[data-theme="dark"] .btn-lime,
:root[data-theme="dark"] .pill-promocionado,
:root[data-theme="dark"] .tier-kind,
:root[data-theme="dark"] .ps-kind,
:root[data-theme="dark"] .ps-free .ps-go {
  --ink: #17151a;
  --card: #fff;
  --line: #d9d4df;
  --mute: #4a4552;
  --mute2: #5b5563;
  --purple-t: #940ae3;
  --bar: #17151a;
  --soft: #ebe7ef;
}
:root[data-theme="dark"] .pill-noticia {
  background: #3a3641;
}
:root[data-theme="dark"] .masthead {
  background: #f7f5f8;
  border-radius: 2px;
  padding: 14px 20px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
:root[data-theme="dark"] .masthead .logo {
  width: min(440px, 100%);
}
:root[data-theme="dark"] .ph {
  color: var(--mute2);
}
:root[data-theme="dark"] img {
  filter: brightness(0.92);
}
:root[data-theme="dark"] .masthead img,
:root[data-theme="dark"] .brand-logo {
  filter: none; /* el logotipo ya va sobre su placa clara / fondo oscuro: no se atenúa */
}
:root[data-theme="dark"] .ps-card:hover,
:root[data-theme="dark"] .tier:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
/* ===== Botón de cambio de tema ===== */
.theme-toggle {
  font: inherit;
  font-size: 13px;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  padding: 6px 10px;
  cursor: pointer;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.theme-toggle[hidden] {
  display: none;
}
/* Leyenda del mapa: las líneas llevan colores fijos (una es casi negra), se apoyan en una placa clara */
:root[data-theme="dark"] .tree-filter svg {
  background: #f7f5f8;
  border-radius: 2px;
  padding: 2px 3px;
  box-sizing: content-box;
}

/* Pie de página: marca y boletín arriba; debajo, cuatro columnas de enlaces */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
  padding-top: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3a3740;
}
.footer-news {
  max-width: 340px;
}
.footer-news strong {
  display: block;
  margin-bottom: 4px;
}
.footer-news p {
  margin: 0 0 12px;
  color: #c9c4cf;
  line-height: 1.5;
}
.footer .footer-cols {
  padding-top: 32px;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .footer .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

/* ===== Portada: las siete secciones (4 + 3) con aire entre filas ===== */
.g4.block {
  row-gap: 40px;
}
.ps-note {
  margin: 16px 0 14px;
}
.ps-grid-free {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

/* ===== Secciones en carrusel horizontal en bucle ===== */
.loop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.loop-btns {
  display: flex;
  gap: 8px;
}
.loop-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font:
    700 18px/1 "Space Grotesk",
    sans-serif;
  border-radius: 2px;
  cursor: pointer;
}
.loop-btn:hover {
  background: var(--bar);
  color: #fff;
}
.loop-btn:focus-visible,
.loop-track:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.loop-btn[hidden] {
  display: none;
}
.loop-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.loop-track::-webkit-scrollbar {
  display: none;
}
.loop-item {
  flex: 0 0 calc((100% - 96px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 1000px) {
  .loop-item {
    flex-basis: calc((100% - 32px) / 2);
  }
}
@media (max-width: 560px) {
  .loop-item {
    flex-basis: 82%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loop-track {
    scroll-behavior: auto;
  }
}
.loop-3 .loop-item {
  flex-basis: calc((100% - 64px) / 3);
}
@media (max-width: 1000px) {
  .loop-3 .loop-item {
    flex-basis: calc((100% - 32px) / 2);
  }
}
@media (max-width: 560px) {
  .loop-3 .loop-item {
    flex-basis: 82%;
  }
}

/* ===== Botón de modo claro/oscuro junto al buscador ===== */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.theme-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.theme-btn:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.theme-btn[hidden] {
  display: none;
}
.theme-btn .ic-sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .ic-sun {
  display: block;
}
:root[data-theme="dark"] .theme-btn .ic-moon {
  display: none;
}
@media (max-width: 640px) {
  .theme-btn .theme-lbl {
    display: none;
  }
  .theme-btn {
    padding: 0 11px;
  }
}

/* ===== Selector de idioma (barra superior) ===== */
.langsw {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.langsw a {
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.langsw a:hover {
  border-color: rgba(255, 255, 255, 0.45);
}
.langsw a[aria-current] {
  background: #fff;
  color: #17151a;
}
.langsw a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* ===== Aviso de idioma en los artículos ===== */
.langnote {
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple-t);
  background: var(--tint-p);
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: 2px;
  line-height: 1.5;
}
.langnote p {
  margin: 0 0 10px;
}
.langnote p:last-child {
  margin: 0;
}
.langnote-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.langnote-machine {
  border-left-color: var(--warn-t);
  background: var(--soft);
}
.lang-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}
.last li span.lang-tag {
  display: inline-block;
  margin: 0 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
}
@media (max-width: 640px) {
  .topbar-in {
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 6px 14px;
  }
  .topbar-r {
    flex-wrap: wrap;
    gap: 6px 14px;
    width: 100%;
    justify-content: space-between;
  }
}
/* Barra de secciones: si no cabe junto al buscador (idiomas con textos más largos), pasa a su propia fila */
@media (max-width: 1240px) {
  .navrow {
    flex-wrap: wrap;
  }
  .nav {
    flex-basis: 100%;
    order: 2;
  }
}
@media (max-width: 860px) {
  .searchform {
    flex: 1;
    width: auto;
    order: -2;
  }
  .theme-btn {
    order: -1;
  }
}
.searchform .search {
  color: var(--ink);
}
.searchform .search svg {
  stroke: currentColor;
}

/* ===== Boletín ===== */
.narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 0 48px;
}
.newsletter h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.nl-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.nl-form .input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
}
.nl-consent {
  align-items: flex-start;
  line-height: 1.45;
}
.nl-consent input {
  margin-top: 3px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.legal a {
  text-decoration: underline;
}
.page {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page .prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
/* ===== Cuenta del lector ===== */
.btn-chip {
  display: inline-block;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
  box-sizing: border-box;
}
.btn-chip.on {
  background: var(--ink);
  color: var(--paper);
}
.btn-chip:hover {
  border-color: var(--purple-t);
}
.chips {
  list-style: none;
  margin: 12px 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-actions {
  margin: 14px 0 4px;
}
.follow-row {
  margin: 0 0 20px;
}
.reading {
  max-width: 1000px;
  margin: 24px auto;
}
.reading h2.tag,
.account h2.tag {
  margin-top: 34px;
}
.reading .empty {
  color: var(--mute);
  margin: 8px 0 0;
}
.saved-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}
.saved-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.saved-list h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 4px 0;
}
.saved-list a:hover {
  text-decoration: underline;
}
.acc-form {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin: 14px 0 22px;
}
.acc-form label {
  font-weight: 700;
  font-size: 14px;
}
.acc-form button {
  justify-self: start;
}
.acc-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0;
}
.danger {
  margin: 22px 0;
  border: 1px solid var(--line);
  padding: 12px 16px;
  max-width: 520px;
}
.danger summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 24px;
}
.btn-danger {
  background: #b3123b;
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 2px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .saved-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== Comentarios ===== */
.comments {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 24px 0 8px;
  border-top: 3px solid var(--ink);
}
.comments h2 {
  font-size: 28px;
  margin: 0 0 14px;
}
.comments-n {
  font-weight: 400;
  color: var(--mute);
}
.comment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment:target {
  background: var(--soft);
  outline: 2px solid var(--purple-t);
  outline-offset: 4px;
}
.comment-head {
  font-size: 14px;
  color: var(--mute);
}
.comment-head strong {
  color: var(--ink);
}
.comment-body {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.comment-actions {
  margin-top: 6px;
  font-size: 13px;
}
.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.comment-form label {
  font-weight: 700;
  font-size: 14px;
}
.comment-form textarea {
  font: inherit;
  min-height: 110px;
  resize: vertical;
}
.comment-form button {
  justify-self: start;
}
/* ===== Accesibilidad: enlace de salto, foco del contenido principal ===== */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 2px;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--purple-t);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.comment-actions .linkbtn {
  min-height: 24px;
  padding: 2px 0;
}
.notice {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}
.notice p {
  margin: 0 0 10px;
}

/* ===== Buscador y botón de tema: debajo de la barra de secciones ===== */
.toolsrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 4px;
}
/* Botón de búsqueda (lleva a la página de búsqueda, que tiene su propio campo y filtros) */
.search-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  white-space: nowrap;
}
.search-link:hover {
  background: var(--ink);
  color: var(--paper);
}
.search-link:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .search-link .search-lbl {
    display: none;
  }
  .search-link {
    padding: 0 11px;
  }
}

/* ===== Rótulo de titulares: sin JavaScript para moverse ni para pausar ===== */
.ticker {
  flex: 1 1 320px;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  position: relative;
}
.tk-pause-in {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.tk-pause {
  flex: 0 0 auto;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-right: 1px solid var(--line);
  color: var(--ink);
  user-select: none;
}
.tk-pause::before {
  content: "\275A\275A";
  font-size: 11px;
  letter-spacing: -1px;
}
.tk-pause-in:checked + .tk-pause::before {
  content: "\25B6";
  letter-spacing: 0;
}
.tk-pause:hover {
  background: var(--ink);
  color: var(--paper);
}
.tk-pause-in:focus-visible + .tk-pause {
  outline: 3px solid var(--lime);
  outline-offset: -3px;
}
.tk-view {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.tk-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: tk-scroll var(--tk-dur, 60s) linear infinite;
}
@keyframes tk-scroll {
  to {
    transform: translateX(-50%);
  }
}
/* Dos copias iguales; cada una ocupa al menos el ancho de la pantalla para que el bucle no deje huecos */
.tk-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
  min-width: 100vw;
  gap: 34px;
  margin: 0;
  padding: 0 17px;
  list-style: none;
}
.tk-i {
  white-space: nowrap;
  font-size: 14px;
}
.tk-i + .tk-i::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 34px;
  vertical-align: middle;
  background: var(--purple);
  transform: translateY(-1px);
}
.tk-news a {
  font-weight: 600;
}
.tk-news a:hover {
  text-decoration: underline;
}
.tk-k {
  color: var(--mute);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ticker:hover .tk-track,
.tk-view:focus-within .tk-track,
.tk-pause-in:checked ~ .tk-view .tk-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  /* Sin movimiento: se puede recorrer con el dedo o el teclado, y no hace falta el botón de pausa ni la copia */
  .tk-track {
    animation: none;
    width: auto;
  }
  .tk-view {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tk-group {
    min-width: 0;
    justify-content: flex-start;
  }
  .tk-group[aria-hidden="true"],
  .tk-pause,
  .tk-pause-in {
    display: none;
  }
}
@media (max-width: 860px) {
  .toolsrow {
    flex-wrap: nowrap; /* rótulo y botón de búsqueda en la misma fila */
  }
  .ticker {
    flex: 1 1 0;
    min-width: 0;
  }
}
/* ===== Estadísticas ===== */
.stats {
  max-width: 1000px;
  margin: 24px auto;
}
.stats h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.stats-range {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.stats-tot {
  display: flex;
  gap: 32px;
  margin: 16px 0 24px;
}
.stats-tot div {
  border-top: 6px solid var(--lime);
  padding-top: 8px;
}
.stats-tot dt {
  font-size: 13px;
  color: var(--mute);
}
.stats-tot dd {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14px;
}
.stats-table th,
.stats-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.stats-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stats-table th[scope="row"] {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.stats-table .bar {
  display: block;
  height: 10px;
  background: var(--purple);
  border-radius: 1px;
  min-width: 2px;
}
.stats-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 0 40px;
}
.hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
}

/* ===== Fechas de publicación/actualización, correcciones, autoría ===== */
.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 2px 0 8px;
}
.updated strong {
  background: #8dc601;
  color: #17151a;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag-corr {
  background: #fff3cd;
  color: #5c4400;
  border: 1px solid #e0c46c;
}
.tag-upd {
  background: #eef6d4;
  color: #2c4000;
  border: 1px solid #b6d36a;
}
.corrections-foot {
  border-top: 1px solid var(--line, #d9d4de);
  margin-top: 28px;
  padding-top: 12px;
}
.author-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 8px 0 18px;
}
.author-photo {
  border-radius: 50%;
  object-fit: cover;
}
.author-bio {
  max-width: 720px;
}
/* ===== Formularios: errores, resumen, estado de carga ===== */
.error-summary {
  border: 2px solid #b42318;
  background: #fff1f0;
  color: #7a1410;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 18px;
}
.error-summary h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.error-summary ul {
  margin: 0;
  padding-left: 20px;
}
.error-summary a {
  color: inherit;
  font-weight: 600;
}
.input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 1px #b42318;
}
.field-error {
  color: #b42318;
  font-weight: 600;
  margin-top: 4px;
}
.field-error::before {
  content: "⚠ ";
}
form[aria-busy="true"] {
  cursor: progress;
}
button.is-busy,
.btn.is-busy {
  position: relative;
  opacity: 0.8;
  cursor: progress;
}
button.is-busy::before,
.btn.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: vspin 0.8s linear infinite;
}
@keyframes vspin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  button.is-busy::before,
  .btn.is-busy::before {
    animation: none;
    border-right-color: currentColor;
  }
}
/* ===== Búsqueda ===== */
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 12px 0 18px;
}
.search-filters label {
  display: block;
  font-size: 0.85rem;
}
.search-filters select {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line, #c9c4cf);
  border-radius: 6px;
  background: inherit;
  color: inherit;
  font: inherit;
}
.didyoumean {
  font-size: 1.05rem;
}
.search-tips summary {
  cursor: pointer;
}
