/* ==========================================================================
   1. VARIABLES & CONFIGURACIÓN BASE (:root, Dark Mode, CSS Reset)
   ========================================================================== */
:root {
  --azul-primario: #00395e;
  --azul-oscuro: #0a192f;
  --azul-acento: #00395e;
  --azul-glow: rgba(26, 115, 232, 0.2);
  --gris-fondo: #f8f9fa;
  --gris-tarjeta: #f1f3f4;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: #ffffff;
  --texto-oscuro: #1f1f1f;
  --gris-texto: #5f6368;
  --blanco: #ffffff;
  --border-card: rgba(0, 0, 0, 0.06);
  --border-glass: rgba(0, 0, 0, 0.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.1);
  --blur-glass: blur(16px);
  --article-font-size: 1.08rem;
}

body.dark-theme {
  --azul-primario: #a8c7fa;
  --azul-oscuro: #030712;
  --azul-acento: #66a3ff;
  --azul-glow: rgba(102, 163, 255, 0.2);
  --gris-fondo: #0f1115;
  --gris-tarjeta: #1a1d24;
  --bg-card: rgba(26, 29, 36, 0.85);
  --bg-glass: rgba(26, 29, 36, 0.75);
  --texto-oscuro: #f3f4f6;
  --gris-texto: #9ca3af;
  --blanco: #1a1d24;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--gris-fondo);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--texto-oscuro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Ocultación de scrollbar al abrir lightbox */
body.lightbox-active {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.lightbox-active::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

section,
div[id] {
  scroll-margin-top: 100px;
}

.img-logo-mini {
  width: 180px;
  height: auto;
}

.svg-subir {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}
.svg-badge {
  width: 13px;
  height: 13px;
  fill: #fff;
  position: relative;
  top: 3px;
}

/* ==========================================================================
   2. COMPONENTES GLOBALES (Progress bar, Toast, Skeleton, Logos)
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--azul-acento);
  width: 0%;
  z-index: 10002;
  transition: width 0.1s ease-out;
  box-shadow: 0 1px 6px var(--azul-glow);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--azul-oscuro);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  z-index: 30000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.skeleton-loader {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--border-card) 25%,
    var(--gris-fondo) 50%,
    var(--border-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
  user-select: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.img-logo {
  width: 80%;
  height: auto;
  position: relative;
  top: -7px;
}

.img-logo-header {
  width: 60% !important;
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--azul-acento, #4318ff);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  font-size: 1rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   3. CABECERAS Y NAVEGACIÓN PÚBLICA (Header, Nav, Banners, Search)
   ========================================================================== */
header {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-card);
  top: 0;
  z-index: 1000;
  width: 100%;
}

header.cat-header,
header.search-header,
header.note-header {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
}

/* HEADER TOP & SEARCH */
.header-top {
  background: var(--bg-glass) !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo h1 {
  color: var(--azul-primario);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo span {
  color: var(--gris-texto);
  font-weight: 300;
}

.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  background-color: var(--gris-tarjeta);
  color: var(--texto-oscuro);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input:focus {
  background-color: var(--blanco);
  border-color: var(--azul-acento);
  box-shadow: 0 0 0 4px var(--azul-glow);
}

.search-box button {
  position: absolute;
  right: 5px;
  background-color: var(--azul-acento);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-box button:hover {
  transform: scale(1.05);
}

.search-box button svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.header-widgets-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--gris-texto);
  font-weight: 400;
  white-space: nowrap;
}

.weather-currency-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background-color: var(--gris-tarjeta);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
}

/* NAVEGACIÓN Y DROPDOWNS PÚBLICOS */
nav,
nav.cat-nav,
nav.search-nav,
nav.note-nav {
  background: transparent;
  padding-bottom: 6px;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  padding: 2px 20px;
  position: relative;
  flex-wrap: wrap;
}

.nav-container a,
.dropbtn {
  color: var(--texto-oscuro);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-pill);
}

.nav-container a:hover,
.dropbtn:hover {
  background-color: var(--gris-tarjeta);
  color: var(--azul-acento);
}

.nav-container a.active,
.dropbtn.active-btn {
  background-color: var(--azul-primario);
  color: #ffffff !important;
  font-weight: 600;
}

.theme-toggle-btn {
  margin-left: auto;
  background: var(--gris-tarjeta);
  border: 1px solid var(--border-card);
  color: var(--texto-oscuro);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--azul-acento);
  color: #ffffff;
  transform: translateY(-1px);
}

.login-btn {
  background: var(--gris-tarjeta);
  border: 1px solid var(--border-card);
  color: var(--texto-oscuro);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
}

.login-btn:hover {
  background: var(--azul-acento);
  color: #ffffff;
  border-color: var(--azul-acento);
  transform: translateY(-1px);
}

.login-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.dropdown {
  position: relative;
  display: none;
  z-index: 10001;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 115%;
  left: 0;
  background: var(--blanco);
  min-width: 220px;
  max-width: 85vw;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 8px;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
  animation: fadeIn 0.2s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    margin-top: -8px;
  }

  to {
    opacity: 1;
    margin-top: 0;
  }
}

.dropdown-content a {
  color: var(--texto-oscuro);
  padding: 10px 16px;
  display: none;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background-color: var(--azul-acento);
  color: #ffffff !important;
}

/* STICKY MINI HEADER */
.sticky-mini-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-card);
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 20px;
  box-shadow: var(--shadow-sm);
}

.sticky-mini-header.visible {
  transform: translateY(0);
}

.sticky-mini-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.sticky-mini-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texto-oscuro);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.sticky-mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* BANNERS Y ROTADORES DE MEDIOS */
.header-promo-banner {
  background: var(--bg-card);
  border-bottom: 0px solid var(--border-card);
  padding: 12px 20px;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.promo-container-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}

.media-rotator-box {
  position: relative;
  width: 100%;
  height: 140px;
  background-color: var(--gris-tarjeta);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-rotator-box .media-badge-tag {
  position: absolute;
  top: 4px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 20;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.media-rotator-box .media-slide-item {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.media-rotator-box .media-slide-item.is-active {
  display: block;
  opacity: 1;
}

.media-rotator-box .media-slide-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.media-rotator-box .media-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.sidebar-media-rotator {
  height: auto;
}

.infeed-ad-container {
  grid-column: 1 / -1;
  margin: 12px 0;
  width: 100%;
}

.infeed-media-rotator {
  height: 130px;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   4. LAYOUT PRINCIPAL (Containers, Grids, Hero, Sidebar)
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
  width: 100%;
  transition: all 0.3s ease;
}

.category-header {
  margin-bottom: 24px;
}

.search-meta-info {
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-bottom: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.3rem !important;
  color: var(--texto-oscuro);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  margin-top: 0;
  border: none !important;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  background-color: var(--azul-acento);
  border-radius: var(--radius-pill);
}

.btn-ver-mas {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--azul-acento);
  background: var(--gris-tarjeta);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  display: inline-block;
  border: 1px solid var(--border-card);
}

.btn-ver-mas:hover {
  background: var(--azul-acento);
  color: #ffffff;
  border-color: var(--azul-acento);
  transform: translateX(3px);
  box-shadow: 0 2px 8px var(--azul-glow);
}

/* HERO SECTION */
.hero-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 18px;
  margin-bottom: 38px;
}

.main-hero {
  position: relative;
  background-color: var(--azul-oscuro);
  color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.8s ease;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.05);
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.95) 10%,
    rgba(0, 0, 0, 0.35) 65%,
    transparent
  );
}

.hero-content {
  position: relative;
  padding: 28px;
  z-index: 3;
  width: 100%;
}

.tag {
  background-color: var(--azul-acento);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-block;
}

.hero-content h2 {
  font-size: 1.75rem;
  margin: 10px 0 6px;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-content h2 a:hover {
  color: var(--gris-fondo) !important;
}

.hero-indicator-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sub-hero-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-hero-item {
  background-color: var(--bg-card);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.sub-hero-item:hover,
.sub-hero-item.active {
  transform: translateX(5px);
  border-color: var(--azul-acento);
  box-shadow: var(--shadow-md);
  background-color: var(--blanco);
}

.sub-hero-item h3 {
  font-size: 0.88rem;
  color: var(--texto-oscuro);
  margin-top: 6px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sub-hero-item.active h3 {
  color: var(--azul-acento);
}

/* SIDEBAR Y WIDGETS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 20px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.trending-list li {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.trending-list li:last-child {
  border-bottom: none;
}

.trending-list li:hover {
  background-color: var(--gris-tarjeta);
  transform: translateX(4px);
}

.trending-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--azul-acento);
  background-color: var(--gris-tarjeta);
  border: 1px solid var(--border-card);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.trending-list li:hover .trending-number {
  background-color: var(--azul-acento);
  color: #ffffff;
  border-color: var(--azul-acento);
  box-shadow: 0 2px 8px var(--azul-glow);
}

.trending-list a {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--texto-oscuro);
  transition: color 0.2s ease;
}

.trending-list li:hover a {
  color: var(--azul-acento);
}

/* ==========================================================================
   5. TARJETAS DE NOTICIAS (Cards, Badges, Shared Buttons, Video Section)
   ========================================================================== */
.news-grid,
.news-grid-3,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26, 115, 232, 0.25);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

.card-img {
  width: 100%;
  height: 100%;
  background-color: var(--gris-tarjeta);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
  transform: scale(1.06);
}

.media-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.media-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-transform: capitalize;
}

.badge-gallery {
  background-color: #0b57d0;
}

.badge-video {
  background-color: #e53935;
}

.badge-audio {
  background-color: #00875a;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h4 {
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.card-body h4 a {
  transition: color 0.2s ease;
}

.card-body h4 a:hover {
  color: var(--azul-acento);
}

.card-body p {
  font-size: 0.85rem;
  color: var(--gris-texto);
  line-height: 1.48;
  font-weight: 400;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
  font-size: 0.76rem;
  color: var(--gris-texto);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
}

.card-meta .author {
  font-weight: 600;
  color: var(--azul-primario);
}

.share-buttons {
  display: flex;
  gap: 4px;
  margin-top: 0px;
  padding-top: 0px;
  border-top: 0px dashed var(--border-card);
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.share-btn {
  background-color: var(--gris-tarjeta);
  border: 1px solid var(--border-card);
  color: var(--gris-texto);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.share-btn:hover {
  background-color: var(--azul-acento);
  color: #ffffff;
  border-color: var(--azul-acento);
  transform: translateY(-1px);
}

.card .share-buttons {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-card);
  justify-content: space-between;
}

.card .share-btn {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.card .share-btn:last-child {
  flex: 0 0 32px;
  padding: 4px 0;
}

/* SECCIÓN DE VIDEOS */
.videos-section-container {
  background: linear-gradient(135deg, #0a192f 0%, #111827 100%);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  margin-bottom: 38px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.videos-section-container .section-title {
  color: #ffffff;
}

.videos-section-container .btn-ver-mas {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.videos-section-container .btn-ver-mas:hover {
  background: #ffffff;
  color: var(--azul-oscuro);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.no-records-msg {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  color: var(--gris-texto);
  font-size: 0.95rem;
}

/* PAGINACIÓN */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 40px;
  flex-wrap: wrap;
}

.page-link {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--texto-oscuro);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.page-link:hover {
  background-color: var(--azul-acento);
  color: #ffffff;
  border-color: var(--azul-acento);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--azul-glow);
}

.page-link.active {
  background-color: var(--azul-primario);
  color: #ffffff !important;
  border-color: var(--azul-primario);
  box-shadow: 0 4px 12px var(--azul-glow);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* ==========================================================================
   6. VISTA DETALLE DE ARTÍCULO / NOTA (Artículos, Galería, Modal, Lightbox)
   ========================================================================== */
.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.article-header {
  margin-bottom: 24px;
  position: relative;
  background-color: transparent !important;
}

.article-title {
  font-size: 1.90rem;
  line-height: 1.28;
  font-weight: 700;
  color: var(--texto-oscuro);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  margin-top: 0 !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-subtitle {
  font-size: 1.03rem;
  color: var(--gris-texto);
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 400;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0px 6px 0px;
  border-top: 1px solid var(--border-card);
  border-bottom: 0px solid var(--border-card);
  font-size: 0.84rem;
  color: var(--gris-texto);
  margin-bottom: 0px;
}

.article-meta .author {
  color: var(--azul-primario);
  font-weight: 600;
}

.reading-time-badge {
  background-color: var(--gris-tarjeta);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-section-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
  padding: 10px 0;
}

.share-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texto-oscuro);
}

.action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--gris-tarjeta);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--border-card);
}

.tool-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-btn {
  background-color: var(--blanco);
  border: 1px solid var(--border-card);
  color: var(--texto-oscuro);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tool-btn:hover {
  background-color: var(--azul-acento);
  color: #ffffff;
  border-color: var(--azul-acento);
  box-shadow: 0 2px 8px var(--azul-glow);
}

.tool-btn.active {
  background-color: var(--azul-primario);
  color: #ffffff;
}

.tts-status-text {
  font-size: 0.78rem;
  color: var(--gris-texto);
  font-weight: 500;
}

.view-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.main-card {
  background: transparent;
  min-width: 0;
}

.portada-img-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--gris-tarjeta);
  border: 1px solid var(--border-card);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.portada-img-wrapper img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-content {
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: var(--article-font-size);
  transition: font-size 0.2s ease;
}

.article-content p {
  color: var(--texto-oscuro);
  line-height: 1.85;
  margin-bottom: 22px;
}

.article-content > p:first-of-type::first-letter {
  font-family: "Merriweather", Georgia, serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  margin-top: 4px;
  margin-right: 12px;
  margin-bottom: -4px;
  color: var(--azul-primario);
  font-weight: 700;
}

.article-content
  iframe:not([id^="twitter-widget-"]):not(.twitter-tweet):not(
    .twitter-tweet-rendered
  ),
.article-content video,
.article-content embed,
.article-content object {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: var(--radius-md) !important;
  box-sizing: border-box !important;
}

.article-content .twitter-tweet,
.article-content .twitter-tweet-rendered,
.article-content iframe[id^="twitter-widget-"] {
  aspect-ratio: unset !important;
  max-height: none !important;
  min-height: auto !important;
  width: 100% !important;
  max-width: 550px !important;
  display: block !important;
}

.inner-sidebar-card {
  background-color: var(--gris-tarjeta);
  border: 0px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.inner-sidebar-card h4 {
  margin: 0 0 16px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--texto-oscuro);
  letter-spacing: -0.01em;
}

.qr-wrapper {
  text-align: center;
}

.qr-wrapper img {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  padding: 4px;
  background: #ffffff;
}

/* GALERÍA DE FOTOS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-thumb-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background-color: #ffffff;
  border: 0px solid var(--border-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-thumb-item:hover {
  transform: translateY(-3px) scale(1.02);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX PÚBLICO */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.94);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.lightbox-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  object-fit: contain;
}

.lightbox-counter-text {
  color: #ffffff;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lightbox-btn-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.lightbox-btn-close:hover {
  color: #ff5252;
}

.lightbox-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-btn-nav:hover {
  background: var(--azul-acento);
  border-color: var(--azul-acento);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-btn-prev {
  left: -65px;
}

.lightbox-btn-next {
  right: -65px;
}

/* REPRODUCTORES & NAVEGACIÓN DE POST */
.audio-player-custom {
  width: 100%;
  border-radius: var(--radius-pill);
  outline: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: var(--radius-md);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-card);
}

.nav-post-card {
  background: var(--gris-tarjeta);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-post-card:hover {
  border-color: var(--azul-acento);
  transform: translateY(-3px);
}

.nav-post-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--azul-acento);
  letter-spacing: 0.03em;
}

.nav-post-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texto-oscuro);
  line-height: 1.35;
}

.related-news-section {
  margin-top: 44px;
}

/* MODALES DE LOGIN Y TÉRMINOS */
.login-modal-overlay,
.terms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  padding: 20px;
}

.login-modal-overlay.active,
.terms-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-card {
  background-color: var(--blanco);
  color: var(--texto-oscuro);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px;
  position: relative;
}

.terms-modal-card {
  background-color: var(--blanco, #ffffff);
  color: var(--texto-oscuro, #2b3674);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-card, #e9edf7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.active .login-modal-card,
.terms-modal-overlay.active .terms-modal-card {
  transform: scale(1);
}

.login-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gris-texto);
  cursor: pointer;
  line-height: 1;
}

.login-modal-close:hover {
  color: var(--texto-oscuro);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 10px;
}

.auth-tab-btn {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gris-texto);
  cursor: pointer;
  padding: 4px 8px;
  position: relative;
  transition: color 0.2s ease;
  font-family: inherit;
}

.auth-tab-btn.active {
  color: var(--azul-primario);
}

.auth-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--azul-acento);
  border-radius: var(--radius-pill);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-oscuro);
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background-color: var(--gris-tarjeta);
  color: var(--texto-oscuro);
  transition: all 0.25s ease;
}

.form-group input:focus {
  background-color: var(--blanco);
  border-color: var(--azul-acento);
  box-shadow: 0 0 0 3px var(--azul-glow);
}

.auth-submit-btn {
  background-color: var(--azul-primario);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
  font-family: inherit;
}

.auth-submit-btn:hover {
  background-color: var(--azul-acento);
  box-shadow: 0 4px 12px var(--azul-glow);
}

.auth-footer-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gris-texto);
  margin-top: 10px;
}

.auth-footer-links a,
.auth-footer-links button {
  color: var(--azul-acento);
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.auth-footer-links a:hover,
.auth-footer-links button:hover {
  text-decoration: underline;
}

.auth-desc-text {
  font-size: 0.83rem;
  color: var(--gris-texto);
  line-height: 1.45;
}

/* Modal Términos específicos */
.terms-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-card, #e9edf7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gris-tarjeta, #f4f7fe);
}

.terms-modal-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--texto-oscuro, #2b3674);
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--gris-texto, #a31024);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: var(--radius-pill, 50px);
}

.close-modal-btn:hover {
  color: var(--texto-oscuro, #2b3674);
}

.terms-modal-body {
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gris-texto, #707ebe);
  overflow-y: auto;
}

.terms-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-card, #e9edf7);
  background-color: var(--gris-tarjeta, #f4f7fe);
  text-align: right;
}

.terms-accept-btn {
  background-color: var(--azul-acento, #4318ff);
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: var(--radius-pill, 50px);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terms-accept-btn:hover {
  background-color: var(--azul-primario, #00395e);
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.2);
}

/* MODO LECTOR & IMPRESIÓN */
body.reader-mode header,
body.reader-mode .sidebar,
body.reader-mode footer,
body.reader-mode .related-news-section,
body.reader-mode .header-promo-banner,
body.reader-mode .scroll-progress-bar,
body.reader-mode .sticky-mini-header {
  display: none !important;
}

body.reader-mode .container {
  grid-template-columns: 1fr !important;
  max-width: 760px !important;
  margin: 20px auto !important;
  padding: 0 16px !important;
}

body.reader-mode .article-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.reader-exit-bar {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
}

body.reader-mode .reader-exit-bar {
  display: block;
}

/* ==========================================================================
   7. FOOTER PÚBLICO
   ========================================================================== */
footer.public-footer {
  background-color: var(--azul-oscuro, #0b1437);
  color: #ffffff !important;
  padding: 28px 20px;
  margin-top: 55px;
  border-radius: 0 !important;
  width: 100%;
}

.footer-container-clean {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:3px;
  text-align: center;
}

.footer-copy-text {
  font-size: 0.83rem;
  color: #9ca3af !important;
  line-height: 1.5;
  max-width: 900px;
}

.terms-btn {
  background: transparent;
  border: none;
  color: var(--blanco);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
  padding: 4px 8px;
}

.terms-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   8. MEDIA QUERIES (SITIO PÚBLICO)
   ========================================================================== */
@media (max-width: 1024px) {
  .dropdown {
    display: inline-block;
  }

  .nav-p4 {
    display: none !important;
  }

  .dropdown-content a.drop-p4 {
    display: block;
  }

  .news-grid,
  .news-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    margin: 16px auto;
    padding: 0 16px;
  }

  .hero-grid,
  .news-grid-3,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .main-hero {
    min-height: 330px;
  }

  .article-title {
    font-size: 1.65rem;
  }

  .article-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 860px) {
  .nav-p3 {
    display: none !important;
  }

  .dropdown-content a.drop-p3 {
    display: block;
  }

  .view-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header,
  header.cat-header,
  header.search-header,
  header.note-header {
    position: relative;
    top: auto;
  }

  .header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .logo {
    text-align: center;
  }

  .search-box {
    max-width: 100%;
  }

  .header-widgets-info {
    align-items: center;
  }

  .promo-container-grid {
    grid-template-columns: 1fr;
  }

  .media-rotator-box {
    height: 80px;
  }

  .infeed-media-rotator {
    height: 90px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-btn-prev {
    left: 10px;
  }

  .lightbox-btn-next {
    right: 10px;
  }

  .lightbox-btn-close {
    top: -40px;
    right: 10px;
  }
}

@media (max-width: 720px) {
  .nav-p2 {
    display: none !important;
  }

  .dropdown-content a.drop-p2 {
    display: block;
  }
}

@media (max-width: 580px) {
  .nav-p1 {
    display: none !important;
  }

  .dropdown-content a.drop-p1 {
    display: block;
  }

  .nav-container {
    gap: 8px;
    padding: 4px 12px;
    justify-content: flex-start;
    align-items: center;
  }

  .dropbtn {
    background-color: var(--gris-tarjeta);
    font-weight: 600;
  }

  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-content {
    top: 100%;
    left: 0;
    right: auto;
    transform: none;
    width: 220px;
    max-width: 85vw;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
    margin: 12px auto;
  }

  .article-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .article-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .article-subtitle {
    font-size: 0.95rem;
  }

  .share-section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .share-buttons {
    width: 100%;
  }

  .action-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }

  .tool-btn-group {
    width: 100%;
    justify-content: flex-start;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .sticky-mini-title {
    max-width: 45%;
    font-size: 0.8rem;
  }
}

/* MEDIOS DE IMPRESIÓN PÚBLICOS */
@media print {
  header,
  footer,
  .sidebar,
  .share-section-top,
  .related-news-section,
  .action-toolbar,
  .header-promo-banner,
  .scroll-progress-bar,
  .sticky-mini-header,
  .post-navigation {
    display: none !important;
  }

  .container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .article-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
