/* ===================================================
   CGN NOTICIAS - Sistema de Estilos Premium & Responsivo
   Full-Width Modern Design
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-admin: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Paleta de Colores CGN Oficial */
  --cgn-navy-dark: #071524;
  --cgn-blue-deep: #0b2545;
  --cgn-blue-primary: #0d5b96;
  --cgn-blue-medium: #136cae;
  --cgn-sky-blue: #0284c7;
  --cgn-sky-light: #38bdf8;
  --cgn-teal-accent: #00b8cb;
  --cgn-teal-light: #09cbd6;

  /* Degradado Azul Cielo / Cyan Oficial CGN */
  --cgn-gradient-brand: linear-gradient(135deg, #0d5b96 0%, #0284c7 50%, #00b8cb 100%);
  --cgn-gradient-header: linear-gradient(90deg, #0b2545 0%, #0d5b96 40%, #0284c7 75%, #00b8cb 100%);
  --cgn-gradient-dark: linear-gradient(180deg, #071524 0%, #0b2545 100%);

  /* Neutros & Sombra */
  --bg-page: #eaf4fc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-light: #dbeafe;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(13, 91, 150, 0.05);
  --shadow-md: 0 6px 20px -2px rgba(13, 91, 150, 0.1);
  --shadow-lg: 0 20px 45px -8px rgba(13, 91, 150, 0.18);
  --shadow-xl: 0 25px 50px -12px rgba(7, 21, 36, 0.25);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --content-width: 100%;
  --content-padding: 2.5rem;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  background-image: radial-gradient(circle at 50% 0%, #dbeafe 0%, #eaf4fc 60%, #e0f2fe 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   MAIN HEADER & LOGO — Full Width Modern Gradient
   =================================================== */
.main-header {
  background: var(--cgn-gradient-header);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(13, 91, 150, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.6rem var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo Oficial CGN */
.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 8px rgba(0,184,203,0.3));
}

/* Navegación Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  position: relative;
  letter-spacing: 0.2px;
  border-radius: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #00b8cb;
  border-radius: 9999px;
  box-shadow: 0 0 8px #00b8cb;
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}

/* Ajustes Responsivos para Laptops y Pantallas PC Chicas (1024px - 1400px) */
@media (max-width: 1400px) {
  .header-container {
    padding: 0.5rem 1.5rem;
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 36px;
  }
  .nav-menu {
    gap: 0.15rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }
  .search-input {
    width: 130px;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem 0.4rem 2rem;
  }
  .search-input:focus {
    width: 170px;
  }
  .search-icon {
    left: 0.65rem;
  }
}

@media (max-width: 1180px) {
  .desktop-socials {
    display: none !important;
  }
  .nav-link {
    font-size: 0.775rem;
    padding: 0.3rem 0.45rem;
  }
}

/* Buscador Header */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition-fast);
  width: 180px;
  font-family: var(--font-primary);
}

.search-input::placeholder {
  color: #ffffff;
  font-weight: 700;
  opacity: 0.9;
}

.search-input:focus {
  width: 240px;
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: #ffffff;
  font-weight: 800;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Botón Menú Móvil */
.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ===================================================
   MENÚ DESPLEGABLE MÓVIL (NAV DRAWER)
   =================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--cgn-navy-dark);
  z-index: 2000;
  padding: 2rem 1.5rem;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.25rem;
}

.drawer-close-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255,255,255,0.15);
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-menu a {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 600;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.drawer-menu a:hover {
  color: #ffffff;
  background: rgba(0, 184, 203, 0.1);
}

/* ===================================================
   LAYOUT & HEROS — Full Width
   =================================================== */
.main-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem var(--content-padding);
}

.hero-news {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 500px;
  background-color: var(--cgn-navy-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-card:hover .hero-img-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 21, 36, 0.95) 0%, rgba(7, 21, 36, 0.4) 55%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  color: #ffffff;
}

.badge-cat {
  display: inline-block;
  background: var(--cgn-gradient-brand);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 184, 203, 0.35);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero-title a:hover {
  color: var(--cgn-teal-accent);
}

.hero-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Sidebar Hero */
.hero-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--cgn-blue-primary);
  transition: var(--transition-spring);
  cursor: pointer;
}

.side-news-card:hover {
  transform: translateY(-4px) translateX(2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--cgn-teal-accent);
}

.side-news-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.35rem 0;
}

.side-news-title a:hover {
  color: var(--cgn-blue-primary);
}

/* ===================================================
   GRID DE NOTICIAS — Full Width
   =================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cgn-blue-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.2px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--cgn-gradient-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-spring);
  border: 1px solid rgba(0,0,0,0.04);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--cgn-navy-dark), var(--cgn-blue-deep));
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.4rem 0 0.75rem 0;
  color: var(--text-main);
}

.card-title a:hover {
  color: var(--cgn-blue-primary);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================================
   ARTICLE PAGE - HERO LAYOUT (FULL WIDTH)
   =================================================== */
.article-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  max-height: 550px;
  background-color: var(--cgn-navy-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top !important;
  z-index: 1;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 21, 36, 0.95) 0%, rgba(7, 21, 36, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.article-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem var(--content-padding);
  color: #ffffff;
}

.article-hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.article-hero-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Center readable column for article content */
.article-content-wrap {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}

/* Article Body — WordPress content styling */
.article-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #1e293b;
  word-break: break-word;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-heading);
  color: var(--cgn-blue-deep);
  margin: 2.5rem 0 1rem 0;
  font-weight: 800;
  line-height: 1.25;
}

.article-body h2 {
  font-size: 1.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border-light);
}

.article-body h3 { font-size: 1.4rem; }
.article-body h4 { font-size: 1.15rem; }

.article-body strong {
  color: var(--text-main);
  font-weight: 700;
}

.article-body a {
  color: var(--cgn-blue-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13, 91, 150, 0.3);
  transition: var(--transition-fast);
}

.article-body a:hover {
  color: var(--cgn-teal-accent);
  text-decoration-color: var(--cgn-teal-accent);
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-left: 4px solid var(--cgn-teal-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* WordPress figure & image blocks */
.article-body figure {
  margin: 2rem -1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-body figure img,
.article-body .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: #f8fafc;
  font-style: italic;
}

/* WordPress video blocks */
.article-body video {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.article-body .wp-block-video {
  margin: 2rem 0;
}

/* Article Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-light);
}

.share-bar span.share-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition-spring);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: #ffffff;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #0f1419; }
.share-btn.whatsapp { background: #25d366; }

/* Author byline in article */
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.article-byline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cgn-gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,184,203,0.3);
}

.article-byline-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-byline-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.article-byline-date {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Video embed box */
.video-embed-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-embed-box iframe,
.video-embed-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Controls */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
  background: #fff;
  color: var(--text-main);
}

.form-control:focus {
  border-color: var(--cgn-blue-primary);
  box-shadow: 0 0 0 4px rgba(13, 91, 150, 0.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: var(--cgn-gradient-brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 4px 14px rgba(0, 184, 203, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 184, 203, 0.4);
}

/* ===================================================
   FOOTER — Full Width
   =================================================== */
.main-footer {
  background: var(--cgn-navy-dark);
  color: #94a3b8;
  padding: 4rem 0 1.5rem 0;
  margin-top: 4rem;
  border-top: 4px solid var(--cgn-teal-accent);
}

.footer-container {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--content-padding);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.footer-bottom {
  width: 100%;
  margin: 2.5rem auto 0 auto;
  padding: 1.5rem var(--content-padding) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
}

/* ===================================================
   PAGINATION CONTROLS
   =================================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-spring);
  cursor: pointer;
}

.pagination-link:hover {
  background: rgba(13, 91, 150, 0.08);
  color: var(--cgn-blue-primary);
  border-color: rgba(13, 91, 150, 0.2);
  transform: translateY(-2px);
}

.pagination-link.active {
  background: var(--cgn-gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 184, 203, 0.25);
}

.pagination-link.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #f8fafc;
}

/* ===================================================
   ARTICLE PAGE SIDEBAR LAYOUT
   =================================================== */
.article-main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2.5rem;
  margin-top: -3.5rem; /* Pull up onto the hero image */
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.article-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
  align-self: start;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cgn-blue-deep);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--cgn-gradient-brand);
  border-radius: 2px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.sidebar-item-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: var(--transition-spring);
}

.sidebar-item-card:hover {
  transform: translateX(3px);
}

.sidebar-item-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cgn-gradient-brand);
  flex-shrink: 0;
}

.sidebar-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.sidebar-item-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-item-title a:hover {
  color: var(--cgn-blue-primary);
}

.sidebar-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================
   RESPONSIVE — Celulares y Tablets
   =================================================== */
@media (max-width: 1200px) {
  :root {
    --content-padding: 2rem;
  }
}

@media (max-width: 960px) {
  :root {
    --content-padding: 1.5rem;
  }
  .hero-news {
    grid-template-columns: 1fr;
  }
  .hero-main-card {
    min-height: 380px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .article-content-wrap {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
  }
  .desktop-socials {
    display: none !important;
  }
  .article-main-grid {
    grid-template-columns: 1fr;
    margin-top: -2rem;
    gap: 1.5rem;
  }
  .article-sidebar {
    padding: 2rem;
    border-radius: var(--radius-md);
  }
  .article-hero {
    height: 45vh;
    min-height: 320px;
  }
  .article-hero-title {
    font-size: 2rem;
  }
  .article-body figure {
    margin: 1.5rem -0.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --content-padding: 1rem;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand-logo-img {
    height: 36px;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .hero-main-card {
    min-height: 320px;
    border-radius: var(--radius-md);
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .search-form {
    display: none;
  }
  .article-content-wrap {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .article-main-grid {
    grid-template-columns: 1fr;
    margin-top: -1.5rem;
    gap: 1.25rem;
  }
  .article-sidebar {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .article-hero {
    height: 40vh;
    min-height: 260px;
  }
  .article-hero-title {
    font-size: 1.5rem;
  }
  .article-body {
    font-size: 1rem;
    line-height: 1.8;
  }
  .article-excerpt-lead {
    font-size: 1rem;
  }
  .article-body figure {
    margin: 1.5rem -0.25rem;
  }
  .share-bar {
    gap: 0.5rem;
  }
  .share-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .side-news-card {
    padding: 1rem;
  }
}

/* ===================================================
   ADMINISTRATIVE DASHBOARD STYLES (SUPERADMIN & EDITOR)
   =================================================== */
.admin-navbar,
.admin-wrapper,
.admin-card,
.gutenberg-header,
.gutenberg-layout,
.gutenberg-editor-paper,
.gutenberg-sidebar,
.login-container {
  font-family: var(--font-admin) !important;
}
.admin-navbar {
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.admin-brand-logo {
  height: 32px;
  object-fit: contain;
}

.admin-role-badge {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-nav-link:hover {
  color: #38bdf8;
}

.admin-btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-btn-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

.admin-wrapper {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

