/* ==========================================================================
   VARIABLES Y PALETA GENERAL
   ========================================================================== */

:root {
  --blue-brand-dark: #0A192F;    /* Azul Marino Oscuro */
  --blue-brand-primary: #0284C7; /* Azul Principal */
  --blue-brand-light: #38BDF8;   /* Azul Celeste */
  --blue-sky-bg: #F0F9FF;        /* Fondo Claro */
  
  --amber-accent: #D97706;      /* Dorado Acento */
  
  --bg-main: #F8FAFC;           /* Fondo General */
  --surface-white: #FFFFFF;     /* Blanco */
  --text-dark: #0F172A;         /* Texto Oscuro */
  --text-muted: #475569;        /* Texto Secundario */
  --border-color: #E2E8F0;      /* Bordes Gris */

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  width: 100vw;
  overflow-x: hidden;
}

/* ==========================================================================
   TOPBAR SUPERIOR
   ========================================================================== */

.topbar {
  background-color: var(--blue-brand-dark);
  color: #94A3B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.topbar-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.25rem 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--transition);
  filter: brightness(0) invert(1);
}

.topbar-brand:hover .brand-logo-img {
  transform: scale(1.02);
  opacity: 0.9;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: none;
  color: #E0F2FE;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: underline;
}

.action-link {
  color: #E0F2FE;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.action-link:hover {
  color: #FFFFFF;
}

.btn-ciala {
  background-color: var(--blue-brand-primary);
  color: #FFFFFF !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ciala:hover {
  background-color: #0369A1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   NAVBAR CENTRADO CON DESPLEGABLES
   ========================================================================== */

.main-header {
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-wrapper.navbar-centered {
  width: 100%;
  padding: 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-list.centered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--blue-brand-primary);
}

.arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

/* Desplegables */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--surface-white);
  min-width: 230px;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.dropdown li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  transition: var(--transition);
}

.dropdown li a:hover {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-dark);
  padding-left: 1.5rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 0;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 4px 0;
}

/* ==========================================================================
   NUEVO HERO / BANNER DIVIDIDO (SPLIT LAYOUT CON CUBOS Y VIDEO)
   ========================================================================== */

.hero-split-section {
  display: flex;
  width: 100%;
  min-height: 540px;
  background-color: #0A192F; /* Fondo Azul Marino Profundo que unifica */
  overflow: hidden;
  position: relative;
}

/* Lado Izquierdo: Tipografía de Alto Contraste */
.hero-split-left {
  flex: 1;
  padding: 4rem 2.5rem;
  display: flex;
  align-items: center;      /* Centrado vertical */
  justify-content: center; /* Centrado horizontal del contenedor */
  text-align: center;       /* Centrado del texto e hijos */
  position: relative;
  background: radial-gradient(circle at center, #1E3A8A 0%, #0A192F 80%);
  z-index: 3;
}

.hero-left-content {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;          /* Centrado de bloque */
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centra elementos inline/flex como el badge y botones */
  position: relative;
  z-index: 4;
}

/* Badge con Borde Brillante */
.hero-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38BDF8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

/* Título Principal Blanco Puro */
.hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
  display: block;
  color: #7DD3FC;
  margin-top: 0.4rem;
  font-weight: 700;
}

/* ==========================================================================
   ESTILOS DE PORTADA SPLIT CON DIFUMINADO EN VIDEO LOCAL
   ========================================================================== */
.hero-split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  background-color: var(--blue-brand-dark, #0a192f);
  overflow: hidden;
  position: relative;
}

.hero-split-right {
  flex: 1;
  position: relative;
  background-color: #000000;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* DIFUMINADO SUAVE DE IZQUIERDA A DERECHA EN LA UNIÓN */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%);
}

.video-frame-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.controlled-local-video {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  border: none;
  display: block;
}

@media (max-width: 992px) {
  .hero-split-section {
    grid-template-columns: 1fr;
  }
  .hero-split-right {
    -webkit-mask-image: none;
    mask-image: none;
    min-height: 300px;
  }
}
.hero-description {
  font-size: 1.05rem;
  color: #E2E8F0;
  margin: 0 auto 2rem;
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center; /* Centra los botones horizontalmente */
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}
.btn {
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-hero-primary {
  background-color: var(--blue-brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-hero-primary:hover {
  background-color: #0369A1;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

/* CUBOS Y FORMACIÓN EN MOVIMIENTO (IZQUIERDA) */
.cube-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cube {
  position: absolute;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(2, 132, 199, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  animation: cubeFloat 14s infinite ease-in-out alternate;
}

.cube-1 { width: 90px; height: 90px; top: 10%; right: 10%; animation-delay: 0s; }
.cube-2 { width: 60px; height: 60px; bottom: 15%; right: 25%; animation-delay: -4s; }
.cube-3 { width: 110px; height: 110px; bottom: -20px; left: 5%; animation-delay: -8s; }
.cube-4 { width: 45px; height: 45px; top: 25%; left: 45%; animation-delay: -11s; }

@keyframes cubeFloat {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-30px) rotate(15deg) scale(1.08); }
}


/* ==========================================================================
   NUEVA SECCIÓN PRÓXIMA REUNIÓN (DISEÑO MÓDULO COMANDO)
   ========================================================================== */

.meeting-section {
  width: 100%;
  padding: 0 2.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 20;
}

.section-wrapper {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}

.meeting-panel {
  background-color: var(--surface-white);
  border-radius: 14px;
  box-shadow: 0 15px 35px -5px rgba(10, 25, 47, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.meeting-left-accent {
  background: linear-gradient(180deg, var(--blue-brand-dark), #07111E);
  color: #FFFFFF;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 210px;
  border-right: 4px solid var(--amber-accent);
}

.event-type-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FDBA74;
  letter-spacing: 0.05em;
}

.pulse-status {
  width: 8px;
  height: 8px;
  background-color: var(--amber-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.event-icon-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 10px;
  color: var(--blue-brand-light);
  margin-top: 1rem;
}

.meeting-info-body {
  padding: 2rem 2.25rem;
  flex: 1;
}

.meeting-main-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0 0 0.5rem 0;
}

.meeting-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.meeting-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag-item {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-dark);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid #BAE6FD;
}

.meeting-action-col {
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border-color);
  background-color: #FAFAFA;
}

.btn-meeting-action {
  background-color: var(--blue-brand-dark);
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-meeting-action:hover {
  background-color: var(--blue-brand-primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   SECCIÓN NOTICIAS
   ========================================================================== */

.news-section {
  padding: 5rem 2.5rem;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--blue-brand-primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
}

.view-all-link {
  color: var(--blue-brand-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.12);
  border-color: var(--blue-brand-primary);
}

.news-date {
  font-size: 0.8rem;
  color: var(--blue-brand-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-read-more {
  color: var(--blue-brand-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ==========================================================================
   FOOTER CON BANDERAS DE PAÍSES MIEMBROS
   ========================================================================== */

.main-footer {
  background-color: var(--blue-brand-dark);
  color: #94A3B8;
  width: 100%;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrapper {
  width: 100%;
  padding: 0 2.5rem 3rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

/* FRANJA DE BANDERAS INSTITUCIONALES */
.footer-flags-bar {
  background-color: #07111E;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 2rem;
  width: 100%;
}

.flags-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1350px;
  margin: 0 auto;
}

.flag-icon {
  height: 22px;
  width: 32px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.flag-icon:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #FFFFFF;
}

.footer-bottom {
  padding: 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
  background-color: #050C16;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-split-section {
    flex-direction: column;
  }

  .hero-split-left {
    padding: 3.5rem 2rem;
  }

  .hero-split-right {
    min-height: 360px;
  }

  .meeting-panel {
    flex-direction: column;
  }

  .meeting-left-accent {
    flex-direction: row;
    min-width: 100%;
    border-right: none;
    border-bottom: 4px solid var(--amber-accent);
  }

  .meeting-action-col {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 992px) {
  .navbar-wrapper.navbar-centered {
    justify-content: space-between;
  }

  .mobile-toggle {
    display: block;
  }

  .navbar {
    display: none;
    width: 100%;
  }

  .navbar.is-open {
    display: block;
  }

  .nav-list.centered-list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .dropdown {
    position: static;
    transform: none !important;
    left: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-item.is-expanded .dropdown {
    display: block;
  }
}

@media (max-width: 768px) {
  .topbar-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .topbar-actions {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }

  .brand-logo-img {
    height: 38px;
    max-width: 170px;
  }

  .hero-split-left {
    padding: 2.5rem 1.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .flags-wrapper {
    gap: 0.6rem;
  }

  .flag-icon {
    height: 18px;
    width: 26px;
  }

  .meeting-section {
    padding: 0 1.25rem;
  }
}

/* ==========================================================================
   ESTILOS PARA LA SUBPÁGINA PRÓXIMA REUNIÓN (PROXIMA-REUNION.HTML)
   ========================================================================== */

.page-content {
  width: 100%;
  padding-bottom: 5rem;
}

/* BANNER MODERNO EN GRID DE 2 COLUMNAS */
.event-hero-banner {
  width: 100%;
  background-color: var(--blue-brand-dark);
  padding: 3rem 2.5rem;
}

.event-hero-container {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: radial-gradient(circle at top left, #1E3A8A 0%, #0A192F 80%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.event-hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 380px;
}

.image-overlay-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.4), rgba(2, 132, 199, 0.6));
}

.event-hero-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  color: var(--blue-brand-light);
  border: 1px solid var(--blue-brand-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  z-index: 2;
}

.event-hero-info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.event-avm-logo {
  height: 38px;
  filter: brightness(0) invert(1);
}

.host-tag {
  font-size: 0.8rem;
  color: #BAE6FD;
  font-weight: 600;
  border-left: 2px solid var(--amber-accent);
  padding-left: 0.75rem;
}

.event-hero-title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.75rem;
  color: #FFFFFF;
}

.event-hero-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-pill svg {
  color: var(--blue-brand-light);
}

/* TARJETA DE TEXTO OFICIAL */
.event-body-section {
  width: 100%;
  padding: 4rem 2.5rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.event-card-container {
  background-color: var(--surface-white);
  border-radius: 14px;
  box-shadow: 0 15px 35px -5px rgba(10, 25, 47, 0.08);
  border: 1px solid var(--border-color);
  padding: 3rem;
  max-width: 1350px;
  margin: 0 auto;
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.event-icon-circle {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-primary);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #BAE6FD;
}

.event-body-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  line-height: 1.3;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  text-align: justify;
}

/* RESPONSIVE SUBPÁGINA */
@media (max-width: 992px) {
  .event-hero-container {
    grid-template-columns: 1fr;
  }

  .event-hero-image {
    min-height: 260px;
  }

  .event-hero-info {
    padding: 2rem 1.5rem;
  }

  .event-card-container {
    padding: 2rem 1.5rem;
  }

  .event-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA SOBRE NOSOTROS & VISOR PDF (SOBRE-NOSOTROS.HTML)
   ========================================================================== */

/* SPLIT HERO INSTITUCIONAL */
.about-hero-section {
  width: 100%;
  background-color: var(--blue-brand-dark);
  padding: 4rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-hero-container {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.about-hero-left {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}

.about-hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 1rem 0 1.5rem;
  color: #FFFFFF;
}

.about-hero-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.highlight-text {
  background: rgba(2, 132, 199, 0.15);
  border-left: 3px solid var(--blue-brand-light);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  color: #F1F5F9;
}

/* LADO DERECHO CON GRADIENTE Y MARCO */
.about-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 380px;
  background: radial-gradient(circle at center, #1E3A8A 0%, #0A192F 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
}

.about-hero-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
}

.about-frame-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

/* SECCIÓN VISOR PDF */
.pdf-viewer-section {
  padding: 4rem 2.5rem;
}

.pdf-card-container {
  background-color: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.08);
  padding: 2.5rem;
  max-width: 1350px;
  margin: 0 auto;
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.pdf-title-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pdf-icon-badge {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-primary);
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #BAE6FD;
  flex-shrink: 0;
}

.pdf-main-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
}

.pdf-sub-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdf-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-pdf-primary {
  background-color: var(--blue-brand-primary);
  color: #FFFFFF;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-pdf-primary:hover {
  background-color: #0284C7;
  color: #FFFFFF;
}

.btn-pdf-secondary {
  background-color: var(--bg-light);
  color: var(--blue-brand-dark);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-pdf-secondary:hover {
  background-color: #E2E8F0;
}

.pdf-frame-wrapper {
  width: 100%;
  height: 800px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #F8FAFC;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .about-hero-container {
    grid-template-columns: 1fr;
  }

  .about-hero-right {
    order: -1;
  }

  .about-image-frame {
    height: 260px;
  }

  .pdf-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-actions {
    width: 100%;
  }

  .btn-pdf-primary, .btn-pdf-secondary {
    width: 100%;
    justify-content: center;
  }

  .pdf-frame-wrapper {
    height: 550px;
  }
}

/* ==========================================================================
   ESTILOS PARA LA SECCIÓN ORGANIZACIÓN DEL ACUERDO
   ========================================================================== */

.organization-section {
  padding: 3rem 2.5rem 1rem;
}

.organization-card {
  background-color: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.05);
  padding: 2.5rem;
  max-width: 1350px;
  margin: 0 auto;
}

.org-header-text {
  text-align: center;
  margin-bottom: 2rem;
}

.org-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 0.5rem;
}

.org-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.org-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  border-radius: 12px;
  background-color: #F8FAFC;
  border: 1px dashed var(--border-color);
}

.org-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .organization-section {
    padding: 2rem 1.25rem 0;
  }
  
  .organization-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   ESTILOS SUBPÁGINA MISIÓN Y OBJETIVOS (MISION-OBJETIVOS.HTML)
   ========================================================================== */

/* HERO BANNER CON CUBOS EN MOVIMIENTO */
.mission-hero-banner {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at top left, #1E3A8A 0%, #0A192F 85%);
  padding: 4.5rem 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.hero-wrapper-relative {
  position: relative;
  z-index: 2;
}

.mission-hero-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid var(--blue-brand-light);
  color: var(--blue-brand-light);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.mission-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.mission-hero-subtitle {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* DESTACADO DE LA MISIÓN */
.mission-card-section {
  padding: 3.5rem 2.5rem 1.5rem;
}

.mission-featured-card {
  max-width: 1350px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
  border-radius: 16px;
  padding: 3rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-card-icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blue-brand-light);
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mission-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.mission-card-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #E2E8F0;
}

/* SECCIÓN OBJETIVOS (GRID) */
.goals-section {
  padding: 3rem 2.5rem 5rem;
}

.goals-header {
  text-align: center;
  margin-bottom: 3rem;
}

.goals-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 0.5rem;
}

.goals-sub-title {
  font-size: 1rem;
  color: var(--text-muted);
}

.goals-grid {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.goal-card {
  background-color: var(--surface-white);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.04);
}

.goal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.12);
  border-color: var(--blue-brand-primary);
}

.goal-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: #E2E8F0;
  line-height: 1;
}

.goal-icon-box {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-primary);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid #BAE6FD;
}

.goal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 0.75rem;
}

.goal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TARJETA ANCHA DE COOPERACIÓN */
.goal-card-wide {
  grid-column: 1 / -1;
  background: #F8FAFC;
  border-left: 4px solid var(--blue-brand-primary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .mission-featured-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .mission-card-icon-box {
    margin: 0 auto;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .goal-card-wide {
    grid-column: auto;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA SECRETARÍA (SECRETARIA.HTML)
   ========================================================================== */

/* HERO BANNER DIVIDIDO DE LA SECRETARÍA (HERO SPLIT) */
.sec-hero-split-section {
  width: 100%;
  background-color: var(--blue-brand-dark);
  padding: 3.5rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sec-hero-container {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.sec-hero-text-card {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}

.sec-hero-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid var(--blue-brand-light);
  color: var(--blue-brand-light);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.sec-hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.sec-hero-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.7;
}

/* MARCO Y FOTO DE MAYOR ALTURA */
.sec-hero-photo-card {
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 100%;
  height: 480px; /* Mayor altura para destacar al personal */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background-color: #0A192F;
}

.photo-team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Mantiene enfocados los rostros */
  display: block;
}

/* SECCIÓN FUNCIONES DE LA SECRETARÍA */
.sec-functions-section {
  padding: 3.5rem 2.5rem 1.5rem;
}

.sec-functions-card {
  max-width: 1350px;
  margin: 0 auto;
  background-color: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.05);
  padding: 3rem;
}

.sec-intro-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--blue-brand-dark);
  font-weight: 600;
  border-left: 4px solid var(--blue-brand-primary);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}

.sec-functions-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 1.75rem;
}

.sec-functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.func-item {
  background-color: #F8FAFC;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.func-icon {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #BAE6FD;
}

.func-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* SECCIÓN INTEGRANTES (TARJETAS INSTITUCIONALES) */
.sec-members-section {
  padding: 2rem 2.5rem 5rem;
}

.members-group-wrapper {
  max-width: 1350px;
  margin: 0 auto 3.5rem;
}

.group-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-brand-primary);
  display: inline-block;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.grid-2-col {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.member-card {
  background-color: var(--surface-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.03);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.12);
  border-color: var(--blue-brand-primary);
}

.card-ciala {
  border-left: 4px solid var(--blue-brand-light);
  background: linear-gradient(to right, #F8FAFC 0%, #FFFFFF 100%);
}

.member-role {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-brand-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.member-rank {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.member-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0;
}

/* ADAPTACIÓN RESPONSIVA */
@media (max-width: 992px) {
  .sec-hero-container {
    grid-template-columns: 1fr;
  }
  
  .photo-frame {
    height: 350px;
  }

  .sec-functions-card {
    padding: 1.75rem;
  }

  .members-grid, .grid-2-col {
    grid-template-columns: 1fr;
  }
}
/* AJUSTES ESPECÍFICOS PARA CIALA.HTML */
.ciala-cta-wrapper {
  margin-top: 1.75rem;
}

.func-item-wide {
  grid-column: 1 / -1;
  background-color: #F1F5F9;
  border-left: 4px solid var(--blue-brand-primary);
}

@media (max-width: 992px) {
  .func-item-wide {
    grid-column: auto;
  }
}

/* ==========================================================================
   ESTILOS PAÍSES MIEMBROS: TABLA CENTRADA Y MAPA LEAFLET
   ========================================================================== */

/* SECCIÓN DE LA TABLA (AHORA PRIMERO) */
.table-authorities-section {
  padding: 3.5rem 2.5rem 2rem;
}

.table-card-container {
  max-width: 1350px;
  margin: 0 auto;
  background-color: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.05);
  overflow: hidden;
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* TABLA CON TODAS LAS COLUMNAS CENTRADAS */
.styled-authorities-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.styled-authorities-table thead {
  background-color: #F8FAFC;
  border-bottom: 2px solid var(--border-color);
}

.table-center-all th {
  padding: 1.2rem 1rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  text-align: center !important;
  vertical-align: middle;
  white-space: nowrap;
}

.table-center-all td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-dark);
  text-align: center !important;
  vertical-align: middle;
  line-height: 1.5;
}

.styled-authorities-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* CONTENEDOR DE PAÍS + BANDERA CENTRADO */
.td-country-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  white-space: nowrap;
}

.table-flag-mini {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.td-titular {
  font-weight: 700;
  color: var(--blue-brand-primary);
  white-space: nowrap;
}

.td-rank {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* SECCIÓN DEL MAPA (AHORA SEGUNDO) */
.map-interactive-section {
  padding: 2rem 2.5rem 5rem;
}

.map-layout-row {
  max-width: 1350px;
  margin: 0 auto;
}

.map-container-relative-box {
  width: 100%;
  height: 620px;
  position: relative;
  background: #eef4f8;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color);
  z-index: 10 !important;
}

.leaflet-custom-flag {
  border: 2px solid #ffffff !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: filter 0.2s ease !important;
}

.leaflet-custom-flag:hover {
  filter: brightness(1.15) contrast(1.05) !important;
}

.leaflet-control-attribution {
  display: none !important;
}

/* VENTANA MODAL (CENTRADITA Y ELEGANTE) */
.autoridad-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.autoridad-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.autoridad-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  padding: 30px;
  position: relative;
  border-top: 6px solid var(--blue-brand-primary);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #000000;
}

.auth-ficha-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.auth-cargo {
  font-size: 1.05rem;
  color: var(--blue-brand-light);
  margin: 0 0 4px;
  font-weight: 800;
}

.auth-rango {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 4px;
  font-weight: 600;
}

.auth-nombre {
  font-size: 1.3rem;
  color: var(--blue-brand-dark);
  margin: 0;
  font-weight: 800;
}

@media (max-width: 768px) {
  .map-container-relative-box {
    height: 450px;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA MIEMBROS OBSERVADORES (MIEMBROS-OBSERVADORES.HTML)
   ========================================================================== */

.observers-cards-section {
  padding: 3.5rem 2.5rem 5rem;
}

.observers-grid {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.observer-card {
  background-color: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.04);
}

.observer-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-brand-primary);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.15);
}

.obs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.obs-logo-box {
  width: 110px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.obs-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.obs-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  border: 1px solid #BAE6FD;
}

.obs-card-content {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.obs-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.obs-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.obs-card-footer {
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}

.obs-link-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.obs-link-btn:hover {
  color: #0369A1;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .observers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ESTILOS PARA LA SECCIÓN NUEVO CIALA (INSPECCIONES.HTML)
   ========================================================================== */

.ciala-modern-section {
  padding: 3.5rem 2.5rem 1rem;
}

.ciala-modern-card {
  max-width: 1350px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.15);
  padding: 3rem;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.badge-tech-pill {
  display: inline-block;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid var(--blue-brand-light);
  color: var(--blue-brand-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.ciala-app-heading {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.ciala-app-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 1rem;
}

.ciala-action-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.ciala-note-text {
  font-size: 0.85rem;
  color: #94A3B8;
  font-style: italic;
}

.ciala-card-icon-aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon-circle {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-brand-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .ciala-modern-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .ciala-card-icon-aside {
    display: none;
  }

  .ciala-action-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA APELACIONES (APELACIONES.HTML)
   ========================================================================== */

.appeal-header-flex {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.appeals-docs-section {
  padding: 3rem 2.5rem 5rem;
}

.appeals-grid {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.appeal-doc-card {
  background-color: var(--surface-white);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.04);
}

.appeal-doc-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-brand-primary);
  box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.15);
}

.appeal-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.appeal-flag-img {
  width: 54px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.appeal-country-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0;
  letter-spacing: 0.03em;
}

.appeal-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.appeal-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

.appeal-contact-notice {
  max-width: 1350px;
  margin: 2.5rem auto 0;
  background-color: #F8FAFC;
  border-left: 4px solid var(--blue-brand-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.appeal-contact-notice p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

.highlight-link {
  color: var(--blue-brand-primary);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.highlight-link:hover {
  color: #0369A1;
}

@media (max-width: 768px) {
  .appeals-grid {
    grid-template-columns: 1fr;
  }
  
  .appeal-contact-notice {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

/* ==========================================================================
   ESTILOS SUBPÁGINA ANUARIOS (ANUARIOS.HTML)
   ========================================================================== */

.yearbook-hero-frame {
  width: 100%;
  max-width: 460px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at center, #1E3A8A 0%, #0A192F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.yearbook-hero-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.yearbooks-collection-section {
  padding: 3.5rem 2.5rem 5rem;
}

.yearbooks-grid {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.yearbook-card {
  background-color: var(--surface-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.04);
}

.yearbook-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-brand-primary);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.15);
}

.yb-cover-box {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.25rem;
  background-color: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yb-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yearbook-card:hover .yb-cover-img {
  transform: scale(1.04);
}

.yb-card-content {
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.yb-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 0.35rem;
}

.yb-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.yb-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

@media (max-width: 768px) {
  .yearbooks-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ==========================================================================
   ESTILOS SUBPÁGINA DETENCIONES (DETENCIONES.HTML, 2026, 2025, 2024)
   ========================================================================== */

.detentions-section {
  padding: 3.5rem 2.5rem 5rem;
}

/* PESTAÑAS DE AÑOS */
.years-tabs-nav {
  max-width: 1350px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.year-tab-link {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition);
}

.year-tab-link:hover {
  color: var(--blue-brand-primary);
  background-color: #F8FAFC;
}

.year-tab-link.active {
  background-color: var(--blue-brand-dark);
  color: #FFFFFF;
}

/* PESTAÑAS DE TRIMESTRES */
.quarters-tabs-nav {
  max-width: 1350px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quarter-tab-btn {
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.quarter-tab-btn:hover {
  background-color: #E2E8F0;
}

.quarter-tab-btn.active {
  background-color: var(--blue-brand-primary);
  color: #FFFFFF;
  border-color: var(--blue-brand-primary);
}

/* PANELES DE TRIMESTRES */
.quarter-panel {
  display: none;
  max-width: 1350px;
  margin: 0 auto;
}

.quarter-panel.active {
  display: block;
}

/* BARRA DE DESCARGA */
.report-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quarter-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0 0 0.25rem;
}

.quarter-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   ALINEACIÓN Y TAMAÑO DE LA BANDERA EN LA TABLA (COMPACTA Y A LA IZQUIERDA)
   ========================================================================== */

/* Contenedor flexible para ubicar la bandera a la izquierda y el texto al lado */
.port-detention-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
}

/* Bandera pequeña, nítida y alineada horizontalmente */
.port-flag-top,
.styled-authorities-table td img {
  width: 22px !important;
  height: 15px !important;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-block;
  vertical-align: middle;
}

/* Agrupador de texto del lugar */
.port-text-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.port-city {
  font-weight: 500;
  text-transform: uppercase;
}

.port-country {
  font-weight: 800;
  color: var(--blue-brand-dark);
  text-transform: uppercase;
}

/* AVISO LEGAL Y RESPONSABILIDAD */
.detention-disclaimer-box {
  max-width: 1350px;
  margin: 2.5rem auto 0;
  background-color: #F8FAFC;
  border-left: 4px solid var(--blue-brand-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.disclaimer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0 0 0.35rem;
}

.disclaimer-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  text-align: justify;
}

@media (max-width: 768px) {
  .report-download-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-download-bar .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA REPORTES ANUALES (REPORTES-ANUALES.HTML)
   ========================================================================== */

/* TARJETA HERO DE MÉTRICAS ESTADÍSTICAS */
.stats-hero-card-box {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.stats-card-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-brand-light);
}

.stats-card-live {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid #10B981;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.stats-bars-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.stat-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.stat-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: height 0.5s ease;
}

.stat-bar.active {
  background: linear-gradient(to top, var(--blue-brand-primary), var(--blue-brand-light));
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

.stat-bar-col span {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
}

.stats-metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.metric-lbl {
  font-size: 0.75rem;
  color: #CBD5E1;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* LISTADO DE REPORTES */
.reports-section {
  padding: 3.5rem 2.5rem 5rem;
}

.reports-list-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-list-item {
  background-color: var(--surface-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.03);
}

.doc-list-item:hover {
  transform: translateY(-2px);
  border-color: var(--blue-brand-primary);
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.12);
}

.doc-item-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.doc-pdf-icon-box {
  width: 48px;
  height: 48px;
  background-color: #FEF2F2;
  color: #DC2626;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #FECACA;
}

.doc-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0;
}

.doc-item-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.doc-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-doc-view {
  background-color: #F8FAFC;
  color: var(--blue-brand-dark);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-doc-view:hover {
  background-color: #E2E8F0;
  color: var(--blue-brand-primary);
}

.btn-doc-download {
  background-color: var(--blue-brand-primary);
  color: #FFFFFF;
  border: 1px solid var(--blue-brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-doc-download:hover {
  background-color: var(--blue-brand-dark);
  border-color: var(--blue-brand-dark);
}

@media (max-width: 768px) {
  .doc-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA CAMPAÑAS CIC (CIC.HTML) - GRÁFICO DE DONA / TORTA
   ========================================================================== */

.cic-pie-chart-card {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pie-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.75rem;
}

.pie-card-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-brand-light);
}

.pie-card-live {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: rgba(2, 132, 199, 0.25);
  color: var(--blue-brand-light);
  border: 1px solid var(--blue-brand-light);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.pie-visual-container {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.svg-pie-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.donut-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  border-radius: 50%;
}

.donut-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.donut-label {
  font-size: 0.65rem;
  color: #94A3B8;
  text-transform: uppercase;
  margin-top: 2px;
}

.pie-legend-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-blue { background-color: var(--blue-brand-primary); }
.dot-red { background-color: #EF4444; }
.dot-cyan { background-color: var(--blue-brand-light); }

.legend-text {
  font-size: 0.82rem;
  color: #E2E8F0;
  font-weight: 600;
  line-height: 1.3;
}

.pie-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
  text-align: center;
}

.pie-footer-text {
  font-size: 0.75rem;
  color: #94A3B8;
  font-style: italic;
}

@media (max-width: 768px) {
  .pie-visual-container {
    flex-direction: column;
    text-align: center;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA TRANSPARENCIA E INTEGRIDAD (TRANSPARENCIA.HTML)
   ========================================================================== */

.transparency-hero-box {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.transp-shield-circle {
  width: 78px;
  height: 78px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid var(--blue-brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-brand-light);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.3);
}

.transp-shield-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shield-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

.shield-subtitle {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.transp-block-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.doc-item-highlight {
  border-left: 4px solid var(--blue-brand-primary);
  background: linear-gradient(to right, #F8FAFC 0%, #FFFFFF 100%);
}

.icon-box-blue {
  background-color: var(--blue-sky-bg) !important;
  color: var(--blue-brand-primary) !important;
  border: 1px solid #BAE6FD !important;
}

.transp-contact-card {
  background-color: #F8FAFC;
  border-left: 4px solid var(--blue-brand-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.transp-contact-content {
  flex-grow: 1;
}

.transp-contact-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 1.25rem;
}

.transp-contact-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .transparency-hero-box {
    flex-direction: column;
    text-align: center;
  }

  .transp-contact-card {
    flex-direction: column;
    padding: 1.25rem;
  }

  .transp-contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .transp-contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   ESTILOS PARA EL MÓDULO NIR (INSPECCIONES.HTML)
   ========================================================================== */

.nir-detailed-section {
  padding: 1rem 2.5rem 5rem;
}

.nir-main-card {
  margin-bottom: 3rem;
}

.nir-title-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-nir-traffic {
  background-color: var(--blue-sky-bg);
  color: var(--blue-brand-primary);
  border: 1px solid #BAE6FD;
}

.nir-lead-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.nir-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.nir-subheading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* GRILLA DE PERFILES (IMÁGENES DE ALTO / MEDIANO / BAJO RIESGO) */
.nir-profiles-container {
  max-width: 1350px;
  margin: 0 auto 3.5rem;
}

.nir-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nir-profile-card {
  background-color: var(--surface-white);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.04);
}

.card-low-risk { border-left: 5px solid #10B981; }
.card-std-risk { border-left: 5px solid #F59E0B; }
.card-high-risk { border-left: 5px solid #EF4444; }

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.traffic-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background-color: #10B981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.dot-yellow { background-color: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.dot-red { background-color: #EF4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

.profile-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0;
}

.profile-img-frame {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #F8FAFC;
}

.nir-diagram-img {
  width: 100%;
  height: auto;
  display: block;
}

/* TABLA DE PRIORIDADES NIR */
.nir-priorities-container {
  max-width: 1350px;
  margin: 0 auto;
}

.text-status-green { color: #059669; }
.text-status-yellow { color: #D97706; }
.text-status-red { color: #DC2626; }

.traffic-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.badge-green { background-color: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-yellow { background-color: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-red { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ==========================================================================
   ESTILOS SUBPÁGINA CONTACTO SECRETARÍA (CONTACTO-SECRETARIA.HTML)
   ========================================================================== */

.contact-main-section {
  padding: 3.5rem 2.5rem 5rem;
}

.contact-grid-layout {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-cards-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background-color: var(--surface-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.03);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--blue-brand-primary);
  box-shadow: 0 8px 25px -5px rgba(2, 132, 199, 0.12);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1;
}

.contact-info-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0 0 0.35rem;
}

.contact-info-text p {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
}

.contact-info-text .primary-text {
  font-weight: 700;
  color: var(--blue-brand-primary);
}

.contact-info-text a {
  color: var(--blue-brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-text a:hover {
  text-decoration: underline;
}

/* BOTÓN WHATSAPP INTERACTIVO */
.whatsapp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.whatsapp-chat-btn {
  background-color: #25D366 !important;
  color: #FFFFFF !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
}

.whatsapp-chat-btn:hover {
  background-color: #20BA5A !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
}

/* COLUMNA DEL MAPA DE GOOGLE MAPS */
.contact-map-column {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.map-frame-box {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.08);
  background-color: #F8FAFC;
}

@media (max-width: 992px) {
  .contact-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-map-column {
    min-height: 400px;
  }
  
  .map-frame-box {
    min-height: 400px;
  }
}
/* ==========================================================================
   ESTILOS SUBPÁGINA CONTACTOS OPERATIVOS (CONTACTOS-OPERATIVOS.HTML)
   ========================================================================== */

.ops-cards-section {
  padding: 3.5rem 2.5rem 5rem;
}

.ops-cards-grid {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.op-card {
  background-color: var(--surface-white);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.04);
  transition: var(--transition);
}

.op-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-brand-primary);
  box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.15);
}

.op-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.op-country-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  letter-spacing: 0.04em;
}

.op-flag {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.op-crest {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 1px;
}

.op-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.op-titular-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.op-detail {
  font-size: 0.86rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.op-detail strong {
  color: var(--text-muted);
  font-weight: 600;
}

.op-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
}

.op-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

.op-phone-link:hover {
  color: var(--blue-brand-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ops-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ESTILOS DEFINITIVOS DE LA VENTANA EMERGENTE (MODAL) Y NOTICIAS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: #ffffff !important;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 25, 47, 0.75);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--blue-brand-dark);
}

.modal-img-container {
  width: 100%;
  height: 300px;
  background: #0f172a;
  overflow: hidden;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  line-height: 1.35;
  margin: 0;
}

.modal-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin: 0;
  white-space: pre-line;
  text-align: justify;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   MÓDULO DE NOTICIAS — Grilla pública, modal, ABM y home
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

/* --- Grilla pública de noticias --- */
.noticias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .noticias-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.noticias-card {
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.noticias-card:hover,
.noticias-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.12);
  border-color: var(--blue-brand-primary);
  outline: none;
}

.noticias-card:focus-visible {
  outline: 2px solid var(--blue-brand-primary);
  outline-offset: 2px;
}

.noticias-card-img-box {
  width: 100%;
  height: 180px;
  background: var(--blue-brand-dark);
  overflow: hidden;
}

.noticias-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noticias-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.noticias-card-date {
  font-size: 0.8rem;
  color: var(--blue-brand-primary);
  font-weight: 700;
}

.noticias-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
}

.noticias-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.noticias-empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 3rem 1rem;
}

/* --- Modal de detalle --- */
.noticias-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.noticias-modal-card {
  background: var(--surface-white);
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.noticias-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 25, 47, 0.75);
  color: var(--surface-white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.noticias-modal-close-btn:hover {
  background: var(--blue-brand-dark);
}

.noticias-modal-img-container {
  width: 100%;
  height: 280px;
  background: var(--blue-brand-dark);
  overflow: hidden;
}

.noticias-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noticias-modal-content-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-white);
}

.noticias-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  line-height: 1.35;
  margin: 0;
}

.noticias-modal-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin: 0;
  white-space: pre-line;
}

/* --- Modal de confirmación de borrado --- */
.noticias-delete-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.75);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.noticias-delete-modal-card {
  background: var(--surface-white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}

.noticias-delete-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-brand-dark);
  margin: 0 0 0.5rem;
}

.noticias-delete-modal-text {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.noticias-delete-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* --- Panel ABM --- */
.admin-control-section {
  background: var(--blue-sky-bg);
  border-bottom: 2px solid var(--blue-brand-primary);
  padding: 2rem 0;
}

.admin-panel-box {
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.abm-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-subbox {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.admin-input,
.admin-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--blue-brand-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.admin-textarea {
  min-height: 100px;
  resize: vertical;
}

.text-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin: 0;
}

.noticias-abm-toolbar {
  margin-bottom: 1rem;
}

.noticias-abm-form-wrapper {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.noticias-abm-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.noticias-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .noticias-form-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.noticias-form-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .noticias-form-row-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.noticias-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.noticias-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.noticias-form-group-switch {
  justify-content: flex-end;
}

.noticias-switch-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.noticias-switch-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-brand-primary);
}

.form-field-error {
  color: #dc2626;
  font-size: 0.8rem;
}

.noticias-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.noticias-table-wrapper {
  overflow-x: auto;
}

.noticias-abm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.noticias-abm-table th,
.noticias-abm-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.noticias-abm-table th {
  background: var(--blue-sky-bg);
  color: var(--blue-brand-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.noticias-abm-table tr:hover td {
  background: var(--bg-main);
}

.noticias-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.noticias-status-published {
  background: #dcfce7;
  color: #166534;
}

.noticias-status-hidden {
  background: #fee2e2;
  color: #991b1b;
}

.noticias-abm-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-action {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit {
  background: var(--blue-brand-primary);
  color: var(--surface-white);
}

.btn-edit:hover {
  background: var(--blue-brand-dark);
}

.btn-toggle {
  background: var(--blue-sky-bg);
  color: var(--blue-brand-dark);
  border: 1px solid var(--border-color);
}

.btn-toggle:hover {
  border-color: var(--blue-brand-primary);
  color: var(--blue-brand-primary);
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
}

.btn-delete:hover {
  background: #dc2626;
  color: var(--surface-white);
}

.abm-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

/* --- Home: cards dinámicas con imagen --- */
.index-news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.index-news-card {
  height: 100%;
}

.index-news-img-box {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--blue-brand-dark);
  margin: -1.75rem -1.75rem 1rem;
  width: calc(100% + 3.5rem);
}

.index-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-display-section {
  padding: 3rem 0 4rem;
}

/* --- Drag & drop de imágenes --- */
.noticias-form-group-image {
  grid-column: span 1;
}

.noticias-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-main);
  transition: var(--transition);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.noticias-dropzone:hover,
.noticias-dropzone:focus,
.noticias-dropzone-active {
  border-color: var(--blue-brand-primary);
  background: var(--blue-sky-bg);
  outline: none;
}

.noticias-dropzone-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}

.noticias-dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.noticias-dropzone-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.noticias-dropzone-has-image .noticias-dropzone-hint {
  display: none;
}

.noticias-form-section-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.noticias-textarea-resumen {
  min-height: 80px;
}

.noticias-textarea-cuerpo {
  min-height: 220px;
  font-family: var(--font-family);
}

/* --- Gestión de usuarios --- */
.noticias-users-section {
  background: var(--blue-sky-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.noticias-user-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.svg-pie-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.donut-center-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.graphic-indicator-dot {
  width: 6px;
  height: 6px;
  background-color: #0284C7;
  border-radius: 50%;
}

/* Contenedor del gráfico cartesiano */
.svg-cartesian-wrapper {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 10px;
}

.cartesian-chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Animación de trazo para que la línea parezca que va subiendo */
@keyframes drawLine {
  0% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.animated-trend-line {
  stroke-dasharray: 200;
  animation: drawLine 3s ease-in-out infinite alternate;
}

/* Efecto de pulso en el último punto del gráfico */
@keyframes pointPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-point {
  transform-origin: center;
  animation: pointPulse 1.8s infinite ease-in-out;
}