/* ==========================================================================
   SISTEMA DE DISEÑO - UNIVERSIDAD DE CUNDINAMARCA (GOBIERNO DE DATOS)
   Hoja de estilos global, temas y componentes visuales
   ========================================================================== */

/* ==========================================
   VARIABLES DE SISTEMA (CSS CUSTOM PROPERTIES)
   Paleta de colores oficial, tipografías y efectos visuales
   ========================================== */
:root {
  /* Paleta Institucional Principal */
  --uc-yellow-1: #FBE122;
  --uc-yellow-2: #DAAA00;
  --uc-green-1: #007B3E; /* Verde Principal */
  --uc-green-2: #00482B; /* Verde Oscuro */
  --uc-orange: #F7931E;
  --uc-green-light-1: #79C000;
  --uc-green-light-2: #91C256;
  --uc-turquoise: #00A99D;
  --uc-gray: #4D4D4D;

  /* Gradientes Predefinidos */
  --uc-gradient-green-primary: linear-gradient(135deg, #007B3E, #79C000);
  --uc-gradient-green-dark: linear-gradient(135deg, #00482B, #007B3E);
  --uc-gradient-turquoise: linear-gradient(135deg, #00A99D, #79C000);
  --uc-gradient-green-to-light: linear-gradient(90deg, #007B3E, #79C000);
  --uc-gradient-dark-to-primary: linear-gradient(90deg, #00482B, #007B3E);

  /* Escala de Grises y Neutros */
  --uc-white: #FFFFFF;
  --uc-gray-50: #F9FAFB;
  --uc-gray-100: #F3F4F6;
  --uc-gray-200: #E5E7EB;
  --uc-gray-300: #D1D5DB;
  --uc-gray-400: #9CA3AF;
  --uc-gray-500: #6B7280;
  --uc-gray-600: #4D4D4D;
  --uc-gray-700: #374151;
  --uc-gray-800: #1F2937;
  --uc-gray-900: #111827;
  --uc-black: #000000;
  --uc-cream: #f6f3eb;
  --uc-offwhite: #fbfbf9;

  /* Estados Semánticos */
  --uc-error: #DC2626;
  --uc-warning: #F59E0B;
  --uc-success: #007B3E;
  --uc-info: #00A99D;

  /* Mapeo de Colores de Fondo */
  --uc-bg-primary: var(--uc-green-1);
  --uc-bg-secondary: var(--uc-green-2);
  --uc-bg-light: var(--uc-gray-50);
  --uc-bg-white: var(--uc-white);
  --uc-bg-cream: var(--uc-cream);
  --uc-bg-offwhite: var(--uc-offwhite);


  /* Tipografía */
  --uc-font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --uc-font-secondary: 'Century Gothic', 'Segoe UI', sans-serif;
  --uc-font-serif: 'Times New Roman', Georgia, serif;

  /* Sistema de Bordes y Sombras */
  --uc-radius-sm: 8px;
  --uc-radius-md: 12px;
  --uc-radius-lg: 16px;
  --uc-radius-xl: 20px;
  --uc-radius-full: 9999px;
  --uc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --uc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --uc-shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  --uc-shadow-xl: 0 12px 28px rgba(0, 0, 0, 0.15);

  /* Transiciones y Capas Z */
  --uc-transition-fast: 0.2s ease;
  --uc-transition-normal: 0.3s ease;
  --uc-transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --uc-z-base: 1;
  --uc-z-nav: 1050;
  --uc-z-modal: 2000;

  /* Badge CTA - Posicionamiento en Footer */
  --badge-size: clamp(100px, 12vw, 140px);
  --badge-border-width: 6px;
  --badge-offset-x: calc(max(1.5rem, calc(50% - 700px + 1.5rem)) + 60px);  /* Movido más a la izquierda */
  --badge-z-index: 20;
  --footer-section-gap: 0;                 /* Espacio entre prefooter y footer */
}

/* ==========================================
   RESET Y NORMALIZACIÓN GLOBAL
   ========================================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--uc-font-primary);
  background: var(--uc-bg-offwhite);
  min-height: 100vh;
  color: var(--uc-gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--uc-font-primary);
  font-weight: 700;
}

h2, h3 {
  opacity: 0;
  animation: slideInFromLeft 0.6s ease forwards;
}

/* ==========================================
   ANIMACIONES CLAVE
   Efectos de entrada y transición para elementos de UI
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================
   COMPONENTE: BARRA DE NAVEGACIÓN (GLASSMORPHISM)
   Menú flotante con efecto de desenfoque y transparencia
   ========================================== */
.nav-envoltura {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1500px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--uc-z-nav);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-radius: var(--uc-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-contenedor {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logotipo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logotipo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-texto-logo {
  display: flex;
  flex-direction: column;
}

.nav-subtitulo-logo {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  font-weight: 500;
  color: var(--uc-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nav-titulo-logo {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 700;
  color: var(--uc-green-1);
  text-transform: uppercase;
}

.nav-enlaces {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-enlace-item {
  background: transparent;
  border: none;
  color: var(--uc-gray-600);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--uc-radius-lg);
  cursor: pointer;
  transition: all var(--uc-transition-smooth);
}

.nav-enlace-item:hover {
  color: var(--uc-green-1);
  background: rgba(0, 123, 62, 0.06);
}

.nav-enlace-item.activo {
  color: var(--uc-green-1);
  background: rgba(0, 123, 62, 0.1);
  font-weight: 600;
}

.nav-enlace-item.nav-cerrarSesion {
  color: #991B1B;
  background: #fceeee;
}

.nav-enlace-item.nav-cerrarSesion:hover {
  background: rgba(220, 38, 38, 0.15);
}

.nav-boton-usuario {
  width: 40px;
  height: 40px;
  border-radius: var(--uc-radius-md);
  background: linear-gradient(135deg, var(--uc-green-light-1), var(--uc-yellow-1));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  transition: all var(--uc-transition-smooth);
  box-shadow: 0 2px 10px rgba(121, 192, 0, 0.3);
}

.nav-boton-usuario:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(121, 192, 0, 0.4);
}

/* Control del Menú Móvil */
.nav-boton-movil {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--uc-radius-md);
  cursor: pointer;
  color: var(--uc-gray-700);
  font-size: 1.25rem;
  transition: all var(--uc-transition-fast);
}

.nav-boton-movil:hover {
  background: rgba(0, 123, 62, 0.1);
  color: var(--uc-green-1);
}

.nav-boton-movil.menu-abierto {
  background: var(--uc-green-1);
  color: var(--uc-white);
}

.nav-boton-movil.menu-abierto:hover {
  background: var(--uc-green-2);
}

.nav-menu-movil {
  background: var(--uc-white);
  border-top: 1px solid var(--uc-gray-200);
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-enlace-movil {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  color: var(--uc-gray-800);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-enlace-movil i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--uc-gray-500);
  transition: all 0.2s ease;
}

.nav-enlace-movil span {
  flex: 1;
}

.nav-enlace-movil:hover {
  background: var(--uc-green-1);
  color: var(--uc-white);
  border-left-color: var(--uc-yellow-1);
}

.nav-enlace-movil:hover i {
  color: var(--uc-white);
}

.nav-enlace-movil:active {
  background: var(--uc-green-2);
  transform: scale(0.98);
}

.nav-enlace-movil.activo {
  background: linear-gradient(90deg, rgba(0, 123, 62, 0.1) 0%, transparent 100%);
  color: var(--uc-green-1);
  border-left-color: var(--uc-green-1);
  font-weight: 600;
}

.nav-enlace-movil.activo i {
  color: var(--uc-green-1);
}

/* ==========================================
   COMPONENTE: HERO BANNER
   Cabecera principal con imagen de fondo adaptativa
   ========================================== */
.banner-portada {
  background: url('../assets/imagenes/Banner.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  height: 420px;
}

.banner-portada::before {
  display: none;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA (MEDIA QUERIES)
   Ajustes para navegación y cabecera en distintos dispositivos
   ========================================== */
@media (max-width: 1024px) {
  .nav-envoltura {
    width: calc(100% - 48px);
  }
  
  .nav-enlaces {
    gap: 2px;
  }
  
  .nav-enlace-item {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .nav-envoltura {
    top: 16px;
    width: calc(100% - 32px);
    border-radius: var(--uc-radius-xl);
  }
  
  .nav-contenedor {
    height: 56px;
    padding: 0 16px;
  }
  
  .nav-enlaces {
    display: none;
  }
  
  .nav-boton-usuario {
    display: none;
  }
  
  .nav-boton-movil {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu-movil {
    border-radius: 0 0 var(--uc-radius-xl) var(--uc-radius-xl);
    background: var(--uc-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .nav-enlace-movil {
    padding: 16px 24px;
  }
  
  .nav-enlace-movil:hover {
    background: var(--uc-green-1);
    color: var(--uc-white);
  }
  
  .banner-portada {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .nav-envoltura {
    top: 12px;
    width: calc(100% - 24px);
  }
  
  .nav-logotipo img {
    height: 32px;
  }
  
  /* .nav-titulo-logo tamaño manejado por clamp() */
  
  .banner-portada {
    height: 300px;
  }
}

/* Clases de utilidad para ocultar elementos antiguos */
.banner-section {
  display: none;
}

.nav-wrapper {
  display: none;
}

.contenedor-vista {
  display: none;
}

.contenedor-vista.activo {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

/* ==========================================
   COMPONENTE: TARJETAS DE ESTADÍSTICAS MODERNAS
   Visualización de indicadores clave
   ========================================== */
.tarjeta-estadistica-moderna {
  background: var(--uc-white);
  border-radius: var(--uc-radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--uc-transition-smooth);
  box-shadow: var(--uc-shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.tarjeta-estadistica-moderna::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--uc-gradient-green-to-light);
}

.tarjeta-estadistica-moderna.blue::before {
  background: linear-gradient(90deg, var(--uc-turquoise), var(--uc-green-light-1));
}

.tarjeta-estadistica-moderna.amber::before {
  background: linear-gradient(90deg, var(--uc-orange), var(--uc-yellow-2));
}

/* Retraso secuencial para animaciones de entrada */
.tarjeta-estadistica-moderna:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-estadistica-moderna:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-estadistica-moderna:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-estadistica-moderna:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-estadistica-moderna:nth-child(5) { animation-delay: 0.5s; }
.tarjeta-estadistica-moderna:nth-child(6) { animation-delay: 0.6s; }
.tarjeta-estadistica-moderna:nth-child(7) { animation-delay: 0.7s; }

.tarjeta-estadistica-moderna:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--uc-shadow-xl);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--uc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.valor-estadistica {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--uc-font-primary);
}

.etiqueta-estadistica {
  color: #4B5563 !important;
  font-weight: 600 !important;
}

/* ==========================================
   COMPONENTE: TARJETAS DE SEDES Y NIVELES ACADÉMICOS
   ========================================== */
.sede-card {
  background: var(--uc-white);
  border-radius: var(--uc-radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--uc-transition-normal);
  box-shadow: var(--uc-shadow-sm);
  border-left: 4px solid var(--uc-green-1);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.sede-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--uc-shadow-lg);
}

.sede-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--uc-gray-800);
  margin-bottom: 8px;
}

.sede-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--uc-green-1);
}

.nivel-card {
  background: var(--uc-white);
  border-radius: var(--uc-radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--uc-transition-normal);
  box-shadow: var(--uc-shadow-md);
  border: 2px solid;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.nivel-card.pregrado {
  border-color: var(--uc-green-1);
}

.nivel-card.posgrado {
  border-color: var(--uc-turquoise);
}

.nivel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--uc-shadow-xl);
}

.nivel-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.nivel-card.pregrado .nivel-title {
  color: var(--uc-green-1);
}

.nivel-card.posgrado .nivel-title {
  color: var(--uc-turquoise);
}

.nivel-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
}

.nivel-valor-estadistica {
  font-size: 2rem;
  font-weight: 800;
}

.nivel-etiqueta-estadistica {
  color: #4B5563 !important;
  font-weight: 600 !important;
}

.text-gray-500 {
  color: #6B7280 !important;
}

/* ==========================================
   COMPONENTE: VISUALIZACIÓN DE MAPAS Y GRÁFICOS
   Estilos para Leaflet y Chart.js
   ========================================== */
.chart-container {
  position: relative;
  height: 320px;
}

#mapa { 
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: var(--uc-radius-md);
  box-shadow: var(--uc-shadow-md);
}

.leaflet-container {
  border-radius: var(--uc-radius-md);
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.leaflet-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  max-width: 100% !important;
}

#botonPantallaCompletaMapa {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--uc-white);
  padding: 8px 12px;
  border-radius: var(--uc-radius-sm);
  border: 2px solid var(--uc-gray-200);
  cursor: pointer;
  z-index: 1000;
  transition: all var(--uc-transition-normal);
  box-shadow: var(--uc-shadow-sm);
}

#botonPantallaCompletaMapa:hover {
  background: var(--uc-green-1) !important;
  color: var(--uc-white) !important;
  border-color: var(--uc-green-1) !important;
  transform: scale(1.05);
}

.tooltip-personalizado {
  background: #ffffff;
  border: 2px solid #16a34a;
  border-radius: 8px;
  padding: 9px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  /* Evita que el propio tooltip intercepte eventos del mouse y rompa el hover */
  pointer-events: none;
}

.tooltip-personalizado::before {
  border-top-color: #16a34a;
}

/* Tooltip propio montado fuera del overflow:hidden del mapa.
   Posicionado con JS (containerPoint): nunca queda cortado por el borde. */
.tooltip-mapa-custom {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 2000;
  transform: translateX(-50%) translateY(-100%);
  white-space: nowrap;
}

/* Flecha apuntando hacia el cursor (abajo) */
.tooltip-mapa-custom::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #16a34a;
}
.tooltip-mapa-custom::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -2px;
  border: 6px solid transparent;
  border-top-color: #ffffff;
  z-index: 1;
}

/* Contenedor scroll del gráfico de programas.
   El inner div (Chart.js) crece libremente; este wrapper acota la vista. */
.grafico-scroll-externo {
  /* Sin overflow explícito aquí: JS lo gestiona dinámicamente */
  border-radius: 4px;
  /* Scrollbar delgada estilo marca */
  scrollbar-width: thin;
  scrollbar-color: #86efac #f8fafc;
}
.grafico-scroll-externo::-webkit-scrollbar {
  width: 5px;
}
.grafico-scroll-externo::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}
.grafico-scroll-externo::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 4px;
}
.grafico-scroll-externo::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

/* Escala sutil al hacer hover sobre el icono del marcador */
.marcador-personalizado {
  transition: transform 0.18s ease;
}
.marcador-personalizado:hover {
  transform: scale(1.18);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--uc-radius-md);
  box-shadow: var(--uc-shadow-md);
}

.leaflet-popup-tip {
  background: var(--uc-white);
}

.leaflet-interactive {
  transition: all var(--uc-transition-normal);
}

.leaflet-interactive:hover {
  cursor: pointer;
}

/* Regla consolidada — ver ".fuente-datos" al final del archivo */

/* Selector personalizado de programas (reemplaza <select> nativo) */
.selector-programas {
  position: relative;
  display: inline-block;
}

.selector-programas-boton {
  background: #FFFFFF;
  color: #1F2937;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selector-programas-boton:hover {
  border-color: #007B3E;
  background: rgba(0, 123, 62, 0.05);
}

.selector-programas-flecha {
  font-size: 10px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.selector-programas.abierto .selector-programas-flecha {
  transform: rotate(180deg);
}

.selector-programas-opciones {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: none;
  z-index: 50;
  min-width: 100%;
}

.selector-programas.abierto .selector-programas-opciones {
  display: block;
}

.selector-programas-opcion {
  display: block;
  width: 100%;
  padding: 9px 16px;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.selector-programas-opcion:hover {
  background: #ebf4f0;
  color: #005C2E;
}

.selector-programas-opcion.activa {
  background: #007B3E;
  color: #ffffff;
  font-weight: 600;
}

#graficoProgramas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
}

canvas {
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
}

/* ==========================================
   COMPONENTE: SECCIÓN DE SISTEMAS DE GESTIÓN
   Grid responsivo para enlaces externos
   ========================================== */
.sistemas-gestion-section {
  background: var(--uc-white);
  border-radius: var(--uc-radius-xl);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--uc-shadow-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.sistema-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid var(--uc-gray-200);
  border-radius: var(--uc-radius-md);
  transition: all var(--uc-transition-normal);
  background: var(--uc-gray-50);
  text-decoration: none;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.sistema-card:hover {
  border-color: var(--uc-green-1);
  box-shadow: 0 4px 12px rgba(0, 123, 62, 0.15);
  transform: translateY(-4px);
}

.sistema-card img {
  width: 160px;
  height: 128px;
  object-fit: contain;
  transition: transform var(--uc-transition-normal);
}

.sistema-card:hover img {
  transform: scale(1.05);
}

/* ==========================================
   COMPONENTE: TARJETA DE DASHBOARD
   Visualización de tableros de control disponibles
   ========================================== */
/* ── Tarjeta Tablero — diseño glassmorphism institucional ── */
.tarjeta-tablero {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(121, 192, 1, 0.20);
  box-shadow: 0 4px 20px rgba(15, 49, 24, 0.09), 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tarjeta-tablero::before { display: none; }

.tarjeta-tablero:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 48px rgba(15, 49, 24, 0.16), 0 4px 12px rgba(121,192,1,0.14);
  border-color: rgba(121, 192, 1, 0.40);
}

/* Cabecera con gradiente aurora verde */
.tarjeta-tablero-cabecera {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, #0f3118 0%, #005c2e 45%, #3d7a00 78%, #79c001 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.tarjeta-tablero-cabecera::before {
  content: '';
  position: absolute;
  top: -30%; left: -15%;
  width: 55%; height: 160%;
  background: radial-gradient(ellipse, rgba(121,192,1,0.28) 0%, transparent 68%);
  pointer-events: none;
}

.tarjeta-tablero-cabecera::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -10%;
  width: 50%; height: 130%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Icono hexagonal */
.tarjeta-tablero-icono-hex {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: linear-gradient(135deg, #0f3118 0%, #3d7a00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.tarjeta-tablero:hover .tarjeta-tablero-icono-hex {
  transform: scale(1.1) rotate(6deg);
}

/* Cuerpo de la tarjeta */
.tarjeta-tablero-cuerpo {
  padding: 1.1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tarjeta-tablero-titulo {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f3118;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}

/* Botón nuevo */
.boton-tablero-nuevo {
  width: 100%;
  margin-top: auto;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: linear-gradient(135deg, #005c2e, #007B3E);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--uc-font-primary);
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

.boton-tablero-nuevo:hover {
  background: linear-gradient(135deg, #007B3E, #5a9500);
  box-shadow: 0 6px 18px rgba(121,192,1,0.38);
  transform: translateY(-1px);
}

.metadatos-tablero {
  font-size: 11px;
  color: var(--uc-gray-600);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--uc-gray-100);
}

.metadatos-tablero strong {
  color: var(--uc-gray-700);
}

.item-metadatos-tablero {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.item-metadatos-tablero i {
  margin-top: 2px;
  color: var(--uc-green-1);
}

/* ==========================================
   BOTONES E INTERACCIÓN
   Estilos para acciones principales y secundarias
   ========================================== */
.boton-primario {
  background: var(--uc-gradient-green-primary);
  color: var(--uc-white);
  padding: 10px 24px;
  border-radius: var(--uc-radius-md);
  font-weight: 600;
  transition: all var(--uc-transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--uc-font-primary);
}

.boton-primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 62, 0.3);
}

.boton-secundario {
  background: linear-gradient(135deg, var(--uc-turquoise), var(--uc-green-light-1));
  color: var(--uc-white);
  padding: 10px 24px;
  border-radius: var(--uc-radius-md);
  font-weight: 600;
  transition: all var(--uc-transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--uc-font-primary);
}

.boton-secundario:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 169, 157, 0.3);
}

.boton-csv {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: var(--uc-white);
  padding: 10px 24px;
  border-radius: var(--uc-radius-md);
  font-weight: 600;
  transition: all var(--uc-transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--uc-font-primary);
}

.boton-csv:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.boton-descargar-csv {
  background: var(--uc-gradient-green-primary);
  color: var(--uc-white);
  padding: 12px 28px;
  border-radius: var(--uc-radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--uc-transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--uc-font-primary);
  box-shadow: 0 4px 12px rgba(0, 123, 62, 0.2);
}

.boton-descargar-csv:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 62, 0.35);
  background: var(--uc-gradient-green-dark);
}

.boton-descargar-csv:active {
  transform: translateY(0);
}

/* ==========================================
   COMPONENTE: LOGIN Y AUTENTICACIÓN
   ========================================== */
.tarjeta-acceso {
  background: var(--uc-white);
  border-radius: var(--uc-radius-xl);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 0 auto;
}

/* ==========================================
   ESTRUCTURA DE MACROPROCESOS Y ÁREAS
   Organización jerárquica de contenidos colapsables
   ========================================== */
.seccion-macroproceso {
  margin-bottom: 28px;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.encabezado-macroproceso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(15, 49, 24, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.encabezado-macroproceso:hover {
  background: none;
  filter: brightness(1.07);
  box-shadow: 0 10px 30px rgba(15, 49, 24, 0.28), 0 3px 8px rgba(0, 0, 0, 0.10);
}

/* Gradiente de fondo del header por tipo de macroproceso */
.seccion-macroproceso.estrategico .encabezado-macroproceso {
  background: linear-gradient(135deg, #2d5a00 0%, #4e8c00 55%, #79c001 100%);
}
.seccion-macroproceso.misional .encabezado-macroproceso {
  background: linear-gradient(135deg, #003828 0%, #005c2e 55%, #007B3E 100%);
}
.seccion-macroproceso.apoyo .encabezado-macroproceso {
  background: linear-gradient(135deg, #0f3118 0%, #005c2e 55%, #3d7a00 100%);
}
.seccion-macroproceso.seguimiento .encabezado-macroproceso {
  background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4a 55%, #52a86e 100%);
}

.titulo-macroproceso {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.icono-macroproceso {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.icono-colapsar {
  font-size: 16px;
  transition: transform var(--uc-transition-normal);
  color: #ffffff;
}

.icono-colapsar.expandido {
  transform: rotate(180deg);
}

.contenido-macroproceso {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease,
              opacity 0.3s ease;
  padding: 0 12px;
  opacity: 0;
  background: rgba(248, 253, 242, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(121, 192, 1, 0.16);
  border-radius: 16px;
  margin-top: 8px;
  box-shadow: 0 4px 18px rgba(15, 49, 24, 0.07), inset 0 1px 0 rgba(255,255,255,0.8);
}

.contenido-macroproceso.expandido {
  max-height: 5000px;
  padding: 20px;
  opacity: 1;
}

/* Subsecciones de Área */
.area-subsection {
  margin-top: 20px;
  padding: 16px;
  background: var(--uc-gray-50);
  border-radius: var(--uc-radius-md);
}

.area-subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--uc-gray-700);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--uc-gray-200);
}

.tarjeta-area {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 14px rgba(15, 49, 24, 0.07), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(121, 192, 1, 0.16);
  transition: all var(--uc-transition-smooth);
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.tarjeta-area:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(15, 49, 24, 0.14), 0 2px 8px rgba(121,192,1,0.12);
  border-color: rgba(121, 192, 1, 0.38);
}

.encabezado-tarjeta-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icono-tarjeta-area {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform var(--uc-transition-normal), box-shadow var(--uc-transition-normal);
  color: #ffffff;
}

.tarjeta-area:hover .icono-tarjeta-area {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 6px 18px rgba(15, 49, 24, 0.22);
}

/* Gradientes sólidos por tipo */
.icono-tarjeta-area.estrategico {
  background: linear-gradient(135deg, #3d7a00, #79c001);
}

.icono-tarjeta-area.misional {
  background: linear-gradient(135deg, #003828, #007B3E);
}

.icono-tarjeta-area.apoyo {
  background: linear-gradient(135deg, #0f3118, #3d7a00);
}

.icono-tarjeta-area.seguimiento {
  background: linear-gradient(135deg, #1a4d2e, #52a86e);
}

.info-tarjeta-area {
  flex: 1;
}

.titulo-tarjeta-area {
  font-size: 18px;
  font-weight: 700;
  color: var(--uc-gray-800);
  margin-bottom: 4px;
}

.subtitulo-tarjeta-area {
  font-size: 13px;
  color: var(--uc-gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.insignia-tarjeta-area {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf7db;
  border: 1px solid #c5e68a;
  padding: 3px 10px;
  border-radius: var(--uc-radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #003828;
}

.expandir-tarjeta-area {
  font-size: 20px;
  color: var(--uc-gray-400);
  transition: transform var(--uc-transition-normal);
}

.tarjeta-area.expandido .expandir-tarjeta-area {
  transform: rotate(180deg);
}

.contenedor-tableros-area {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
}

.contenedor-tableros-area.expandido {
  max-height: 3000px;
  padding: 16px 0 4px;
  margin-top: 12px;
  border-top: 1px solid rgba(121, 192, 1, 0.14);
}

/* ==========================================
   Visualización de dashboards con panel lateral informativo
   ========================================== */
body.modal-abierto {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.fondo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--uc-z-modal);
  padding: 20px;
  overflow: hidden;
}

.fondo-modal.activo {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-contenido-mejorado {
  background: var(--uc-white);
  border-radius: var(--uc-radius-xl);
  width: 95vw;
  height: 90vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.encabezado-modal-tablero {
  background: linear-gradient(135deg, var(--uc-green-1), var(--uc-green-2));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.encabezado-modal-tablero * {
  color: #FFFFFF !important;
}

.cuerpo-modal-tablero {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  background: var(--uc-gray-50);
  min-height: 0;
}

.envoltura-iframe-tablero {
  flex: 1;
  display: flex;
  position: relative;
  transition: all var(--uc-transition-smooth);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.contenedor-iframe-tablero {
  width: 100%;
  height: 100%;
  background: var(--uc-white);
  border-radius: var(--uc-radius-md);
  overflow: hidden;
  position: relative;
}

.contenedor-iframe-tablero iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.boton-panel-info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--uc-green-1);
  color: var(--uc-white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--uc-shadow-lg);
  transition: all var(--uc-transition-normal);
  z-index: 10;
}

.boton-panel-info:hover {
  background: var(--uc-green-2);
  transform: scale(1.1);
  box-shadow: var(--uc-shadow-xl);
}

.panel-info-tablero {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--uc-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.panel-info-tablero.animando {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-info-tablero.expandido {
  width: 600px;
}

.encabezado-panel-info {
  background: var(--uc-gradient-green-primary);
  color: var(--uc-white);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.encabezado-panel-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--uc-white);
}

.cerrar-panel-info {
  background: transparent;
  border: none;
  color: var(--uc-white);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: all var(--uc-transition-fast);
  border-radius: var(--uc-radius-sm);
}

.cerrar-panel-info:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contenido-panel-info {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.seccion-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--uc-gray-200);
}

.seccion-info:last-child {
  border-bottom: none;
}

.seccion-info h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--uc-green-1);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seccion-info p {
  font-size: 0.875rem;
  color: var(--uc-gray-700);
  line-height: 1.6;
  margin: 0;
}

.insignia-estado {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--uc-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insignia-estado.estado-activo {
  background: rgba(0, 123, 62, 0.15);
  color: var(--uc-green-1);
  border: 2px solid var(--uc-green-1);
}

.insignia-estado.estado-inactivo {
  background: rgba(220, 38, 38, 0.15);
  color: var(--uc-error);
  border: 2px solid var(--uc-error);
}

.pie-modal-tablero {
  background: var(--uc-gray-50);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
  border-top: 1px solid var(--uc-gray-200);
}

/* ==========================================
   ACCESIBILIDAD Y RESPONSIVIDAD AVANZADA
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus {
  outline: 2px solid var(--uc-green-1);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--uc-green-1);
  outline-offset: 2px;
}

/* Focus más sutil para elementos de navegación */
.nav-enlace-item:focus,
.nav-enlace-header:focus,
.acceso-rapido-header:focus,
.nav-enlace-movil:focus {
  outline: 2px solid var(--uc-green-1);
  outline-offset: -2px;
  border-radius: var(--uc-radius-sm);
}

/* Focus para botones de navegación sin outline externo excesivo */
.nav-enlace-item:focus-visible,
.nav-enlace-header:focus-visible {
  outline: 2px solid rgba(0, 123, 62, 0.5);
  outline-offset: 0px;
}

/* Utilidades de texto */
.text-sm,
.etiqueta-estadistica {
  color: var(--uc-gray-600);
}

.text-green-600,
.text-green-700 {
  color: var(--uc-green-1) !important;
}

.bg-green-600,
.bg-green-700 {
  background-color: var(--uc-green-1) !important;
}

.border-green-500,
.border-green-600 {
  border-color: var(--uc-green-1) !important;
}

.bg-blue-500,
.bg-blue-600 {
  background-color: var(--uc-turquoise) !important;
}

/* Clases de gradiente Tailwind personalizadas */
.from-green-600 {
  --tw-gradient-from: var(--uc-green-1) !important;
}

.to-green-700 {
  --tw-gradient-to: var(--uc-green-2) !important;
}

.from-blue-500 {
  --tw-gradient-from: var(--uc-turquoise) !important;
}

.to-blue-600 {
  --tw-gradient-to: var(--uc-green-light-1) !important;
}

/* Ajustes de color específicos */
.border-blue-500 {
  border-color: var(--uc-turquoise) !important;
}

.bg-blue-100 {
  background-color: rgba(0, 169, 157, 0.08) !important;
}

.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-purple-600 {
  color: var(--uc-turquoise) !important;
}

.border-blue-300 {
  border-color: rgba(0, 169, 157, 0.3) !important;
}

.border-blue-600,
.border-indigo-600,
.border-purple-600,
.border-cyan-600,
.border-teal-600,
.border-orange-600 {
  border-color: var(--uc-turquoise) !important;
}

/* Media Queries Específicos */
@media (max-width: 1024px) {
  .chart-container {
    height: 280px;
  }
  
  .panel-info-tablero.expandido {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .banner-section { 
    height: 20vh; 
  }
  
  .sistemas-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
  
  .sistema-card img {
    width: 140px;
    height: 112px;
  }
  
  .titulo-macroproceso {
    font-size: 18px;
  }
  
  .valor-estadistica {
    font-size: 2.5rem;
  }
  
  .titulo-tarjeta-area {
    font-size: 16px;
  }
  
  .icono-tarjeta-area {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .chart-container {
    height: 280px;
  }
  
  #mapa {
    min-height: 250px !important;
  }
  
  .fondo-modal {
    padding: 0;
  }
  
  /* Adaptación de panel lateral a modo móvil */
  .panel-info-tablero {
    position: absolute;
    top: 0;
    left: auto !important;
    right: 0 !important;
    bottom: 0;
    width: 0;
    height: 100%;
    z-index: 50;
    transform: none;
    transition: width 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  }
  
  .panel-info-tablero.expandido {
    width: 380px !important;
    transform: none;
  }
  
  .encabezado-panel-info {
    padding: 1rem;
  }
  
  .contenido-panel-info {
    padding: 1rem;
  }
  
  .modal-contenido-mejorado {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    max-height: 100vh;
    max-height: 100dvh;
  }
  
  .encabezado-modal-tablero {
    padding: 1rem;
    min-height: auto;
  }
  
  .encabezado-modal-tablero h2 {
    font-size: 1rem;
  }
  
  .encabezado-modal-tablero p {
    font-size: 0.75rem;
  }
  
  .cuerpo-modal-tablero {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  
  .envoltura-iframe-tablero {
    height: 100%;
    min-height: 0;
  }
  
  .contenedor-iframe-tablero {
    height: 100%;
    border-radius: 0;
  }
  
  .contenedor-iframe-tablero iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }
  
  .pie-modal-tablero {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .chart-container {
    height: 240px;
  }
  
  #mapa {
    min-height: 220px !important;
  }
  
  .boton-panel-info {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 0.5rem;
    right: 0.5rem;
  }
  
  /* Panel en pantalla completa para móviles pequeños */
  .panel-info-tablero {
    position: fixed;
    top: 0;
    left: auto !important;
    right: 0 !important;
    bottom: 0;
    width: 0;
    height: 100% !important;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .panel-info-tablero.expandido {
    width: 100% !important;
    transform: translateX(0);
  }
  
  .modal-contenido-mejorado {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  
  .encabezado-modal-tablero {
    padding: 0.875rem;
  }
  
  .encabezado-modal-tablero h2 {
    font-size: 0.9rem;
    line-height: 1.2;
  }
  
  .encabezado-modal-tablero p {
    font-size: 0.7rem;
  }
  
  .cuerpo-modal-tablero {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  
  .contenedor-iframe-tablero {
    border-radius: 0;
  }
  
  .pie-modal-tablero {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .pie-modal-tablero button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .chart-container {
    height: 200px;
  }
  
  #mapa {
    min-height: 220px !important;
  }
  
  .seccion-info h4 {
    font-size: 0.875rem;
  }
  
  .seccion-info p {
    font-size: 0.8125rem;
  }
}

/* ==========================================
   ESTILOS DE LANDING PAGE Y COMPONENTES VISUALES
   Estilización de tarjetas, hero section y elementos decorativos
   ========================================== */

/* Hero Section Base */
.seccion-portada {
  display: none;
  background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.seccion-portada::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 123, 62, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.boton-portada-primario {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--uc-green-1), var(--uc-green-2));
  color: white;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 123, 62, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.boton-portada-primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 123, 62, 0.3);
}

.boton-portada-secundario {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: white;
  color: var(--uc-green-1);
  font-weight: 700;
  border-radius: 12px;
  border: 2px solid var(--uc-green-1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.boton-portada-secundario:hover {
  background: var(--uc-green-1);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 123, 62, 0.15);
}

.tarjeta-estadistica-portada {
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.tarjeta-estadistica-portada:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Tarjetas de Propósito */
.tarjeta-proposito {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.tarjeta-proposito:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--uc-green-1);
}

.icono-proposito {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tarjetas de Principios */
.tarjeta-principio {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  text-align: center;
}

.tarjeta-principio:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--uc-green-2);
}

.numero-principio {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icono-principio {
  font-size: 3rem;
  margin: 20px 0;
}

/* Tarjetas de Métricas */
.tarjeta-metrica {
  padding: 32px;
  border-radius: 20px;
  color: white;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Patrón de puntos institucional */
.tarjeta-metrica::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* Acento circular decorativo */
.tarjeta-metrica::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  z-index: 0;
}

.tarjeta-metrica:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

/* === Variantes institucionales === */

/* Estudiantes Totales — Verde oscuro institucional */
.tarjeta-metrica.tm-estudiantes {
  background: linear-gradient(145deg, #0f3118 0%, #1e5c35 100%);
  box-shadow: 0 8px 28px rgba(15, 49, 24, 0.32);
}

/* Programas Académicos — Verde institucional medio */
.tarjeta-metrica.tm-programas {
  background: linear-gradient(145deg, #005c2e 0%, #007B3E 100%);
  box-shadow: 0 8px 28px rgba(0, 123, 62, 0.28);
}

/* Sedes Regionales — Verde lima institucional suavizado */
.tarjeta-metrica.tm-sedes {
  background: linear-gradient(145deg, #3d6b00 0%, #5a9500 100%);
  box-shadow: 0 8px 28px rgba(90, 149, 0, 0.28);
}

.icono-metrica {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.valor-metrica {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.etiqueta-metrica {
  font-size: 1.125rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.tendencia-metrica {
  font-size: 0.875rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

/* ==========================================
   TARJETAS NIVEL ACADÉMICO — Glass morphism
   ========================================== */
.nivel-card-glass {
  position: relative;
  background: rgba(242, 252, 232, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(121, 192, 1, 0.22);
  border-radius: 24px;
  padding: 2rem 2rem 1.5rem;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 24px rgba(15, 49, 24, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Patrón de puntos institucional detrás del glass */
.nivel-card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(121, 192, 1, 0.13) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
  border-radius: 24px;
}

.nivel-card-glass:hover {
  border-color: rgba(121, 192, 1, 0.50);
  box-shadow: 0 8px 32px rgba(15, 49, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Ícono decorativo con efecto blob — dentro del card */
.nivel-glass-icon-bg {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 6.5rem;
  color: rgba(121, 192, 1, 0.22);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Efecto de relleno suave al hover */
.nivel-card-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 49, 24, 0.04) 0%, rgba(121, 192, 1, 0.10) 100%);
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.nivel-card-glass:hover::after {
  opacity: 1;
}

.nivel-glass-content {
  position: relative;
  z-index: 3;
}

/* Tag de nivel */
.nivel-glass-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.nivel-card-glass.pregrado .nivel-glass-tag {
  background: linear-gradient(135deg, #0f3118, #007B3E);
  color: white;
}

.nivel-card-glass.posgrado .nivel-glass-tag {
  background: linear-gradient(135deg, #3d6b00, #79c001);
  color: white;
}

/* Stats en fila */
.nivel-glass-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nivel-glass-stat {
  flex: 1;
}

.nivel-glass-numero {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  color: #0f3118;
  line-height: 1;
  margin-bottom: 4px;
}

.nivel-glass-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nivel-glass-divider {
  width: 1px;
  height: 55px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
  flex-shrink: 0;
}

/* Periodo */
.nivel-glass-periodo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}

/* Sección con fondo offwhite institucional */
.seccion-offwhite {
  background: var(--uc-bg-offwhite);
}

/* ==========================================
   ICON LIQUID FILL — Relleno que sigue la silueta del ícono
   Técnica: background-clip: text clipa el gradiente al contorno
   exacto del glifo FA (birrete, libro, pin...) sin recorte externo.
   ========================================== */

/* Propiedad CSS animable para el nivel del relleno */
@property --icon-fill {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

/* Contenedor liviano — sin clip, sin overflow */
.blob-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* El ícono FA: el gradiente se recorta a su silueta exacta */
.blob-icon-wrap > i {
  display: inline-block;
  font-size: inherit;
  --icon-fill: 0%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: --icon-fill 0.6s cubic-bezier(0.34, 1.15, 0.64, 1);
}

/*
  Métricas (fondo oscuro):
  inicial  → blanco suave   (ícono visible sobre el verde oscuro)
  al hover → verde lima     (relleno institucional sube desde abajo)
*/
.tarjeta-metrica .blob-icon-wrap > i {
  background-image: linear-gradient(
    to top,
    #79c001                   calc(var(--icon-fill) - 14%),
    rgba(255, 255, 255, 0.88) var(--icon-fill)
  );
}

/*
  Glass cards (fondo claro):
  inicial  → verde lima apagado  (coherente con el estilo glass)
  al hover → verde oscuro       (relleno institucional sube desde abajo)
*/
.nivel-card-glass .blob-icon-wrap > i {
  background-image: linear-gradient(
    to top,
    rgba(15, 49, 24, 0.75)  calc(var(--icon-fill) - 14%),
    rgba(121, 192, 1, 0.22) var(--icon-fill)
  );
}

/* Disparar el relleno al hover del card padre */
.tarjeta-metrica:hover .blob-icon-wrap > i,
.nivel-card-glass:hover .blob-icon-wrap > i {
  --icon-fill: 100%;
}

/* Tarjetas de Gobernanza */
.tarjeta-gobernanza {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.tarjeta-gobernanza:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.governance-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Tarjetas de Áreas de Trabajo */
.tarjeta-area-trabajo {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.tarjeta-area-trabajo:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--uc-green-1);
}

.numero-area-trabajo {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
}

.icono-area-trabajo {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* Tarjetas de Certificación */
.tarjeta-certificacion {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  border: 2px solid transparent;
}

.tarjeta-certificacion:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--uc-green-1);
}

.imagen-certificacion {
  width: 100%;
  height: 120px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.tarjeta-certificacion:hover .imagen-certificacion {
  transform: scale(1.1);
}

.etiqueta-certificacion {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--uc-gray-700);
  line-height: 1.4;
}

/* Sección de Llamado a la Acción (CTA) */
.seccion-llamada {
  background: linear-gradient(135deg, var(--uc-green-1) 0%, var(--uc-green-2) 50%, #007B3E 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.seccion-llamada::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.seccion-llamada::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.boton-llamada-contorno {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 12px;
  border: 3px solid white;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.boton-llamada-contorno:hover {
  background: white;
  color: var(--uc-green-1);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Animaciones de Entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ajustes de Responsividad en Componentes */
@media (max-width: 768px) {
  .seccion-portada {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .valor-metrica {
    font-size: 2.5rem;
  }
  
  .valor-estadistica-nivel {
    font-size: 2rem;
  }
  
  .boton-portada-primario,
  .boton-portada-secundario {
    width: 100%;
    justify-content: center;
  }
  
  .boton-llamada-blanco,
  .boton-llamada-contorno {
    width: 100%;
    justify-content: center;
  }
}

/* Fuente de datos — separador inferior de mapa/gráfico */
.fuente-datos {
  font-size: 0.75rem;
  color: var(--uc-gray-500);
  font-style: italic;
  text-align: right;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--uc-gray-200);
}

/* ==========================================
   CODIFICACIÓN DE COLOR SEMÁNTICA
   Asignación de colores a elementos específicos
   ========================================== */

/* Colores para la sección "Nuestro Propósito" */
.tarjeta-proposito:nth-child(1) .icono-proposito { background: linear-gradient(135deg, var(--uc-green-1), var(--uc-green-2)); }
.tarjeta-proposito:nth-child(2) .icono-proposito { background: linear-gradient(135deg, var(--uc-green-light-1), var(--uc-green-1)); }
.tarjeta-proposito:nth-child(3) .icono-proposito { background: linear-gradient(135deg, var(--uc-turquoise), var(--uc-green-1)); }

/* Colores para la sección "Principios del Gobierno de Datos" */
.tarjeta-principio:nth-child(1) .numero-principio { background-color: var(--uc-green-1); }
.tarjeta-principio:nth-child(1) .icono-principio { color: var(--uc-green-1); }

.tarjeta-principio:nth-child(2) .numero-principio { background-color: var(--uc-green-2); }
.tarjeta-principio:nth-child(2) .icono-principio { color: var(--uc-green-2); }

.tarjeta-principio:nth-child(3) .numero-principio { background-color: var(--uc-turquoise); }
.tarjeta-principio:nth-child(3) .icono-principio { color: var(--uc-turquoise); }

.tarjeta-principio:nth-child(4) .numero-principio { background-color: var(--uc-yellow-2); }
.tarjeta-principio:nth-child(4) .icono-principio { color: var(--uc-yellow-2); }

.tarjeta-principio:nth-child(5) .numero-principio { background-color: var(--uc-orange); }
.tarjeta-principio:nth-child(5) .icono-principio { color: var(--uc-orange); }

.tarjeta-principio:nth-child(6) .numero-principio { background-color: var(--uc-green-light-1); }
.tarjeta-principio:nth-child(6) .icono-principio { color: var(--uc-green-light-1); }

.tarjeta-principio:nth-child(7) .numero-principio { background-color: var(--uc-green-1); }
.tarjeta-principio:nth-child(7) .icono-principio { color: var(--uc-green-1); }

.tarjeta-principio:nth-child(8) .numero-principio { background-color: var(--uc-gray); }
.tarjeta-principio:nth-child(8) .icono-principio { color: var(--uc-gray); }

/* Colores para la sección "Áreas de Trabajo" */
.tarjeta-area-trabajo:nth-child(1) .icono-area-trabajo { color: var(--uc-green-1); }
.tarjeta-area-trabajo:nth-child(2) .icono-area-trabajo { color: var(--uc-green-2); }
.tarjeta-area-trabajo:nth-child(3) .icono-area-trabajo { color: var(--uc-turquoise); }
.tarjeta-area-trabajo:nth-child(4) .icono-area-trabajo { color: var(--uc-yellow-2); }
.tarjeta-area-trabajo:nth-child(5) .icono-area-trabajo { color: var(--uc-orange); }
.tarjeta-area-trabajo:nth-child(6) .icono-area-trabajo { color: var(--uc-green-light-1); }
.tarjeta-area-trabajo:nth-child(7) .icono-area-trabajo { color: var(--uc-gray); }
.tarjeta-area-trabajo:nth-child(8) .icono-area-trabajo { color: var(--uc-green-2); }
.tarjeta-area-trabajo:nth-child(9) .icono-area-trabajo { color: var(--uc-green-1); }

/* ==========================================
   COMPONENTE: PESTAÑAS DE LINEAMIENTOS
   Interfaz de navegación para documentos normativos
   ========================================== */
.lineamiento-tab-btn {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: var(--uc-green-1);
  border: 2px solid rgba(0, 80, 40, 0.25);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--uc-font-primary);
}

.lineamiento-tab-btn:hover {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 80, 40, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.lineamiento-tab-btn.activo {
  background: white;
  color: var(--uc-green-1);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lineamiento-tab-btn.activo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contenedor-contenido-lineamiento {
  display: none;
  animation: fadeIn 0.4s ease;
}

.contenedor-contenido-lineamiento.activo {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   COMPONENTE: REDIMENSIONAMIENTO DE PANELES
   Controlador de UI para ajuste de ancho
   ========================================== */
.control-redimension {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px; /* Área activa para el cursor */
  cursor: col-resize; /* Cursor de redimensionamiento horizontal */
  z-index: 100;
  transform: translateX(-50%); /* Centrado visual */
  background: transparent;
  transition: background 0.2s;
}

/* Indicador visual de interacción */
.control-redimension:hover,
.control-redimension:active {
  background: rgba(0, 123, 62, 0.3); /* Resaltado verde translúcido */

}

/* Ocultar mensaje de resultados por defecto */
.info-resultados-busqueda {
  display: none;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

/* Resaltado de búsqueda */
.resaltado {
  background-color: #FBE122;
  color: #004B2B;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Mensaje sin resultados */
.sin-resultados {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}

.icono-sin-resultados {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.sin-resultados h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}

.sin-resultados p {
  color: #6b7280;
  font-size: 0.95rem;
}

/* ==========================================
   DROPDOWN SUBMENU PARA LINEAMIENTOS
   ========================================== */

.nav-desplegable {
  position: relative;
}

/* Puente invisible para mantener el hover activo */
.nav-desplegable::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
  z-index: 999;
}

.nav-contenido-desplegable {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  min-width: 260px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  border: 1px solid #e5e7eb;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Mostrar dropdown al hacer hover - SIN delay de cierre */
.nav-desplegable:hover .nav-contenido-desplegable,
.nav-desplegable.activo .nav-contenido-desplegable {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mantener visible mientras el mouse está sobre el contenido */
.nav-contenido-desplegable:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-item-desplegable {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: #374151;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.9375rem;
}

.nav-item-desplegable:first-child {
  border-radius: 8px 8px 0 0;
}

.nav-item-desplegable:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-item-desplegable:hover {
  background: #f9fafb;
  color: var(--uc-green-1);
}

.nav-item-desplegable i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Flecha indicadora que rota */
.nav-enlace-item.tiene-desplegable::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free', sans-serif;
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.3s;
}

.nav-desplegable:hover .nav-enlace-item.tiene-desplegable::after,
.nav-desplegable.activo .nav-enlace-item.tiene-desplegable::after {
  transform: rotate(180deg);
}

/* Estado activo del botón Lineamientos cuando está en la vista */
.nav-enlace-item.tiene-desplegable.vista-activa {
  background: rgba(0, 123, 62, 0.1);
  color: var(--uc-green-1);
  font-weight: 600;
}

/* Mobile dropdown styles (solo con clic) */
.nav-desplegable-movil {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 123, 62, 0.05);
}

.nav-desplegable-movil.activo {
  max-height: 200px;
}

.nav-item-desplegable-movil {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  color: #374151;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.9375rem;
}

.nav-item-desplegable-movil:hover {
  background: rgba(0, 123, 62, 0.1);
  color: var(--uc-green-1);
}

.nav-item-desplegable-movil.vista-activa {
  background: rgba(0, 123, 62, 0.15);
  color: var(--uc-green-1);
  font-weight: 600;
}

.nav-enlace-movil.tiene-desplegable::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free', sans-serif;
  font-weight: 900;
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s;
}

.nav-enlace-movil.tiene-desplegable.activo::after {
  transform: rotate(180deg);
}

.nav-enlace-movil.tiene-desplegable.vista-activa {
  background: rgba(0, 123, 62, 0.1);
  color: var(--uc-green-1);
  font-weight: 600;
}

/* Responsive: Deshabilitar hover en pantallas pequeñas */
@media (max-width: 1024px) {
  .nav-desplegable::before {
    display: none;
  }
  
  .nav-desplegable:hover .nav-contenido-desplegable {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  
  .nav-desplegable.activo .nav-contenido-desplegable {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ==========================================
   BOTÓN VOLVER AL INICIO
   ========================================== */
.boton-volver-inicio {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--uc-green-1), var(--uc-green-light-1));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 123, 62, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.boton-volver-inicio.visible {
  opacity: 1;
  visibility: visible;
}

.boton-volver-inicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 123, 62, 0.4);
}

.boton-volver-inicio:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .boton-volver-inicio {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
/* ==========================================
   NAVBAR: MANEJO DE TEXTOS LARGOS
   ========================================== */

/* Contenedor para textos alternativos (completo/corto) */
.nav-enlace-item .nav-texto-corto {
  display: none;
}

.nav-enlace-item .nav-texto-completo {
  display: inline;
}

/* Botones con texto largo - ajuste de padding */
.nav-enlace-item.nav-enlace-largo {
  padding: 10px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Pantallas grandes (>1280px): Mostrar texto completo */
@media (min-width: 1280px) {
  .nav-enlace-item.nav-enlace-largo {
    font-size: 0.88rem;
    padding: 10px 18px;
  }
}

/* Pantallas medianas-grandes (1025px - 1279px): Texto completo con tamaño reducido */
@media (min-width: 1025px) and (max-width: 1279px) {
  .nav-enlace-item.nav-enlace-largo {
    font-size: 0.75rem;
    padding: 10px 10px;
  }
}

/* Pantallas medianas (900px - 1024px): Mostrar texto corto */
@media (min-width: 900px) and (max-width: 1024px) {
  .nav-enlace-item .nav-texto-completo {
    display: none;
  }
  
  .nav-enlace-item .nav-texto-corto {
    display: inline;
  }
  
  .nav-enlace-item.nav-enlace-largo {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* Pantallas pequeñas-medianas (769px - 899px): Texto aún más compacto */
@media (min-width: 769px) and (max-width: 899px) {
  .nav-enlace-item .nav-texto-completo {
    display: none;
  }
  
  .nav-enlace-item .nav-texto-corto {
    display: inline;
  }
  
  .nav-enlace-item.nav-enlace-largo {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  .nav-enlace-item {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   DISEÑO ADAPTADO - BARRA UTILIDADES + CABECERA BLANCA + HERO CARRUSEL
   Basado en referencia visual ucundinamarca.edu.co
   ========================================================================== */

/* ==========================================
   BARRA DE UTILIDADES SUPERIOR (Fondo oscuro)
   ========================================== */
.barra-utilidades {
  background: var(--uc-green-2);
  color: var(--uc-white);
  font-size: 0.8125rem;
  position: relative;
  z-index: calc(var(--uc-z-nav) + 1);
}

.barra-utilidades-contenedor {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.barra-utilidades-izq {
  flex-shrink: 0;
}

.enlace-accesibilidad {
  color: var(--uc-green-light-1);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  transition: color var(--uc-transition-fast);
}

.enlace-accesibilidad:hover {
  color: var(--uc-yellow-1);
}

.barra-utilidades-der {
  flex-shrink: 0;
}

.selector-idioma {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.idioma-opcion {
  cursor: pointer;
  opacity: 0.55;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: opacity var(--uc-transition-fast);
  color: var(--uc-white);
}

.idioma-opcion:hover {
  opacity: 1;
}

.idioma-opcion.idioma-activo {
  opacity: 1;
  font-weight: 700;
}

/* ==========================================
   CABECERA PRINCIPAL (Fondo blanco)
   ========================================== */
.cabecera-principal {
  background: var(--uc-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: var(--uc-z-nav);
}

.cabecera-contenedor {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.cabecera-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cabecera-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* --- Buscador Prominente del Header --- */
.cabecera-buscador {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
}

.input-buscador-header {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--uc-gray-200);
  border-right: none;
  border-radius: var(--uc-radius-sm) 0 0 var(--uc-radius-sm);
  font-size: 0.9375rem;
  font-family: var(--uc-font-primary);
  outline: none;
  background: var(--uc-gray-50);
  color: var(--uc-gray-700);
  transition: border-color var(--uc-transition-fast), background var(--uc-transition-fast);
}

.input-buscador-header::placeholder {
  color: var(--uc-gray-400);
}

.input-buscador-header:focus {
  border-color: var(--uc-green-1);
  background: var(--uc-white);
}

.boton-buscador-header {
  background: var(--uc-green-light-1);
  color: var(--uc-white);
  border: 2px solid var(--uc-green-light-1);
  padding: 10px 24px;
  border-radius: 0 var(--uc-radius-full) var(--uc-radius-full) 0;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--uc-font-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--uc-transition-fast);
}

.boton-buscador-header:hover {
  background: var(--uc-green-1);
  border-color: var(--uc-green-1);
}

/* --- Accesos Rápidos del Header --- */
.cabecera-accesos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.acceso-rapido-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--uc-gray-700) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  font-family: var(--uc-font-primary);
  padding: 6px 0 !important;
  border-radius: 0 !important;
  transition: color var(--uc-transition-fast) !important;
  white-space: nowrap;
}

.acceso-rapido-header:hover {
  color: var(--uc-green-1) !important;
  background: transparent !important;
}

.acceso-rapido-header.activo,
.acceso-rapido-header.vista-activa {
  color: var(--uc-green-1) !important;
  font-weight: 700;
  background: transparent !important;
}

.acceso-rapido-header i {
  display: inline-block !important;
  color: var(--uc-green-1);
  font-size: 1rem;
}

.boton-usuario-header {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--uc-green-light-1);
  color: var(--uc-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--uc-transition-fast);
  box-shadow: 0 2px 8px rgba(121, 192, 0, 0.25);
  flex-shrink: 0;
}

.boton-usuario-header:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(121, 192, 0, 0.4);
}

/* --- Botón Móvil dentro de Cabecera --- */
.cabecera-principal .nav-boton-movil {
  display: none;
}

.cabecera-principal .nav-menu-movil {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0 0 var(--uc-radius-xl) var(--uc-radius-xl);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 1000;
}

/* --- Navegación Principal (Segunda fila del header) --- */
.cabecera-navegacion {
  border-top: 1px solid var(--uc-gray-200);
  background: var(--uc-white);
}

.cabecera-nav-contenedor {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  height: 50px;
}

.nav-enlace-header {
  color: var(--uc-gray-700) !important;
  background: transparent !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  padding: 14px 0 !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: color var(--uc-transition-fast), border-color var(--uc-transition-fast) !important;
  white-space: nowrap;
  font-family: var(--uc-font-primary);
}

.nav-enlace-header:hover {
  color: var(--uc-green-1) !important;
  background: transparent !important;
}

.nav-enlace-header.activo,
.nav-enlace-header.vista-activa {
  color: var(--uc-green-1) !important;
  background: transparent !important;
  font-weight: 700 !important;
  border-bottom-color: var(--uc-green-1) !important;
}

.nav-enlace-header.nav-cerrarSesion {
  color: var(--uc-red-1) !important;
  background: transparent !important;
}

.nav-enlace-header.nav-cerrarSesion:hover {
  color: var(--uc-red-2) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  border-radius: var(--uc-radius-sm) !important;
}

/* Default text display for navigation responsive behavior */
.nav-enlace-header .nav-texto-completo {
  display: inline;
}

.nav-enlace-header .nav-texto-corto {
  display: none;
}

/* ==========================================
   HERO BANNER TIPO CARRUSEL
   ========================================== */
.hero-carrusel {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.hero-contenedor {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}

.hero-diapositiva {
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--uc-white);
  padding: 2rem;
}

.hero-subtitulo {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero-titulo {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 1;
  animation: none;
}

.hero-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.hero-flecha {
  background: transparent;
  border: none;
  color: var(--uc-gray-500);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--uc-transition-fast);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-flecha:hover {
  background: var(--uc-gray-100);
  color: var(--uc-green-2);
}

.hero-puntos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-punto {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--uc-gray-300);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--uc-transition-fast);
  display: inline-block;
}

.hero-punto.activo {
  background: var(--uc-green-2);
}

.hero-punto:hover:not(.activo) {
  background: var(--uc-gray-400);
}

/* ==========================================
   RESPONSIVE - BARRA UTILIDADES + CABECERA + HERO
   ========================================== */

/* Pantallas medias-grandes (1025px - 1280px) */
@media (max-width: 1280px) {
  .barra-utilidades-contenedor {
    padding: 0 2rem;
  }

  .barra-utilidades-centro {
    gap: 1.75rem;
  }

  .cabecera-contenedor {
    padding: 0 2rem;
    gap: 1rem;
  }

  .cabecera-buscador {
    max-width: 340px;
  }

  .hero-carrusel {
    padding: 0;
  }
}

/* Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .barra-utilidades-contenedor {
    padding: 0 1.5rem;
  }

  .cabecera-contenedor {
    padding: 0 1.5rem;
    gap: 0.75rem;
  }

  .cabecera-nav-contenedor {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .nav-enlace-header {
    font-size: 0.875rem !important;
  }

  .cabecera-buscador {
    max-width: 280px;
  }

  .input-buscador-header {
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .boton-buscador-header {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .acceso-rapido-header span {
    display: none;
  }

  .cabecera-accesos {
    gap: 1rem;
  }

  .hero-carrusel {
    padding: 0;
  }

  .hero-diapositiva {
    height: 320px;
  }

  /* .hero-titulo tamaño manejado por clamp() */
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  .barra-utilidades {
    display: none;
  }

  .cabecera-principal {
    position: sticky;
    top: 0;
  }

  .cabecera-contenedor {
    padding: 0 1rem;
    height: 60px;
  }

  .cabecera-buscador {
    display: none;
  }

  .cabecera-accesos {
    display: none;
  }

  .cabecera-navegacion {
    display: none;
  }

  .cabecera-principal .nav-boton-movil {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cabecera-logo img {
    height: 36px;
  }

  .hero-carrusel {
    padding: 0;
  }

  .hero-diapositiva {
    height: 260px;
  }

  /* .hero-titulo y .hero-subtitulo tamaños manejados por clamp() */

  .hero-contenedor {
    border-radius: 0;
  }

  .hero-controles {
    padding: 0.75rem 0 0.25rem;
  }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .cabecera-contenedor {
    height: 54px;
    padding: 0 0.75rem;
  }

  .cabecera-logo img {
    height: 32px;
  }

  .hero-carrusel {
    padding: 0;
  }

  .hero-diapositiva {
    height: 200px;
  }

  /* .hero-titulo y .hero-subtitulo tamaños manejados por clamp() */

  .hero-contenedor {
    border-radius: 0;
  }

  .hero-punto {
    width: 10px;
    height: 10px;
  }

  .hero-flecha {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   SECCIONES INFERIORES - CTA + FRANJA + LOGOS + PRE-FOOTER + FOOTER
   Basado en referencia visual ucundinamarca.edu.co
   ========================================================================== */

/* ==========================================
   SECCIÓN CTA CONTACTO (Gradiente Verde con Bordes Redondeados)
   ========================================== */
.cta-contacto-seccion {
  margin-top: 4rem;
  padding: 0 1.5rem;
}

.cta-contacto-contenedor {
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, #007B3E 0%, #00482B 30%, #00482B 60%, #007B3E 100%);
  border-radius: 32px;
  padding: 4rem 3rem;
  box-shadow: 0 20px 40px rgba(0, 72, 43, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-contacto-contenedor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(121, 192, 0, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta-contacto-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-contacto-etiqueta {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: var(--uc-font-primary);
}

.cta-contacto-titulo {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--uc-white);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: var(--uc-font-primary);
}

.cta-contacto-subtitulo {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-family: var(--uc-font-primary);
}

.cta-contacto-boton {
  display: inline-block;
  background: var(--uc-green-light-1);
  color: var(--uc-white);
  padding: 1rem 2.5rem;
  border-radius: var(--uc-radius-full);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all var(--uc-transition-fast);
  box-shadow: 0 8px 20px rgba(121, 192, 0, 0.4);
  font-family: var(--uc-font-primary);
  border: none;
}

.cta-contacto-boton:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(121, 192, 0, 0.5);
  background: #8BD000;
}

/* ==========================================
   BOTÓN CIRCULAR "INSCRÍBETE AQUÍ"
   ========================================== */
.boton-circular-inscripcion {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--uc-green-light-1);
  border: 6px solid var(--uc-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--uc-transition-fast);
  box-shadow: 0 8px 24px rgba(121, 192, 0, 0.4);
  z-index: 10;
  animation: pulse-subtle 3s ease-in-out infinite;
}

.boton-circular-inscripcion:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(121, 192, 0, 0.6);
}

@keyframes pulse-subtle {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.texto-circular {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotacion-circular 15s linear infinite;
}

@keyframes rotacion-circular {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.texto-circular-path {
  fill: var(--uc-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--uc-font-primary);
}

/* ==========================================
   KEYFRAMES - BADGE ANIMATIONS
   ========================================== */
@keyframes badge-pulse-fixed {
  0%, 100% {
    transform: translateY(50%) scale(1);
  }
  50% {
    transform: translateY(50%) scale(1.05);
  }
}

@keyframes badge-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================
   FRANJA REPETITIVA "GOBIERNO DE DATOS"
   ========================================== */
.franja-repetitiva {
  background: var(--uc-green-2);
  color: var(--uc-green-light-1);
  overflow: hidden;
  margin-top: 3rem;
  padding: 1.25rem 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
}

.franja-repetitiva-contenido {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: scroll-horizontal 30s linear infinite;
  width: fit-content;
}

.franja-texto {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  font-family: var(--uc-font-primary);
}

.franja-separador {
  font-size: 1.25rem;
  opacity: 0.6;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   LOGOS INSTITUCIONALES / ALIADOS
   ========================================== */
.seccion-logos-institucionales {
  background: var(--uc-gray-50);
  padding: 3rem 0;
  margin-top: 0;
  overflow: hidden;          /* Ocultar logos que salen del borde */
  position: relative;
  cursor: grab;
}

.seccion-logos-institucionales:active {
  cursor: grabbing;
}

.logos-contenedor {
  display: flex;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
  width: fit-content;
  padding: 0.5rem 1.5rem;
  will-change: transform;
  animation: logos-desplazar 40s linear infinite;
}

.logos-contenedor.arrastre-activo {
  animation-play-state: paused;
}

@keyframes logos-desplazar {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-institucional {
  height: 60px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: all var(--uc-transition-fast);
  flex-shrink: 0;
  pointer-events: none; /* Evitar interferencia con el arrastre */
}

.logo-institucional:hover {
  opacity: 1;
  transform: scale(1.12);
  filter: brightness(1.1);
}


/* ==========================================
   BLOQUE INSTITUCIONAL PRE-FOOTER
   ========================================== */
.seccion-prefooter {
  background: var(--uc-cream);
  padding: 5rem 1.5rem 6.5rem;
  position: relative;
  margin-bottom: 0;
}

.prefooter-contenedor {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.prefooter-columna-izq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prefooter-logo {
  width: 320px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.prefooter-titulo {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--uc-gray-900);
  line-height: 1.3;
  font-family: var(--uc-font-primary);
}

.prefooter-descripcion {
  font-size: 1.125rem;
  color: var(--uc-gray-600);
  line-height: 1.6;
  font-family: var(--uc-font-primary);
}

/* ==========================================
   FOOTER WRAP - Contenedor con stacking context
   ========================================== */
.footer-wrap {
  position: relative;                    /* Ancla el badge absolutamente */
  background: #1a1a1a;
  padding-top: 120px;                    /* Espacio aumentado para separación visual */
}

/* ==========================================
   BADGE CTA CIRCULAR - Anclado en borde superior del footer
   ========================================== */
.badge-cta-inscribete {
  position: absolute;
  top: 0;                                /* Borde superior del footer-wrap */
  left: var(--badge-offset-x);          /* Centro del badge alineado con contenido */
  transform: translate(-50%, -50%);     /* Centro horizontal y vertical */
  z-index: var(--badge-z-index);

  /* Tamaño - Responsive */
  width: var(--badge-size);
  height: var(--badge-size);

  /* Estilo */
  border-radius: 50%;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--uc-transition-fast), box-shadow var(--uc-transition-fast);

  /* Halo sutil + sombra como en la referencia */
  box-shadow:
    0 0 0 10px rgba(121, 192, 1, 0.18),
    0 18px 35px rgba(0, 0, 0, 0.28);
}

.badge-cta-inscribete:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 14px rgba(121, 192, 1, 0.22),
    0 22px 42px rgba(0, 0, 0, 0.34);
}

.badge-cta-inscribete:focus {
  outline: 3px solid rgba(121, 192, 1, 0.55);
  outline-offset: 4px;
}

/* Palpitación sutil de la flecha */
@keyframes badge-flecha-palpitar {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.18); }
}

.badge-flecha-svg {
  transform-box: fill-box;
  transform-origin: center;
  animation: badge-flecha-palpitar 1.8s ease-in-out infinite;
}

.prefooter-columna-der {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.prefooter-grupo-enlaces {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prefooter-titulo-seccion {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--uc-gray-900);
  margin-bottom: 0.5rem;
  font-family: var(--uc-font-primary);
}

.prefooter-lista-enlaces {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prefooter-enlace {
  font-size: 0.875rem;
  color: var(--uc-gray-600);
  text-decoration: none;
  transition: color var(--uc-transition-fast);
  line-height: 1.5;
  font-family: var(--uc-font-primary);
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: inline;
}

.prefooter-enlace:hover {
  color: var(--uc-green-1);
}

/* ==========================================
   FOOTER OSCURO FINAL
   ========================================== */
.footer-oscuro {
  background: transparent;               /* El color lo da el .footer-wrap */
  color: var(--uc-gray-300);
  padding: 0 1.5rem 2rem;               /* Sin padding-top: el wrapper ya lo gestiona */
}

.footer-contenedor {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-columnas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-columna {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-titulo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--uc-white);
  margin-bottom: 0.5rem;
  font-family: var(--uc-font-primary);
}

.footer-info {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--uc-gray-400);
  font-family: var(--uc-font-primary);
}

.footer-info p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-info i {
  color: var(--uc-green-light-1);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-info a {
  color: var(--uc-gray-400);
  text-decoration: none;
  transition: color var(--uc-transition-fast);
}

.footer-info a:hover {
  color: var(--uc-green-light-1);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--uc-gray-500);
  font-family: var(--uc-font-primary);
}

/* ==========================================
   RESPONSIVE - SECCIONES INFERIORES
   ========================================== */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .cta-contacto-contenedor {
    padding: 3rem 2rem;
    border-radius: 24px;
  }

  .franja-repetitiva {
    margin-top: 2rem;
  }

  .seccion-prefooter {
    margin-bottom: 0;
  }

  .boton-circular-inscripcion-prefooter {
    width: 100px;
    height: 100px;
    border-width: 4px;
  }

  .texto-circular-path {
    font-size: 12px;
  }

  .icono-flecha-circular {
    font-size: 1.75rem;
  }

  .logos-contenedor {
    gap: 2rem 3rem;
  }

  .logo-institucional {
    height: 60px;
    max-width: 120px;
  }

  .prefooter-contenedor {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .prefooter-columna-der {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-columnas {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .cta-contacto-seccion {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .cta-contacto-contenedor {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }

  .cta-contacto-boton {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .franja-repetitiva {
    margin-top: 1.5rem;
  }

  .prefooter-logo {
    width: 250px;
  }

  .seccion-prefooter {
    padding: 3rem 1rem;
    margin-bottom: 0;
  }

  .boton-circular-inscripcion-prefooter {
    width: 90px;
    height: 90px;
    border-width: 4px;
  }

  .texto-circular-path {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .icono-flecha-circular {
    font-size: 1.5rem;
  }

  .franja-texto {
    font-size: 0.8125rem;
  }

  .seccion-logos-institucionales {
    padding: 2rem 1rem;
  }

  .logos-contenedor {
    gap: 1.5rem 2rem;
  }

  .logo-institucional {
    height: 50px;
    max-width: 100px;
  }

  .prefooter-columna-der {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-oscuro {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-columnas {
    gap: 2rem;
  }

  /* Badge y Footer Wrap Responsive */
  .footer-wrap {
    padding-top: 90px;                     /* Mantener espaciado adecuado en mobile */
  }

  .badge-cta-inscribete {
    left: 50%;                            /* En mobile, centrado */
    transform: translate(-50%, -50%);
  }
}

/* ==========================================
   OCULTAR INTELIGENCIA ARTIFICIAL
   ========================================== */

/* Botones de navegación (header, mobile, prefooter) */
button[onclick*="inteligencia-artificial"] {
  display: none !important;
}

/* Ítem del prefooter */
.prefooter-lista-enlaces li:has(button[onclick*="inteligencia-artificial"]) {
  display: none !important;
}

