/* =============================================================================
 * MI DIARIO - Estilos personalizados
 * Complementa Tailwind CDN (play script). Aquí viven variables de tema,
 * tipografías, animaciones, y clases utilitarias que Tailwind Play no cubre.
 * =============================================================================
 */

/* ---- Smooth scroll global (respeta reduced-motion) ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* compensa header sticky para anclas */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
 * Sistema de secciones de noticias (ritmo visual unificado)
 * ============================================================================ */

/* Spacing rhythm consistente */
.news-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .news-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

/* Cabecera de sección unificada — badge + título + see-more */
.news-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid currentColor;
}
.news-section-head h2 {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 768px) {
  .news-section-head h2 { font-size: 1.875rem; }
}
.news-section-head .badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-color: var(--primary-color);
  color: #000;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.news-section-head .see-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 36px;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}
.news-section-head .see-more-link:hover { text-decoration: underline; }

/* Mejor leading en titulares grandes (hero, h1 de artículo) */
.serif-tight {
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.serif-elegant {
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* ---- Skip link (accesibilidad teclado/screen reader) ---- */
/* Patrón "visually hidden hasta focus" — más compatible que top:-100px */
body > a.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  z-index: 100;
  transition: clip 0.15s, width 0.15s, height 0.15s, padding 0.15s;
}
body > a.skip-link:focus,
body > a.skip-link:focus-visible,
body > a.skip-link:active {
  position: fixed;
  width: auto;
  height: auto;
  padding: 12px 20px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-bottom-right-radius: 8px;
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* ---- Focus visible mejorado (accesibilidad teclado) ----
   Se usa la tinta oscurecida del color de marca: un primario claro (dorado o
   amarillo) como anillo sobre fondo blanco no alcanza el mínimo de 3:1. En modo
   oscuro se vuelve al color puro, que ahí sí contrasta. */
*:focus-visible {
  outline: 2px solid var(--primary-ink, var(--primary-color));
  outline-offset: 2px;
  border-radius: 4px;
}
html.dark *:focus-visible {
  outline-color: var(--primary-color);
}
button:focus-visible,
a:focus-visible {
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 0;
}

/* ---- Tipografías ---- */
body {
  font-family: var(--font-accent, 'Inter', ui-sans-serif, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Evita que iOS aumente font-size en landscape */
  -webkit-text-size-adjust: 100%;
  /* Tipografía editorial: kerning + ligaduras + numerales tabulares para legibilidad premium */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
  /* Line-height base más cómodo */
  line-height: 1.55;
  /* Word-wrap inteligente */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Cuerpo de texto base: párrafos, listas — legibilidad de lectura larga */
p, li, dd, blockquote {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

/* Títulos serif: kerning óptico + ligaduras estilísticas */
h1, h2, h3, h4, h5, h6,
.site-serif {
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.018em;
}

/* Numerales tabulares (alineados) — para fechas, contadores, tiempos */
.tabular-nums,
time,
[data-time-ago],
[data-live-time],
[data-count] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
}

/* Smooth-scroll global más natural */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset del header sticky */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Brand logo (contenedor) ----
   .brand-logo         → ícono cuadrado con fondo oscuro (logos sin marca)
   .brand-logo-full    → logo completo con wordmark "Mi Diario",
                         ya tiene transparencia → fondo oscuro adapt.
*/
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: #000;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
html.dark .brand-logo {
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
}
.brand-logo:hover {
  transform: scale(1.02);
}

/* Logo "completo" (incluye wordmark + monograma) — fondo gradiente sutil
   con resplandor dorado. Diseñado para verse bien en mobile (sin parecer caja). */
.brand-logo-full {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #0a0a0a 100%);
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}
/* Halo dorado sutil al rededor en hover (sensación luxury) */
.brand-logo-full::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0) 0%,
    rgba(212, 175, 55, 0.4) 50%,
    rgba(212, 175, 55, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.brand-logo-full:hover::before {
  opacity: 0.6;
}
html.dark .brand-logo-full {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 8px 28px rgba(212, 175, 55, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand-logo-full:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Monograma SVG — micro-animación suave al hover */
.brand-monogram {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo-full:hover .brand-monogram {
  transform: rotate(-3deg) scale(1.05);
}

/* Wordmark unificado mobile/tablet/desktop — tipografía editorial premium
   con barrita dorada decorativa centrada que se expande al hover.
   Escala suave de 26px (mobile) hasta 44px (desktop XL). */
.brand-wordmark-mobile {
  font-size: 1.65rem;       /* ~26px */
  line-height: 1;
  letter-spacing: -0.025em;
  position: relative;
  padding-bottom: 6px;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
}
.brand-wordmark-mobile::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-wordmark-mobile:hover::after {
  width: 60px;
}
@media (min-width: 380px) {
  .brand-wordmark-mobile { font-size: 1.85rem; }
}
@media (min-width: 480px) {
  .brand-wordmark-mobile { font-size: 2.1rem; }
}
/* Tablet: más amplio */
@media (min-width: 768px) {
  .brand-wordmark-mobile {
    font-size: 2.4rem;
    padding-bottom: 8px;
  }
  .brand-wordmark-mobile::after { width: 48px; }
  .brand-wordmark-mobile:hover::after { width: 90px; }
}
/* Desktop: tamaño editorial */
@media (min-width: 1024px) {
  .brand-wordmark-mobile {
    font-size: 2.65rem;
    padding-bottom: 10px;
  }
  .brand-wordmark-mobile::after { width: 56px; height: 3px; }
  .brand-wordmark-mobile:hover::after { width: 110px; }
}
/* Desktop XL: máximo */
@media (min-width: 1280px) {
  .brand-wordmark-mobile {
    font-size: 2.95rem;
  }
  .brand-wordmark-mobile::after { width: 64px; }
}

.brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.font-serif,
.site-serif {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif) !important;
}
.font-sans,
.site-sans {
  font-family: var(--font-accent, 'Inter', ui-sans-serif, system-ui, sans-serif) !important;
}

/* ---- Variable de color primario (controlada por admin) ---- */
/* Sólo un valor por defecto. Con :where() su prioridad es cero, así que el color
   que se elige en el panel (el <style> de includes/header.php) manda siempre.
   Antes era un :root normal cargado DESPUÉS de ese <style>, y pisaba el color
   de cualquier periódico con el dorado de Noticias Oro. */
:where(:root) {
  --primary-color: #2563EB;
}

.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }
.fill-primary { fill: var(--primary-color); }

/* ---- Dark mode ---- */
html.dark { color-scheme: dark; }

/* ---- Transición de tema ----
   Antes sólo transicionaban 5 selectores (body/header/…), mientras que las
   cientos de utilidades dark: del contenido cambiaban de golpe: al conmutar el
   tema se veía un "desgarro" (fondo y cabecera desvaneciéndose mientras las
   tarjetas ya habían saltado). Ahora la transición se aplica a TODO el
   documento y sólo durante el cambio, mediante la clase temporal que añade el
   botón de tema (assets/js/public.js). Fuera de ese instante no hay ninguna
   transición activa, así que no penaliza el rendimiento. */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

/* ---- Animaciones ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulseRing {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.anim-fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.anim-fade-in { animation: fadeIn 0.4s ease-out both; }
.anim-slide-in-right { animation: slideInRight 0.4s ease-out both; }
.anim-scale-in { animation: scaleIn 0.3s ease-out both; }
.anim-pulse-ring { animation: pulseRing 2s ease-in-out infinite; }
.anim-marquee { animation: marquee 25s linear infinite; display: inline-block; padding-right: 3rem; }
.anim-shake { animation: shake 0.4s ease-in-out; }
.anim-bounce-soft { animation: bounceSoft 0.8s ease-in-out infinite; }

/* Delay helpers */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.30s; }

/* ---- Glassmorphism header ---- */
.glass-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.9);
}
html.dark .glass-header {
  background-color: rgba(17, 24, 39, 0.9);
}

/* ---- Prose overrides para artículos (premium reading experience) ----
   Tipografía optimizada para lectura larga:
   - Source Serif / Charter / Georgia: serif clásico con buena densidad
   - line-height 1.7 para descanso visual sin perder densidad
   - max-width controlado por contenedor (max-w-3xl ≈ 65 chars/línea óptimo)
   - color con contraste suave (no negro puro = menos fatiga ocular)
*/
.article-prose p {
  margin-bottom: 1.65em;
  color: rgb(38 46 60); /* gris-azulado: menos fatiga que negro puro */
  line-height: 1.72;
  font-size: 1.18rem;        /* ~19px — cómodo para lectura */
  font-family: var(--font-body, 'Charter', 'Iowan Old Style', 'Source Serif Pro', Georgia, Cambria, serif);
  font-weight: 400;
  letter-spacing: 0.005em;   /* ligeramente abierto para mejor legibilidad */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  -webkit-hyphens: auto;
  hanging-punctuation: first last;
}
@media (min-width: 768px) {
  .article-prose p {
    font-size: 1.22rem;       /* ~19.5px en tablet+ */
    line-height: 1.74;
  }
}
@media (min-width: 1280px) {
  .article-prose p {
    font-size: 1.25rem;       /* ~20px en desktop XL */
  }
}
html.dark .article-prose p { color: rgb(220 226 235); } /* dark mode: gris-claro suave */
/* Última oración del párrafo: sin partir palabras */
.article-prose p {
  text-wrap: pretty;
}

/* DROP CAP grande estilo periódico (primera letra dorada en serif) */
.article-prose p.first-paragraph::first-letter {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 5.5rem;
  font-weight: 900;
  float: left;
  line-height: 0.82;
  margin: 0.5rem 0.85rem -0.1rem 0;
  color: var(--primary-color);
  text-shadow: 2px 2px 0 rgba(212, 175, 55, 0.15);
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) {
  .article-prose p.first-paragraph::first-letter {
    font-size: 6.5rem;
    margin-right: 1rem;
  }
}
.article-prose p.first-paragraph {
  font-size: 1.25rem;
  line-height: 1.7;
}

.article-prose h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 3.5rem 0 1.5rem;
  color: #000;
  letter-spacing: -0.025em;
  font-family: var(--font-heading, 'Playfair Display', serif);
  position: relative;
  padding-left: 1rem;
}
.article-prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}
@media (min-width: 768px) {
  .article-prose h2 { font-size: 2.25rem; }
}
html.dark .article-prose h2 { color: #fff; }

/* PULL QUOTE premium — "blockquote" con comillas decorativas y borde dorado lateral */
.article-prose blockquote {
  border-left: 6px solid var(--primary-color);
  padding: 1.5rem 1rem 1.5rem 2.25rem;
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.7rem;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-weight: 700;
  color: #000;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0) 80%);
  line-height: 1.35;
  letter-spacing: -0.015em;
  position: relative;
}
.article-prose blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.25;
  line-height: 1;
  pointer-events: none;
}
html.dark .article-prose blockquote {
  color: #fff;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.10) 0%, rgba(212, 175, 55, 0) 80%);
}
@media (min-width: 768px) {
  .article-prose blockquote { font-size: 1.9rem; }
}

.article-prose figure { margin: 3rem 0; }
.article-prose figure img {
  width: 100%;
  height: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ---- Line clamp ---- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Scrollbar minimal ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.35); }
html.dark ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
html.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* ---- Toast ---- */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.35s ease-out both;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toast.success { background-color: #10b981; }
.toast.error { background-color: #ef4444; }
.toast.info { background-color: #3b82f6; }

/* ---- Reading progress (dorada animada con glow) ---- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
  transition: transform 0.1s ease-out;
  box-shadow: 0 1px 8px rgba(212, 175, 55, 0.4);
}

/* =============================================================================
 * STICKY SHARE BAR — Mobile bottom + Desktop side
 * ============================================================================= */
.sticky-share {
  position: fixed;
  z-index: 45;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
html.dark .sticky-share {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
/* Mobile: bottom centered, horizontal */
@media (max-width: 1023px) {
  .sticky-share {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    padding: 6px 8px;
    gap: 6px;
  }
}
/* Desktop: side left, vertical */
@media (min-width: 1024px) {
  .sticky-share {
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    flex-direction: column;
    border-radius: 999px;
    padding: 8px 6px;
    gap: 8px;
  }
}
.sticky-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: rgb(75, 85, 99);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 0;
  cursor: pointer;
}
html.dark .sticky-share-btn {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(209, 213, 219);
}
.sticky-share-btn:hover {
  background: var(--btn-color, var(--primary-color));
  color: #fff;
  transform: scale(1.1);
}

/* =============================================================================
 * READING CONTROLS — A−/A+/Tema (desktop top-right, mobile hidden por simplicidad)
 * ============================================================================= */
.reading-controls {
  position: fixed;
  top: 96px;
  right: 16px;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
html.dark .reading-controls {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(212, 175, 55, 0.3);
}
@media (min-width: 1280px) {
  .reading-controls { display: inline-flex; }
}
.reading-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: rgb(75, 85, 99);
  transition: all 0.2s ease;
  border: 0;
  cursor: pointer;
}
html.dark .reading-control-btn { color: rgb(209, 213, 219); }
.reading-control-btn:hover {
  background: var(--primary-color);
  color: #000;
}
.reading-control-divider {
  width: 1px;
  height: 22px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 2px;
}
html.dark .reading-control-divider { background: rgba(255, 255, 255, 0.1); }

/* Reading font size controls (clases activadas por JS) */
[data-article-body].fs-large .article-prose p { font-size: 1.3rem; line-height: 1.85; }
[data-article-body].fs-xlarge .article-prose p { font-size: 1.45rem; line-height: 1.9; }
[data-article-body].fs-small .article-prose p { font-size: 1.05rem; line-height: 1.7; }

/* ---- Block editor drop zones ---- */
.block-item {
  transition: all 0.2s ease;
  border: 2px dashed transparent;
}
.block-item:hover { border-color: rgba(0, 0, 0, 0.08); }
html.dark .block-item:hover { border-color: rgba(255, 255, 255, 0.1); }

/* ---- Utility: evitar overflow horizontal en móviles ---- */
html, body { overflow-x: hidden; }

/* ---- Aspect ratio helpers ---- */
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-1-1 { aspect-ratio: 1 / 1; }

/* ---- Tarjetas con hover lift ---- */
.card-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.18); }

/* ---- Loading spinner ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Wireframes del SiteBuilder ---- */
.wireframe-cell { background: rgba(148, 163, 184, 0.35); border-radius: 4px; }
html.dark .wireframe-cell { background: rgba(148, 163, 184, 0.25); }

/* ---- Admin: item de sidebar activo ---- */
.admin-nav-item.active {
  background-color: rgb(37, 99, 235);
  color: white;
}

/* =============================================================================
 * TICKER DE ÚLTIMA HORA — Patrón "Belt + 2 Strips"
 * El PHP renderiza 2 strips idénticos (no depende de JS).
 * Belt tiene width:max-content y se traslada -50% → loop seamless.
 * ============================================================================= */
.ticker-shell {
  overflow: hidden;
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  /* Fade dorado sutil en los bordes (con fallback: si mask falla, no rompe) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}
.ticker-belt {
  display: flex;
  width: max-content;
  align-items: center;
  animation: tickerScroll var(--ticker-speed, 40s) linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.ticker-shell:hover .ticker-belt,
.ticker-shell:focus-within .ticker-belt {
  animation-play-state: paused;
}
.ticker-strip {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.ticker-strip > .ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1;
}
.ticker-strip > .ticker-item .ticker-bullet {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-weight: 900;
}
@keyframes tickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Backward compat: marcado anterior con .ticker-container/.ticker-track/.ticker-content
   sigue funcionando porque ux.js lo migra y duplica children. */
.ticker-container {
  overflow: hidden;
  position: relative;
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  white-space: nowrap;
}
.ticker-track,
.ticker-content {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  animation: tickerScroll var(--ticker-speed, 40s) linear infinite;
  will-change: transform;
}
.ticker-content { padding-left: 0; }
.ticker-container:hover .ticker-track,
.ticker-container:hover .ticker-content,
.ticker-container:focus-within .ticker-track,
.ticker-container:focus-within .ticker-content { animation-play-state: paused; }

/* Reduced motion: el ticker de noticias es contenido funcional (no decoración),
   se puede pausar al hover/focus y cumple WCAG 2.2.2 (Pause/Stop/Hide). Por eso
   NO lo desactivamos. Solo lo ralentizamos a 80s para que sea más cómodo de leer.
   Override a la regla global que pone animation-duration: 0.01ms !important en *. */
@media (prefers-reduced-motion: reduce) {
  .ticker-belt,
  .ticker-track,
  .ticker-content {
    animation-name: tickerScroll !important;
    animation-duration: 80s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}

/* ---- Scroll Reveal (entradas suaves al hacer scroll) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { transform: translateX(-24px); }
.reveal-left.is-visible { transform: translateX(0); }
.reveal-right { transform: translateX(24px); }
.reveal-right.is-visible { transform: translateX(0); }
.reveal-zoom { transform: scale(0.96); }
.reveal-zoom.is-visible { transform: scale(1); }
/* Stagger por orden de aparición */
.reveal[data-reveal-delay="1"] { transition-delay: 0.06s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.12s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.18s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.30s; }
.reveal[data-reveal-delay="6"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Botón flotante "Volver arriba" ---- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--primary-color);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25), 0 0 0 4px rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  box-shadow: 0 14px 30px -5px rgba(0,0,0,0.35), 0 0 0 6px rgba(212,175,55,0.25);
  transform: translateY(-2px) scale(1.05);
}
.back-to-top:active { transform: translateY(0) scale(0.95); }
html.dark .back-to-top {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.6), 0 0 0 4px rgba(212,175,55,0.25);
}

/* ---- Hover lift + zoom de imagen en tarjetas (sensación app) ---- */
.card-zoom { overflow: hidden; }
.card-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.card-zoom:hover img,
.group:hover .card-zoom img {
  transform: scale(1.06);
}

/* Lift suave para cualquier .group con tarjeta */
.group.card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.group.card-hover:hover {
  transform: translateY(-4px);
}

/* ---- Live indicator (pulse glow para artículos frescos) ---- */
@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.1);
  }
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #ef4444;
  animation: livePulse 1.6s ease-in-out infinite;
}
.live-dot.gold {
  background: var(--primary-color);
}
@keyframes livePulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.75); transform: scale(1); }
  50%      { box-shadow: 0 0 0 8px rgba(212,175,55,0);    transform: scale(1.1); }
}
.live-dot.gold { animation-name: livePulse-gold; }

/* =============================================================================
 * HERO PREMIUM — diseño tipo The Guardian / NYT
 * ============================================================================= */
.hero-premium {
  isolation: isolate;
}
/* Overlay rico (gradiente vertical + leve viñeta) */
.hero-overlay {
  background:
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.05) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 65%);
}
/* Tinte dorado sutil al hover (sensación premium) */
.hero-overlay-gold {
  background: radial-gradient(ellipse at 30% 0%, rgba(212,175,55,0.18) 0%, rgba(212,175,55,0) 60%);
  pointer-events: none;
}
/* Decoración esquina dorada (corner ornaments) */
.hero-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary-color);
  z-index: 5;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
}
.hero-corner-tl {
  top: 16px;
  left: 16px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 8px;
}
.hero-corner-br {
  bottom: 16px;
  right: 16px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 8px;
}
.hero-premium:hover .hero-corner {
  width: 80px;
  height: 80px;
  opacity: 1;
}
@media (max-width: 640px) {
  .hero-corner { width: 36px; height: 36px; }
  .hero-corner-tl { top: 10px; left: 10px; }
  .hero-corner-br { bottom: 10px; right: 10px; }
}
/* Subrayado dorado animado al hover en el título del hero */
.hero-title {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.hero-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: var(--primary-color);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.group:hover .hero-title::after {
  width: 80px;
}
/* Hero excerpt */
.hero-excerpt {
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Hero side cards — número de ranking decorativo grande */
.hero-side-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.hero-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,0.5),
              0 0 0 2px rgba(212,175,55,0.4);
}
.hero-side-rank {
  position: absolute;
  top: 8px;
  right: 16px;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 175, 55, 0.0);
  -webkit-text-stroke: 2px rgba(212, 175, 55, 0.55);
  text-stroke: 2px rgba(212, 175, 55, 0.55);
  pointer-events: none;
  z-index: 2;
  transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
.hero-side-card:hover .hero-side-rank {
  color: rgba(212, 175, 55, 0.18);
  -webkit-text-stroke-color: rgba(212, 175, 55, 0.95);
}

/* Section divider decorativo dorado (úsalo entre secciones) */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--primary-color);
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
  opacity: 0.4;
}
.section-divider .divider-mark {
  width: 8px;
  height: 8px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}

/* =============================================================================
 * QUICK REACTIONS BAR — Like/Love/Insightful/Share en article
 * ============================================================================= */
.reactions-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  margin: 2.5rem 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(0,0,0,0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
}
@media (min-width: 640px) {
  .reactions-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }
}
html.dark .reactions-bar {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(212, 175, 55, 0.3);
}
.reactions-label {
  flex-shrink: 0;
}
.reactions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(75, 85, 99);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .reaction-btn {
  background: rgb(31, 41, 55);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgb(209, 213, 219);
}
.reaction-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.reaction-btn.is-active {
  background: linear-gradient(135deg, #f0c454, var(--primary-color), #a8842a);
  color: #000;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.reaction-btn.is-active .reaction-count { color: #000; }
.reaction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: rgb(75, 85, 99);
  font-size: 0.7rem;
  font-weight: 800;
}
html.dark .reaction-count {
  background: rgba(255, 255, 255, 0.08);
  color: rgb(209, 213, 219);
}
.reaction-btn-share {
  background: transparent;
  border-style: dashed;
}
.reaction-btn .reaction-label {
  display: none;
}
@media (min-width: 480px) {
  .reaction-btn .reaction-label { display: inline; }
}
/* Animación de "pop" al hacer click */
@keyframes reactionPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.reaction-btn.is-popping {
  animation: reactionPop 0.45s ease-in-out;
}

/* =============================================================================
 * LIGHTBOX — Galería overlay para imágenes del artículo
 * ============================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: pageFadeIn 0.3s ease-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}
.lightbox-close:hover {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
}
.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}
/* Cursor zoom-in en imágenes del artículo */
.article-prose figure img,
.article-prose img:not(.no-zoom) {
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

/* =============================================================================
 * STICKY AUTHOR INFO — flota a la derecha en desktop mientras lees el artículo
 * ============================================================================= */
.sticky-author {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 44;
  display: none;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  flex-direction: column;
  align-items: stretch;
}
html.dark .sticky-author {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1280px) {
  .sticky-author { display: flex; }
}
.sticky-author.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.sticky-author-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.sticky-author-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c454, var(--primary-color), #a8842a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}
.sticky-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sticky-author-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.5;
  pointer-events: none;
}
.sticky-author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 0.25rem;
}
.sticky-author-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.sticky-author-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .sticky-author-name { color: #fff; }
.sticky-author-progress {
  margin-top: 0.4rem;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
html.dark .sticky-author-progress { background: rgba(255, 255, 255, 0.08); }
.sticky-author-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f0c454, var(--primary-color), #a8842a);
  transition: width 0.15s ease-out;
}

/* =============================================================================
 * TRENDING WIDGET — Top 5 más leídos premium (sidebar)
 * ============================================================================= */
.trending-widget {
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
html.dark .trending-widget {
  background: rgb(31, 41, 55);
  border-color: rgba(212, 175, 55, 0.25);
}
.trending-widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}
.trending-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}
.trending-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.trending-widget-item {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.trending-widget-item:first-child { border-top: 0; }
html.dark .trending-widget-item { border-top-color: rgba(255, 255, 255, 0.05); }
.trending-widget-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  text-decoration: none;
  transition: padding 0.25s ease;
}
.trending-widget-link:hover { padding-left: 4px; }
.trending-widget-rank {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 175, 55, 0.0);
  -webkit-text-stroke: 1.5px var(--primary-color);
  text-stroke: 1.5px var(--primary-color);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.trending-widget-item.is-first .trending-widget-rank {
  color: var(--primary-color);
  -webkit-text-stroke: 0;
  font-size: 2.2rem;
}
.trending-widget-link:hover .trending-widget-rank {
  color: rgba(212, 175, 55, 0.9);
}
.trending-widget-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}
html.dark .trending-widget-title { color: #fff; }
.trending-widget-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(107, 114, 128);
}
html.dark .trending-widget-meta { color: rgb(156, 163, 175); }
.trending-widget-cat { color: var(--primary-color); font-weight: 800; }
.trending-widget-thumb {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgb(229, 231, 235);
}
/* En modo oscuro el marcador de la miniatura debe seguir al tema; si no, queda
   un recuadro gris claro brillando dentro de una tarjeta oscura. */
html.dark .trending-widget-thumb {
  background: rgb(55, 65, 81);
}
.trending-widget-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.trending-widget-link:hover .trending-widget-thumb img {
  transform: scale(1.08);
}

/* =============================================================================
 * EDITORIAL DEL DÍA — Pick de la redacción con quote serif
 * ============================================================================= */
.editorial-pick {
  position: relative;
  background: linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 2.5rem 1.75rem;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .editorial-pick { padding: 3.5rem 3rem; }
}
.editorial-pick-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 100% 50%, rgba(212, 175, 55, 0.18), transparent 65%),
    radial-gradient(ellipse 500px 300px at 0% 0%, rgba(212, 175, 55, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.editorial-pick-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
}
.editorial-pick-quote-deco {
  position: absolute;
  top: -50px;
  left: 16px;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 16rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 175, 55, 0.15);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .editorial-pick-quote-deco { font-size: 22rem; top: -70px; left: 30px; }
}
.editorial-pick-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}
@media (min-width: 768px) {
  .editorial-pick-avatar-wrap { width: 180px; height: 180px; }
}
.editorial-pick-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--primary-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.editorial-pick-avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
  animation: livePulse-gold 3s ease-in-out infinite;
}
.editorial-pick-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c454, var(--primary-color), #a8842a);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #0a0a0a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.editorial-pick-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.editorial-pick-quote {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 1.5rem;
  border: 0;
  padding: 0;
  position: relative;
}
@media (min-width: 768px) {
  .editorial-pick-quote { font-size: 2.25rem; }
}
.editorial-pick-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 1024px) {
  .editorial-pick-meta { justify-content: flex-start; }
}
.editorial-pick-author { color: var(--primary-color); }
.editorial-pick-divider {
  width: 24px;
  height: 1px;
  background: rgba(212, 175, 55, 0.4);
}
.editorial-pick-cat { color: rgba(255, 255, 255, 0.6); }
.editorial-pick-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.editorial-pick-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.45);
}

/* =============================================================================
 * COMMENTS PREMIUM — sección editorial con avatares de colores y replies
 * ============================================================================= */
.comments-section {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.03) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}
html.dark .comments-section {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
}
.comments-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.comments-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #000;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .comments-title { font-size: 4rem; }
}
html.dark .comments-title { color: #fff; }
.comments-title-label {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--primary-color);
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .comments-title-label { font-size: 1.1rem; }
}
.comments-subtitle {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 1rem;
  color: rgb(107, 114, 128);
  margin: 0.75rem 0 0;
}
html.dark .comments-subtitle { color: rgb(156, 163, 175); }

/* Form */
.comment-form {
  background: #fff;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
html.dark .comment-form { background: rgb(31, 41, 55); }
.comment-form:focus-within {
  border-color: var(--primary-color);
  border-style: solid;
  background: #fff;
}
html.dark .comment-form:focus-within { background: rgb(31, 41, 55); }

.comment-form-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.comment-form-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c454, var(--primary-color), #a8842a);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.comment-input,
.comment-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  color: #000;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}
.comment-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  margin-bottom: 1rem;
}
html.dark .comment-input,
html.dark .comment-textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.comment-input:focus,
.comment-textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
html.dark .comment-input:focus,
html.dark .comment-textarea:focus { background: rgb(17, 24, 39); }
.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.comment-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
html.dark .comment-item {
  background: rgb(31, 41, 55);
  border-color: rgba(255, 255, 255, 0.06);
}
.comment-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(2px);
}
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15),
              0 0 0 2px rgba(212, 175, 55, 0.15);
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
}
html.dark .comment-author { color: #fff; }
.comment-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(156, 163, 175);
}
.comment-time {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.comment-content {
  color: rgb(55, 65, 81);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
  margin: 0 0 0.75rem;
}
html.dark .comment-content { color: rgb(209, 213, 219); }
.comment-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.comment-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: transparent;
  border: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgb(107, 114, 128);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.comment-action-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
}
.comment-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(212, 175, 55, 0.03);
  border: 2px dashed rgba(212, 175, 55, 0.2);
  border-radius: 14px;
}

/* =============================================================================
 * ERROR HERO (404) — Página no encontrada premium
 * ============================================================================= */
.error-hero {
  position: relative;
  background: linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #0a0a0a 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  border-bottom: 4px solid var(--primary-color);
  overflow: hidden;
}
@media (min-width: 768px) {
  .error-hero { padding: 6rem 0 7rem; }
}
.error-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 30%, rgba(212, 175, 55, 0.15), transparent 65%);
  pointer-events: none;
}
.error-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
}
.error-hero-bignum {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 22rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.0);
  -webkit-text-stroke: 2px rgba(212, 175, 55, 0.18);
  text-stroke: 2px rgba(212, 175, 55, 0.18);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
@media (max-width: 767px) {
  .error-hero-bignum { font-size: 14rem; }
}
.error-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 1.25rem 0;
}
@media (min-width: 768px) {
  .error-title { font-size: 3.5rem; }
}
.error-description {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .error-description { font-size: 1.2rem; }
}
.error-description strong {
  color: var(--primary-color);
  font-weight: 800;
  font-style: normal;
}
.error-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}
.error-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5);
}
.error-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.error-cta-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-color);
}

/* =============================================================================
 * SEARCH OVERLAY PREMIUM — Spotlight-style con sugerencias
 * ============================================================================= */
.search-overlay-premium {
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.search-overlay-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(212, 175, 55, 0.18), transparent 60%);
  pointer-events: none;
}
.search-overlay-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
}
.search-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
}
.search-close-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
  border-color: var(--primary-color);
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 0 1.25rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.search-input-wrap:focus-within {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.search-input-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin-right: 0.75rem;
}
.search-input {
  flex: 1;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 0;
  outline: none;
  padding: 1.25rem 0;
}
@media (min-width: 768px) {
  .search-input { font-size: 1.85rem; }
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  font-style: italic;
}
.search-input-kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.search-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.25s ease;
}
.search-suggestion-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
}
.search-shortcut-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.search-shortcut-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* =============================================================================
 * CARD HOVER OVERLAY CTA — Aparece al hover en cards de noticia
 * ============================================================================= */
[data-card] {
  position: relative;
}
[data-card] .card-hover-cta {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--primary-color);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
[data-card]:hover .card-hover-cta {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
 * PAGE HERO (páginas estáticas Acerca de, Aviso, etc.) — más compacto
 * ============================================================================= */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #0a0a0a 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
  border-bottom: 4px solid var(--primary-color);
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { padding: 3.5rem 0 4rem; }
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 0% 50%, rgba(212, 175, 55, 0.12), transparent 60%);
  pointer-events: none;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
}
.page-hero-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  position: relative;
}
@media (min-width: 768px) {
  .page-hero-title { font-size: 3.5rem; }
}
.page-hero-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  margin-top: 1rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.page-content h1 {
  display: none; /* Hero ya muestra el título */
}

/* =============================================================================
 * FEATURED TABS — pills numeradas con count
 * ============================================================================= */
.featured-tabs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.featured-tabs-bar::-webkit-scrollbar { display: none; }
.featured-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgb(75, 85, 99);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
html.dark .featured-tab-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgb(209, 213, 219);
}
.featured-tab-pill:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--primary-color);
  transform: translateY(-1px);
}
.featured-tab-pill.is-active {
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  border-color: var(--primary-color);
  color: #000;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.featured-tab-num {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-weight: 900;
  font-size: 0.95rem;
  opacity: 0.7;
}
.featured-tab-pill.is-active .featured-tab-num { opacity: 1; }
.featured-tab-name { font-size: 0.75rem; }
.featured-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.65rem;
  font-weight: 800;
  color: inherit;
}
.featured-tab-pill.is-active .featured-tab-count {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}
html.dark .featured-tab-count {
  background: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
 * COVERAGE BLOCK — Timeline editorial vertical (tipo "live updates")
 * ============================================================================= */
.coverage-block {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .coverage-block { padding: 2.5rem 2.5rem; }
}
html.dark .coverage-block {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
  border-color: rgba(212, 175, 55, 0.28);
}
.coverage-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}
@media (min-width: 768px) {
  .coverage-header { flex-direction: row; justify-content: space-between; }
}
.coverage-header-left { flex: 1; min-width: 0; }
.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-radius: 999px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.coverage-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .coverage-title { font-size: 2rem; }
}
html.dark .coverage-title { color: #fff; }
.coverage-description {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgb(75, 85, 99);
  max-width: 36rem;
  margin: 0;
}
html.dark .coverage-description { color: rgb(156, 163, 175); }
.coverage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.coverage-cta:hover {
  background: var(--primary-color);
  color: #000;
}

/* Timeline */
.coverage-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.coverage-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--primary-color) 0%,
    rgba(212, 175, 55, 0.3) 100%);
  border-radius: 1px;
}
.coverage-timeline-item {
  position: relative;
  padding-left: 42px;
  padding-bottom: 1.5rem;
}
.coverage-timeline-item:last-child { padding-bottom: 0; }
.coverage-timeline-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
html.dark .coverage-timeline-dot { background: rgb(17, 24, 39); }
.coverage-timeline-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: livePulse-gold 2s ease-in-out infinite;
}
.coverage-timeline-content {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}
html.dark .coverage-timeline-content {
  background: rgb(31, 41, 55);
  border-color: rgba(255, 255, 255, 0.06);
}
.coverage-timeline-content:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateX(4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}
.coverage-timeline-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}
.coverage-timeline-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #000;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .coverage-timeline-title { font-size: 1.2rem; }
}
html.dark .coverage-timeline-title { color: #fff; }
.coverage-timeline-excerpt {
  font-size: 0.85rem;
  color: rgb(75, 85, 99);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.dark .coverage-timeline-excerpt { color: rgb(156, 163, 175); }

/* =============================================================================
 * CATEGORY HERO — banner editorial con tipografía gigante
 * ============================================================================= */
.category-hero {
  position: relative;
  background: linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #0a0a0a 100%);
  color: #fff;
  padding: 3rem 0 3.5rem;
  margin-bottom: 0;
  border-bottom: 4px solid var(--primary-color);
  overflow: hidden;
}
@media (min-width: 768px) {
  .category-hero { padding: 4.5rem 0 5rem; }
}
.category-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 0% 0%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(ellipse 600px 300px at 100% 100%, rgba(212, 175, 55, 0.10), transparent 70%);
  pointer-events: none;
}
.category-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.07) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.7;
}
.category-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.category-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.category-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 1.25rem;
  text-transform: capitalize;
  position: relative;
}
@media (min-width: 768px) {
  .category-title { font-size: 5rem; }
}
@media (min-width: 1280px) {
  .category-title { font-size: 6rem; }
}
.category-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  margin-top: 1.25rem;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}
.category-description {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin: 0;
}
@media (min-width: 768px) {
  .category-description { font-size: 1.25rem; }
}
.category-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.category-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.category-stat-num {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-color);
  letter-spacing: -0.03em;
}
.category-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.category-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(212, 175, 55, 0.3);
}

/* =============================================================================
 * AUTHOR HERO — perfil del columnista con quote serif gigante
 * ============================================================================= */
.author-hero {
  position: relative;
  background:
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  color: #fff;
  padding: 3rem 0 4rem;
  margin-bottom: 0;
  border-bottom: 4px solid var(--primary-color);
  overflow: hidden;
}
@media (min-width: 768px) {
  .author-hero { padding: 5rem 0 6rem; }
}
.author-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 50%, rgba(212, 175, 55, 0.15), transparent 60%),
    radial-gradient(ellipse 500px 300px at 100% 0%, rgba(212, 175, 55, 0.08), transparent 65%);
  pointer-events: none;
}
.author-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.6;
}
.author-hero-quote {
  position: absolute;
  top: -40px;
  right: -20px;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 22rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 175, 55, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 767px) {
  .author-hero-quote { font-size: 14rem; top: -20px; right: -30px; }
}
.author-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}
@media (min-width: 768px) {
  .author-avatar-wrap { width: 180px; height: 180px; }
}
.author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--primary-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(212, 175, 55, 0.4);
}
.author-avatar-placeholder {
  background: linear-gradient(135deg, #f0c454, var(--primary-color), #a8842a);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 4rem;
  font-weight: 900;
}
.author-avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.4);
  animation: livePulse-gold 2.5s ease-in-out infinite;
  pointer-events: none;
}
.author-avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 3px solid #0a0a0a;
}
.author-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.author-name {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .author-name { font-size: 3.75rem; }
}
.author-bio {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
  margin: 0 0 1.75rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-color);
}
@media (max-width: 767px) {
  .author-bio { padding-left: 0; border-left: 0; padding-top: 0.75rem; border-top: 2px solid rgba(212,175,55,0.3); margin-left: auto; margin-right: auto; }
}
@media (min-width: 768px) {
  .author-bio { font-size: 1.25rem; }
}
.author-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.author-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.author-stat-num {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-color);
}
.author-stat-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.author-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(212, 175, 55, 0.3);
}
.author-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.3s ease;
}
.author-contact-link:hover {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* =============================================================================
 * FOOTER PREMIUM — editorial con monograma + redes + suscripción + contacto
 * ============================================================================= */
.footer-premium {
  position: relative;
  background:
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}
.footer-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(ellipse 600px 300px at 0% 100%, rgba(212, 175, 55, 0.05), transparent 70%);
  pointer-events: none;
}
.footer-deco::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
}
.footer-heading {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgb(209, 213, 219);
  transition: color 0.25s ease, padding 0.25s ease;
  text-decoration: none;
}
.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-link-bullet {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.6);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer-link:hover .footer-link-bullet {
  background: var(--primary-color);
  transform: scale(1.3);
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--primary-color);
  flex-shrink: 0;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: rgb(209, 213, 219);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-social-icon:hover {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.35);
}

/* =============================================================================
 * OPINION CARD — Tipo "columna periodística" con quote mark gigante
 * ============================================================================= */
.opinion-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2.5rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
html.dark .opinion-card {
  background: rgb(31, 41, 55);
  border-color: rgba(255, 255, 255, 0.08);
}
.opinion-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow:
    0 24px 50px -20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(212, 175, 55, 0.2);
}
.opinion-quote-mark {
  position: absolute;
  top: -10px;
  right: 16px;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 175, 55, 0.18);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color 0.4s ease, transform 0.4s ease;
}
.opinion-card:hover .opinion-quote-mark {
  color: rgba(212, 175, 55, 0.35);
  transform: scale(1.05);
}
.opinion-headline {
  font-size: 1.2rem;
  color: #000;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .opinion-headline { font-size: 1.35rem; }
}
html.dark .opinion-headline { color: #fff; }
.opinion-card:hover .opinion-headline { color: var(--primary-color); }
.opinion-excerpt {
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.opinion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}
html.dark .opinion-footer { border-top-color: rgba(255, 255, 255, 0.08); }
.opinion-avatar {
  flex-shrink: 0;
}
.opinion-avatar img {
  display: block;
}
.opinion-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.opinion-card:hover .opinion-avatar-ring {
  opacity: 1;
  transform: scale(1);
}
.opinion-read-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: rgb(75, 85, 99);
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
html.dark .opinion-read-arrow {
  background: rgba(255, 255, 255, 0.06);
  color: rgb(209, 213, 219);
}
.opinion-card:hover .opinion-read-arrow {
  background: var(--primary-color);
  color: #000;
  transform: translate(2px, -2px);
}

/* =============================================================================
 * MULTIMEDIA BENTO GRID — Galería con overlay video
 * ============================================================================= */
.multimedia-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .multimedia-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
  }
  /* Item grande (primero) */
  .multimedia-bento > .bento-item-lg {
    grid-column: span 7;
    grid-row: span 2;
  }
  /* Items pequeños (los otros 2) */
  .multimedia-bento > .bento-item-sm {
    grid-column: span 5;
    grid-row: span 1;
  }
}
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: block;
  background: #000;
  isolation: isolate;
  min-height: 240px;
}
.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}
.bento-item:hover img {
  transform: scale(1.08);
  opacity: 1;
}
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}
.bento-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.9);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2),
              0 0 0 16px rgba(212, 175, 55, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.bento-item:hover .bento-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--primary-color);
  box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.3),
              0 0 0 24px rgba(212, 175, 55, 0.12);
}
.bento-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 3;
}
.bento-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}
.bento-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.bento-item-lg .bento-title {
  font-size: 1.65rem;
}
@media (min-width: 768px) {
  .bento-item-lg .bento-title { font-size: 2rem; }
  .bento-item-sm .bento-title { font-size: 1.05rem; }
}

/* =============================================================================
 * NEWSLETTER PREMIUM — CTA luxury con beneficios
 * ============================================================================= */
.newsletter-premium {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  isolation: isolate;
}
.newsletter-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 100% 0%, rgba(212, 175, 55, 0.18), transparent 70%),
    radial-gradient(ellipse 400px 200px at 0% 100%, rgba(212, 175, 55, 0.10), transparent 60%);
  pointer-events: none;
}
.newsletter-bg-deco::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,0.07) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
}
.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2),
              0 4px 12px rgba(212, 175, 55, 0.35);
}
.newsletter-title {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .newsletter-title { font-size: 1.85rem; }
}
.newsletter-cta {
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  color: #000;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.newsletter-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.newsletter-cta:active { transform: translateY(0); }

/* =============================================================================
 * BRIEFING DEL DÍA — "Lo que tienes que saber" (estilo Morning Briefing NYT)
 * ============================================================================= */
.brief-bar {
  position: relative;
}
.brief-content {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .brief-content { padding: 2.25rem 2.5rem; }
}
html.dark .brief-content {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  border-color: rgba(212, 175, 55, 0.28);
}
/* Línea dorada decorativa al lado izquierdo */
.brief-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  border-radius: 0 2px 2px 0;
}

.brief-header { margin-bottom: 1.5rem; }
.brief-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.brief-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0;
}
@media (min-width: 768px) {
  .brief-title { font-size: 2rem; }
}
html.dark .brief-title { color: #fff; }
.brief-title-dot { color: var(--primary-color); }
.brief-subtitle {
  font-size: 0.875rem;
  font-style: italic;
  color: rgb(107, 114, 128);
  margin-top: 0.4rem;
}
html.dark .brief-subtitle { color: rgb(156, 163, 175); }

.brief-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.brief-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  transition: padding 0.3s ease;
}
.brief-item:first-child { border-top: 0; padding-top: 0.5rem; }
html.dark .brief-item { border-top-color: rgba(255, 255, 255, 0.06); }

.brief-item > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.brief-num {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.0);
  -webkit-text-stroke: 1.5px var(--primary-color);
  text-stroke: 1.5px var(--primary-color);
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) {
  .brief-num { font-size: 3rem; width: 64px; }
}
.brief-item:hover .brief-num {
  color: rgba(212, 175, 55, 0.9);
  transform: scale(1.08);
}
html.dark .brief-num { -webkit-text-stroke-color: var(--primary-color); }

.brief-text { min-width: 0; }
.brief-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.brief-headline {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .brief-headline { font-size: 1.2rem; }
}
html.dark .brief-headline { color: #fff; }
.brief-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(107, 114, 128);
  margin-top: 0.4rem;
}
html.dark .brief-time { color: rgb(156, 163, 175); }
.brief-arrow {
  color: rgb(156, 163, 175);
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}
.brief-item:hover .brief-arrow {
  color: var(--primary-color);
  transform: translate(2px, -2px);
}

/* Weather mini al lado del briefing — auto height (no estirar) */
.brief-weather {
  align-self: start;
}
.brief-weather > * {
  height: auto;
}

/* =============================================================================
 * STATS BAR — (deprecated, mantengo por compatibilidad pero ya no se usa)
 * ============================================================================= */
.stats-bar {
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(212, 175, 55, 0.02) 50%,
    rgba(0, 0, 0, 0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
html.dark .stats-bar {
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.10) 0%,
    rgba(212, 175, 55, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(212, 175, 55, 0.25);
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(212,175,55,0.10), transparent 60%);
  pointer-events: none;
}
.stats-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}
.stats-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15),
              0 4px 10px rgba(212, 175, 55, 0.25);
}
.stats-value {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: #000;
  letter-spacing: -0.02em;
}
html.dark .stats-value { color: #fff; }
.stats-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(107, 114, 128);
  margin-top: 4px;
}
html.dark .stats-label { color: rgb(156, 163, 175); }

/* =============================================================================
 * CAROUSEL PREMIUM CARDS — número grande decorativo de ranking
 * ============================================================================= */
.carousel-premium-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-premium-card:hover {
  transform: translateY(-6px);
}
.carousel-num {
  position: absolute;
  top: -10px;
  right: -8px;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.0);
  -webkit-text-stroke: 2px rgba(212, 175, 55, 0.6);
  text-stroke: 2px rgba(212, 175, 55, 0.6);
  pointer-events: none;
  z-index: 2;
  transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-premium-card:hover .carousel-num {
  -webkit-text-stroke-color: rgba(212, 175, 55, 1);
  color: rgba(212, 175, 55, 0.15);
  transform: scale(1.1);
}

/* ---- Imagen del hero con leve zoom-in al cargar (Ken Burns sutil) ---- */
@keyframes kenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}
.hero-cover {
  animation: kenBurns 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-cover { animation: none; }
}

/* ---- Micro-bounce en iconos al hacer hover en CTAs ---- */
.cta-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .cta-arrow,
a:hover > .cta-arrow {
  transform: translateX(4px);
}

/* ---- Transición de página suave (fade-in al cargar) ---- */
main {
  animation: pageFadeIn 0.4s ease-out both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* ---- Imágenes lazy con fade-in al cargar ----
   IMPORTANTE: solo aplicamos opacity:0 cuando JS ya marcó .is-loading
   (imagen aún no cargada). Así, si JS está deshabilitado o falla,
   las imágenes se ven con opacidad normal sin quedarse invisibles. */
img[loading="lazy"] {
  transition: opacity 0.5s ease-out;
}
img[loading="lazy"].is-loading { opacity: 0; }
img[loading="lazy"].is-loaded,
img[loading="lazy"].is-error  { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { transition: none; }
  img[loading="lazy"].is-loading { opacity: 1; }
}

/* ---- Skeleton placeholder (sensación "app" mientras carga AJAX) ---- */
.skeleton {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.06) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s linear infinite;
  border-radius: 0.5rem;
}
html.dark .skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 100%);
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--card-bg, #fff);
  border-radius: 0.75rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
html.dark .skeleton-card {
  background: rgb(31, 41, 55);
  border-color: rgba(255,255,255,0.06);
}
.skeleton-card .skel-img    { aspect-ratio: 16/10; width: 100%; }
.skeleton-card .skel-line   { height: 14px; margin: 12px; }
.skeleton-card .skel-line.short { width: 40%; }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* ---- Mobile menu slide-down con altura animada ---- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.is-open {
  max-height: 60vh;
  overflow-y: auto;
}
/* Compatibilidad: si JS ya quitó .hidden y abrió, mostrar */
#mobile-menu:not(.hidden) {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  #mobile-menu { transition: none; }
}

/* ---- Focus visible para accesibilidad ---- */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ---- Tooltip (.has-tooltip + data-tooltip="texto") ---- */
.has-tooltip {
  position: relative;
}
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  z-index: 60;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  opacity: 0;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  pointer-events: none;
  z-index: 60;
}
.has-tooltip:hover::after,
.has-tooltip:focus-visible::after,
.has-tooltip:hover::before,
.has-tooltip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Spinner para estados de carga en botones ---- */
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.4em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
button.is-loading,
button:disabled.is-loading {
  cursor: wait;
  opacity: 0.75;
}

/* ---- Atajos de teclado ---- */
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* =============================================================================
 * PRINT STYLES — Optimizado para impresión limpia de artículos
 * ============================================================================= */
@media print {
  /* Ocultar todo lo no esencial */
  header,
  footer,
  nav,
  aside,
  .reading-progress,
  .sticky-share,
  .reading-controls,
  .back-to-top,
  .ticker-container,
  .ticker-shell,
  [data-ad],
  [data-newsletter],
  .newsletter-premium,
  .brief-bar,
  .stats-bar,
  iframe,
  video,
  audio,
  button {
    display: none !important;
  }

  /* Reset colores para impresión (negro sobre blanco) */
  body,
  main,
  article,
  .article-prose {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  /* Tipografía generosa para lectura impresa */
  .article-prose p,
  .article-prose li {
    font-size: 12pt !important;
    line-height: 1.55 !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .article-prose h1,
  .article-prose h2,
  .article-prose h3 {
    color: #000 !important;
    page-break-after: avoid;
  }

  /* Ocultar drop cap colorido — usar normal */
  .article-prose p.first-paragraph::first-letter {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: #000 !important;
    text-shadow: none !important;
  }

  /* Pull quotes simplificadas */
  .article-prose blockquote {
    border-left: 4px solid #000 !important;
    background: none !important;
    color: #000 !important;
    page-break-inside: avoid;
  }
  .article-prose blockquote::before { display: none !important; }

  /* Imágenes responsive en print */
  .article-prose img,
  figure img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* URLs visibles después de los enlaces */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  /* Pero no para anclas internas */
  a[href^="#"]::after,
  a[href^="/"]::after { content: ''; }

  /* Forzar márgenes adecuados */
  @page {
    margin: 1.5cm;
  }
}

/* =============================================================================
 * HOVER RIBBON — Banner dorado diagonal en esquina superior derecha de cards
 * ============================================================================= */
.card-ribbon-host {
  position: relative;
  overflow: hidden;
}
.card-ribbon-host::after {
  content: 'NUEVO';
  position: absolute;
  top: 14px;
  right: -32px;
  width: 110px;
  padding: 4px 0;
  background: linear-gradient(135deg, #f0c454 0%, var(--primary-color) 50%, #a8842a 100%);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg) translateX(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 5;
}
.card-ribbon-host:hover::after {
  opacity: 1;
  transform: rotate(45deg) translateX(0);
}
/* Variantes opcionales */
.card-ribbon-host[data-ribbon="exclusivo"]::after { content: 'Exclusivo'; }
.card-ribbon-host[data-ribbon="opinion"]::after { content: 'Opinión'; }
.card-ribbon-host[data-ribbon="leer"]::after { content: 'Leer →'; }
.card-ribbon-host[data-ribbon="vivo"]::after {
  content: 'En vivo';
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
}

/* =============================================================================
 * TAB PANELS — Transición suave al cambiar
 * ============================================================================= */
[data-tab-panel] {
  animation: tabPanelFade 0.4s ease-out;
}
@keyframes tabPanelFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-tab-panel].hidden { display: none; }
@media (prefers-reduced-motion: reduce) {
  [data-tab-panel] { animation: none; }
}

/* ---- Scrollbar hide (para nav con muchas categorías) ---- */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar { display: none; }
.no-scrollbar,
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE */
  scrollbar-width: none;     /* Firefox */
}

/* ---- Timestamp overlay en tarjetas de noticia ---- */
.card-timestamp {
  position: absolute !important;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 5;
  pointer-events: none;
}
.card-category-tag {
  position: absolute !important;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
}
/* Asegurar que el contenedor del overlay (anchor o div) sea positioned para que
   los overlays absolute se anclen correctamente — evita que se "escapen" arriba */
a:has(> .card-category-tag),
a:has(> .card-timestamp),
.card-overlay-host {
  position: relative;
}

/* ---- Bloques por categoría (estilo portales de noticias) ---- */
.section-block {
  padding: 2rem 0;
}
.section-block-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid currentColor;
}
.section-block-title h2 {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
.section-block-title .badge {
  background: var(--primary-color);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 4px;
}
.section-block-title .see-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}
.section-block-title .see-more:hover { text-decoration: underline; }

/* =============================================================================
 * ZONAS PUBLICITARIAS — marcador elegante para espacios sin campaña activa
 * (visible para el dueño logueado o si se activa ad_placeholders_enabled).
 * ========================================================================== */
.ad-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  border: 2px dashed rgba(148, 163, 184, 0.55);
  border-radius: 0.75rem;
  background-image: repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.07) 0 12px, transparent 12px 24px);
  color: #94a3b8;
  text-align: center;
  padding: 0.75rem 1rem;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.ad-slot-empty:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.ad-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ad-slot-label { font-size: 0.85rem; font-weight: 600; }
.ad-slot-size {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dark .ad-slot-empty {
  border-color: rgba(71, 85, 105, 0.6);
  color: #64748b;
  background-image: repeating-linear-gradient(45deg, rgba(71, 85, 105, 0.14) 0 12px, transparent 12px 24px);
}

/* =============================================================================
 * AFINAMIENTO — foco accesible premium + respeto a "reduce motion"
 * ========================================================================== */
/* Anillo de foco visible y con el color de marca (mejora accesibilidad y look) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Usuarios que prefieren menos movimiento: desactivar animaciones/transiciones largas */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================================
   Correcciones de pulido visual (auditoría de front-end)
   Se agrupan al final para ganar por cascada sin alterar las reglas originales.
   ============================================================================= */

/* Tinta del botón activo de la barra de compartir: con un primario claro
   (dorado) el blanco fijo quedaba ilegible al pasar el cursor. */
.sticky-share-btn:hover {
  color: var(--btn-ink, #fff);
}

/* El bloque "Lo que tienes que saber" apretaba el titular en móvil: el número
   ocupaba 56px y la flecha robaba otro tanto. Se reduce y se oculta la flecha. */
@media (max-width: 767px) {
  .brief-num { font-size: 1.75rem; width: 32px; }
  .brief-item > a { gap: 0.65rem; }
  .brief-arrow { display: none; }
}

/* En móvil la barra de compartir vive abajo y el botón "subir" se le encimaba. */
@media (max-width: 1023px) {
  .back-to-top { bottom: 76px; }
}

/* Acordeón de FAQ del maquetador de páginas: el chevron gira al abrir. */
details[open] > summary .faq-chevron { transform: rotate(90deg); }

/* Tamaños de imagen del maquetador de páginas (sin valores arbitrarios de
   Tailwind, que no están precompilados). El breakout se acota para no provocar
   scroll horizontal en ningún ancho. */
.page-content figure.fig-normal { max-width: 42rem; margin-left: auto; margin-right: auto; }
.page-content figure.fig-wide   { width: 100%; }
.page-content figure.fig-full   { width: 100%; }
@media (min-width: 1280px) {
  .page-content figure.fig-full { margin-left: -3rem; margin-right: -3rem; width: calc(100% + 6rem); }
}

/* =============================================================================
   Embeds de nota (bloque "Video / Red social") — YouTube, Facebook y X
   ============================================================================= */
.embed-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}
.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Las publicaciones (no video) de Facebook son verticales */
.embed-video.embed-post { aspect-ratio: auto; height: 560px; background: #f3f4f6; }
html.dark .embed-video.embed-post { background: #1f2937; }

/* Tarjeta de enlace a X — sin scripts de terceros */
.embed-x {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgb(229, 231, 235);
  border-radius: 0.75rem;
  background: rgb(249, 250, 251);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.embed-x:hover { border-color: var(--primary-ink, var(--primary-color)); box-shadow: 0 4px 14px -6px rgba(0,0,0,.15); }
html.dark .embed-x { border-color: rgb(55, 65, 81); background: rgb(31, 41, 55); }
.embed-x-icon { font-size: 1.75rem; line-height: 1; color: rgb(17, 24, 39); }
html.dark .embed-x-icon { color: #fff; }
.embed-x-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.embed-x-body strong { color: rgb(17, 24, 39); font-size: 0.95rem; }
html.dark .embed-x-body strong { color: #fff; }
.embed-x-body span { color: rgb(107, 114, 128); font-size: 0.8rem; }

/* =============================================================================
   AVISO DE CONTENIDO PATROCINADO
   =============================================================================
   No se usan utilidades "dark:" de Tailwind aqui: la hoja va precompilada y las
   variantes de ambar NO estan en el build, asi que en modo oscuro el aviso se
   quedaba como un recuadro claro chillante. Con reglas propias el aviso se ve
   bien en ambos temas en cualquier instalacion, sin depender de recompilar.
   El color es deliberadamente distinto al de la marca del periodico: debe
   leerse como publicidad, no como una seccion mas del diario. */
.aviso-patrocinado {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
}
@media (min-width: 640px) {
  .aviso-patrocinado { flex-direction: row; align-items: center; gap: 0.75rem; }
}
.aviso-patrocinado-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: #78350f;
}
.aviso-patrocinado-texto { font-size: 0.875rem; line-height: 1.5; }
.aviso-patrocinado a { text-decoration: underline; text-underline-offset: 2px; }
.aviso-patrocinado a:hover { text-decoration: none; }

html.dark .aviso-patrocinado {
  background: rgba(69, 39, 6, 0.55);
  border-color: #92400e;
  color: #fcd34d;
}
html.dark .aviso-patrocinado-etiqueta { color: #fbbf24; }

/* Etiqueta en tarjetas y listados: mismo codigo de color, para que el lector la
   reconozca de inmediato venga de donde venga. */
.card-category-tag.es-patrocinado,
.etiqueta-patrocinado {
  background: #b45309 !important;
  color: #ffffff !important;
}
html.dark .card-category-tag.es-patrocinado,
html.dark .etiqueta-patrocinado {
  background: #d97706 !important;
  color: #1c1917 !important;
}

/* =============================================================================
   PANEL — FILTROS DEL LISTADO DE NOTICIAS
   =============================================================================
   Reglas propias, no utilidades de Tailwind, por dos razones:

   1. El Tailwind del producto va PRECOMPILADO. Anchos como w-48 o sm:w-auto no
      estan en el build, asi que escribirlos en el HTML no haria nada.
   2. Las pestanas necesitan un subrayado que siga el color de la marca del
      periodico (--primary-color), que cada cliente elige. Una clase fija no
      puede seguir un color que cambia por instalacion.

   El modo oscuro se resuelve con html.dark, que es como funciona el resto de
   esta hoja. */

.pestanas-estado {
  display: flex;
  align-items: stretch;
  gap: 0.125rem;
  overflow-x: auto;
  padding: 0 0.5rem;
  scrollbar-width: thin;
}
.pestana-estado {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.875rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(107, 114, 128);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.pestana-estado:hover { color: rgb(17, 24, 39); }
.pestana-estado.es-activa {
  color: rgb(17, 24, 39);
  border-bottom-color: var(--primary-color, #2563EB);
}
.pestana-contador {
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  padding: 0.0625rem 0.375rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgb(229, 231, 235);
  color: rgb(55, 65, 81);
}
.pestana-estado.es-activa .pestana-contador {
  background: var(--primary-color, #2563EB);
  color: #000;
}
html.dark .pestana-estado { color: rgb(156, 163, 175); }
html.dark .pestana-estado:hover,
html.dark .pestana-estado.es-activa { color: #fff; }
html.dark .pestana-contador { background: rgb(55, 65, 81); color: rgb(229, 231, 235); }

/* Barra de busqueda + seccion + autor. En un telefono cada control ocupa su
   propia linea; a partir de tableta van en fila. */
.filtros-noticias {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.filtros-noticias .filtro-busqueda,
.filtros-noticias .filtro-campo { width: 100%; }
.filtros-noticias .filtros-resumen { width: 100%; }
@media (min-width: 640px) {
  .filtros-noticias .filtro-busqueda { width: 18rem; }
  .filtros-noticias .filtro-campo { width: 11.5rem; }
  .filtros-noticias .filtros-resumen { width: auto; margin-left: auto; }
}

/* =============================================================================
   SUSPENSION SUAVE POR IMPAGO
   =============================================================================
   Estilos propios, no utilidades "dark:" de Tailwind: la hoja va precompilada y
   varias variantes oscuras de ambar y rojo NO estan en el build, asi que un
   aviso montado con utilidades se veria como un recuadro claro chillante en
   modo oscuro. Con reglas propias se ve bien en ambos temas en cualquier
   instalacion, sin depender de recompilar Tailwind.

   El tono es deliberadamente sobrio. Esto lo lee el dueno de un periodico al
   que se le esta cobrando: tiene que leerse como un recordatorio de su
   proveedor, no como una pantalla de error ni como una amenaza. */

/* --- Aviso dentro del panel (nivel 1) ------------------------------------ */
.susp-banner {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.125rem;
  margin-bottom: 1.5rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.susp-banner-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; margin-top: .125rem; }
.susp-banner-body { flex: 1 1 auto; min-width: 0; }
.susp-banner-title { font-weight: 800; font-size: .9375rem; margin: 0 0 .25rem; }
.susp-banner-text  { font-size: .875rem; line-height: 1.55; margin: 0 0 .25rem; }
.susp-banner-text:last-child { margin-bottom: 0; }
.susp-banner-data {
  font-size: .875rem; font-weight: 700; margin: .5rem 0 .25rem;
  font-variant-numeric: tabular-nums;
}
.susp-banner-link {
  flex-shrink: 0; align-self: center;
  padding: .5rem .875rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 700; text-decoration: none;
  border: 1px solid currentColor;
}
.susp-banner-link:hover { text-decoration: underline; text-underline-offset: 2px; }

.susp-banner-cliente   { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.susp-banner-proveedor { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }

html.dark .susp-banner-cliente   { background: rgba(69, 39, 6, .55);  border-color: #92400e; color: #fde68a; }
html.dark .susp-banner-proveedor { background: rgba(69, 10, 10, .55); border-color: #991b1b; color: #fecaca; }

/* --- Pagina de cuenta suspendida (niveles 2 y 3, dentro del panel) -------- */
.susp-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f1f5f9;
  color: #1f2937;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
html.dark .susp-page { background: #0b1120; color: #e2e8f0; }

.susp-card {
  width: 100%;
  max-width: 36rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
html.dark .susp-card { background: #111827; border-color: #1f2937; box-shadow: none; }

.susp-eyebrow {
  margin: 0 0 1rem;
  font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #64748b;
}
html.dark .susp-eyebrow { color: #94a3b8; }

.susp-title { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 800; line-height: 1.25; color: #0f172a; }
html.dark .susp-title { color: #f8fafc; }

.susp-lead, .susp-text { margin: 0 0 1rem; font-size: .9375rem; color: #475569; }
html.dark .susp-lead, html.dark .susp-text { color: #cbd5e1; }

.susp-h2 { margin: 1.75rem 0 .5rem; font-size: 1rem; font-weight: 800; color: #0f172a; }
html.dark .susp-h2 { color: #f8fafc; }

.susp-ok {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem; font-size: .875rem; font-weight: 700; color: #166534;
}
.susp-ok-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: #16a34a; flex-shrink: 0; }
html.dark .susp-ok { color: #86efac; }

.susp-warn { margin: 0 0 1rem; font-size: .875rem; font-weight: 700; color: #9a3412; }
html.dark .susp-warn { color: #fdba74; }

.susp-data {
  padding: .875rem 1rem; border-radius: .625rem;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: .9375rem; font-weight: 700; color: #0f172a;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
html.dark .susp-data { background: #0f172a; border-color: #1f2937; color: #f1f5f9; }

.susp-note, .susp-contact {
  padding: .875rem 1rem; border-radius: .625rem;
  background: #fffbeb; border: 1px solid #fcd34d; color: #78350f;
  font-size: .875rem; line-height: 1.55; margin-bottom: 1rem;
}
html.dark .susp-note, html.dark .susp-contact {
  background: rgba(69, 39, 6, .55); border-color: #92400e; color: #fde68a;
}
.susp-note-label {
  display: block; margin-bottom: .25rem;
  font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  opacity: .85;
}

.susp-actions { margin-top: 1.75rem; }
.susp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: .625rem; border: 1px solid #cbd5e1;
  background: #ffffff; color: #334155;
  font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.susp-btn:hover { background: #f1f5f9; }
html.dark .susp-btn { background: #1f2937; border-color: #374151; color: #e5e7eb; }
html.dark .susp-btn:hover { background: #374151; }

/* --- Panel del proveedor (admin/suspension.php) --------------------------- */
.susp-levels { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .susp-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.susp-level {
  position: relative;
  display: block;
  border: 1px solid #e2e8f0; border-radius: .875rem;
  background: #ffffff; padding: 1.125rem 1.25rem; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.susp-level:hover { border-color: #94a3b8; }
html.dark .susp-level { background: #111827; border-color: #1f2937; }
html.dark .susp-level:hover { border-color: #475569; }

.susp-level input { position: absolute; opacity: 0; width: 0; height: 0; }
.susp-level.is-selected { border-color: #0f172a; box-shadow: 0 0 0 2px rgba(15, 23, 42, .18); }
html.dark .susp-level.is-selected { border-color: #e2e8f0; box-shadow: 0 0 0 2px rgba(226, 232, 240, .25); }

.susp-level-head { display: flex; align-items: center; gap: .625rem; margin-bottom: .75rem; }
.susp-level-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px; flex-shrink: 0;
  font-size: .8125rem; font-weight: 800;
  background: #e2e8f0; color: #0f172a;
}
html.dark .susp-level-num { background: #1f2937; color: #f1f5f9; }
.susp-level-name { font-weight: 800; font-size: .9375rem; color: #0f172a; }
html.dark .susp-level-name { color: #f8fafc; }
.susp-level-now {
  margin-left: auto; flex-shrink: 0;
  font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .5rem; border-radius: 9999px;
  background: #0f172a; color: #ffffff;
}
html.dark .susp-level-now { background: #e2e8f0; color: #0f172a; }

.susp-level-row { display: flex; gap: .625rem; font-size: .8125rem; line-height: 1.5; margin-top: .5rem; }
.susp-level-tag {
  flex-shrink: 0; width: 4.5rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .625rem;
  padding-top: .15rem; color: #64748b;
}
html.dark .susp-level-tag { color: #94a3b8; }
.susp-level-what { color: #475569; }
html.dark .susp-level-what { color: #cbd5e1; }

.susp-level.tono-ok      .susp-level-num { background: #dcfce7; color: #166534; }
.susp-level.tono-aviso   .susp-level-num { background: #fef3c7; color: #78350f; }
.susp-level.tono-grave   .susp-level-num { background: #ffedd5; color: #7c2d12; }
.susp-level.tono-critico .susp-level-num { background: #fee2e2; color: #7f1d1d; }
html.dark .susp-level.tono-ok      .susp-level-num { background: rgba(22, 101, 52, .4);  color: #bbf7d0; }
html.dark .susp-level.tono-aviso   .susp-level-num { background: rgba(120, 53, 15, .5);  color: #fde68a; }
html.dark .susp-level.tono-grave   .susp-level-num { background: rgba(124, 45, 18, .5);  color: #fed7aa; }
html.dark .susp-level.tono-critico { border-color: #7f1d1d; }
html.dark .susp-level.tono-critico .susp-level-num { background: rgba(127, 29, 29, .5);  color: #fecaca; }

.susp-danger {
  margin-top: .875rem; padding: .75rem .875rem; border-radius: .5rem;
  background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d;
  font-size: .8125rem; line-height: 1.5;
}
html.dark .susp-danger { background: rgba(69, 10, 10, .55); border-color: #991b1b; color: #fecaca; }

.susp-field-label {
  display: block; margin-bottom: .375rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #475569;
}
html.dark .susp-field-label { color: #94a3b8; }
.susp-hint { font-size: .75rem; color: #64748b; margin-top: .375rem; line-height: 1.5; }
html.dark .susp-hint { color: #94a3b8; }

/* =============================================================================
   PANEL — AVISOS DEL EDITOR (edicion concurrente y borrador local)
   =============================================================================
   Los botones de estos avisos son ambar a proposito: no son "guardar" normal,
   son decisiones con consecuencias (pisar el trabajo de otra persona, descartar
   un borrador). Se escriben a mano porque bg-amber-600 y hover:bg-amber-700 NO
   estan en el Tailwind precompilado: puestas como clases no pintarian nada y el
   boton quedaria transparente, que es justo lo contrario de lo que hace falta
   en un aviso. */

.boton-aviso {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: #b45309;
  color: #fff;
  border: 1px solid #b45309;
  cursor: pointer;
}
.boton-aviso:hover { background: #92400e; border-color: #92400e; }

.boton-aviso-secundario {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: transparent;
  color: #78350f;
  border: 1px solid #fcd34d;
  cursor: pointer;
}
.boton-aviso-secundario:hover { background: rgba(252, 211, 77, 0.25); }

html.dark .boton-aviso { background: #d97706; border-color: #d97706; color: #1c1917; }
html.dark .boton-aviso:hover { background: #f59e0b; border-color: #f59e0b; }
html.dark .boton-aviso-secundario { color: #fcd34d; border-color: #92400e; }
html.dark .boton-aviso-secundario:hover { background: rgba(120, 53, 15, 0.45); }
