.hero-banner {
  position: relative;
  width: 100%;
  background-color: #001f3f; 
  overflow: hidden;
}
.hero-banner .carousel {
  width: 100%;
  height: 100%;
}
.hero-banner .carousel-item {
  width: 100%;
  aspect-ratio: 16 / 9; 
  max-height: 90vh; 
  background-color: #ffffff; /* Fondo blanco por si algo tarda en cargar */
}
.hero-banner .carousel-item img,
.hero-banner .carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
}
.hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  padding: 0 10%;
  text-align: center;
  background: linear-gradient(to right, rgba(0, 21, 41, 0.8) 15%, transparent 60%);
}
.hero-content-overlay .container {
  text-align: left;
  max-width: 600px;
}
.hero-content-overlay .display-4 {
  color: #FFD700;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  font-size: 2.5rem;
  line-height: 1.2;
}
.hero-content-overlay .btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  border-radius: 50px;
  background-color: #FFD700;
  color: #002F6C;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.hero-content-overlay .btn:hover {
  background-color: #FFC107;
  transform: translateY(-2px);
}
.scroll-down-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-down-indicator i {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
/* --- Forzar Justificación en Sección '¿Qué es PC Puma?' --- */
#que-es p {
  text-align: justify !important;
}

.video-pcpuma-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 91, 168, 0.2);
}
.video-pcpuma-final {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#mision-vision {
  background: linear-gradient(135deg, #005BA8, #0b2940);
}
#mision-vision .backdrop-blur {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
#mision-vision .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.servicios-pcpuma {
  background: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}
.contenedor-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.servicio {
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.servicio-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.servicio h3 {
  font-size: 1.5rem;
  color: #005BA8;
  margin-top: 1rem;
}
.servicio p {
  color: #333;
  font-size: 1rem;
}
.perfil-card {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: 100%;
}
.perfil-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.perfil-contenido {
  padding: 1rem;
}
.entidades-section {
  position: relative;
  overflow: hidden;
  background-color: #005BA8;
}
#networkCanvas,
#serviciosCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.65; /* aumentado para más visibilidad */
  pointer-events: none;
  mix-blend-mode: screen; /* mantiene buen contraste sobre fondos oscuros */
  filter: contrast(150%) saturate(130%) brightness(110%) drop-shadow(0 6px 14px rgba(0,0,0,0.12));
  transition: opacity 300ms ease;
  will-change: transform, opacity; /* mejora rendimiento */
}
/* Si sección con fondo claro: usar mezcla normal */
.entidades-section.light-bg #networkCanvas,
.entidades-section.light-bg #serviciosCanvas {
  mix-blend-mode: normal;
  opacity: 0.85;
}
/* móviles */
@media (max-width: 768px) {
  #networkCanvas,
  #serviciosCanvas {
    opacity: 0.75;
    filter: contrast(140%) saturate(120%) brightness(115%);
  }
}
.entidad-logo {
  width: 100px;
  height: 100px;
  background-color: #ffffff; 
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid #ddd; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.entidad-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}
.entidad-logo img {
  max-height: 60px;
  max-width: 80%;
  object-fit: cover;
}
.entidad-nombre {
  margin-top: 10px;
  font-weight: bold;
  color: white;
  font-size: 0.85rem;
}
.flotante-equipo {
  position: fixed;
  bottom: 20px; right: 20px;
  background-color: #FFD700;
  color: #003366;;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: bold;
  z-index: 1040;
  text-decoration: none;
}
.navbar .nav-link {
  transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar .nav-link:hover {
  color: #FFD700 !important; /* Amarillo institucional */
  background-color: rgba(255, 255, 255, 0.1);
}
.navbar .nav-link.active {
  font-weight: bold;
  border-bottom: 2px solid #FFD700; /* Indicador visual */
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card i {
  font-size: 3rem;
  color: #005BA8;
}
.card-title {
  font-size: 1.5rem;
  color: #005BA8;
  margin-top: 1rem;
}
.card-text {
  color: #333;
  font-size: 1rem;
}
.display-5 {
  font-size: 3rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.display-5[data-aos] {
  opacity: 0;
  transform: translateY(20px);
}
@media (max-width: 768px) {
  .hero-content-overlay {
    padding: 0 5%;
    text-align: center;
  }
  .hero-content-overlay .display-4 {
    font-size: 2rem;
  }
  .servicio {
    max-width: 100%;
  }

}

/* --- Estilos para Tarjetas de Perfil Unificadas --- */
.card-perfil-unificado {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  transition: all 0.4s ease;
}
.card-perfil-unificado:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(0, 91, 168, 0.3) !important;
}
.card-perfil-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.card-perfil-unificado:hover .card-perfil-bg {
  transform: scale(1.05);
}
.card-perfil-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 47, 108, 0.9) 0%, rgba(0, 47, 108, 0.5) 70%, transparent 100%);
  padding: 1.5rem;
}
.card-perfil-overlay .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.card-perfil-unificado .btn-warning {
  background-color: #FFD700;
  color: #003366;
  border-color: #FFD700;
  font-weight: bold;
}
/* --- Corrección de Contraste para Tarjetas de Perfil --- */
.card-perfil-overlay .card-text {
  color: rgba(255, 255, 255, 0.9); /* Texto blanco con ligera transparencia para un look más suave */
}

.card-perfil-overlay .card-title,
.card-perfil-overlay .card-text {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); /* Sombra de texto para máxima legibilidad sobre cualquier imagen */
}


/* Estilo para los logos en el mapa para evitar conflictos */
/* Tamaño base mayor y variantes responsivas */
.logo-entidad {
  width: 72px;       /* base */
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #005BA8;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  object-fit: contain;
  padding: 6px;
}

/* ≥1200px */
@media (min-width:1200px){
  #map .logo-entidad{ width:96px; height:96px; padding:6px; }
}

/* 768–1199px */
@media (min-width:768px) and (max-width:1199px){
  #map .logo-entidad{ width:84px; height:84px; padding:6px; }
}

/* ≤767px: móvil */
@media (max-width:767px){
  #map .logo-entidad{ width:72px; height:72px; padding:6px; }
}
/* --- Estilos para Sección de Servicios (Diseño de Alto Impacto con Alineación Corregida) --- */
.servicios-dark-section {
  background-color: #002a4a; /* Azul oscuro de fondo */
}

.card-servicio-mejorado {
  background-color: #003366; /* Azul más claro para la tarjeta */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: none;
}
.card-servicio-mejorado:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* NUEVO: Centra el contenido de la tarjeta */
.card-servicio-mejorado .card-body {
  text-align: center;
}

.servicio-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  margin-left: auto;  /* NUEVO: Centra el contenedor del icono */
  margin-right: auto;
}
.servicio-icon i {
  font-size: 2.5rem;
}

/* Efecto de resplandor para cada ícono */
.icon-conectividad i {
  color: #33aaff;
  text-shadow: 0 0 15px rgba(51, 170, 255, 0.7);
}
.icon-prestamo i {
  color: #9dffad;
  text-shadow: 0 0 15px rgba(157, 255, 173, 0.7);
}
.icon-capacitacion i {
  color: #ffc107;
  text-shadow: 0 0 15px rgba(255, 193, 7, 0.7);
}

/* MODIFICADO: Añadido flexbox para alinear verticalmente el texto del título */
.card-servicio-mejorado .card-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  min-height: 3.5em; /* Asegura que todos los títulos ocupen el mismo espacio */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-servicio-mejorado .card-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.feature-list li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.feature-list i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

/* NUEVO: Centra el bloque de la lista, pero mantiene el texto alineado a la izquierda */
.feature-list {
  text-align: left;
  display: inline-block; 
}

/* Estilos para las etiquetas de Ejes */
.eje-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.eje-label-inclusion {
  color: #33aaff;
}
.eje-label-transformacion {
  color: #fd7e14;
}
/* --- Estilos Específicos para el Slide del Coloquio (Versión Corregida) --- */

.coloquio-overlay {
  align-items: flex-end;   /* Mueve el contenido hacia la parte inferior */
  justify-content: center; /* Centra el contenido horizontalmente */
  background: none;        /* Elimina el gradiente oscuro de la izquierda */
  padding-bottom: 4%;      /* <<-- Lo mueve MÁS ABAJO */
}

/* Asegura que el contenedor interno se centre correctamente */
.coloquio-overlay .container {
    text-align: center;
    max-width: 100%;
}

/* Ajusta los colores del texto para que contrasten con el fondo blanco de la imagen */
.coloquio-overlay h1,
.coloquio-overlay .lead {
  color: #003366; /* Azul oscuro para el texto */
  text-shadow: none;   /* Quita la sombra de texto que ya no es necesaria */
}

.coloquio-overlay h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* Estilo del botón */
.coloquio-overlay .btn-primary {
  border-radius: 50px;
  padding: 0.8rem 2.5rem;
  font-weight: bold;
}
/* ============================================= */
/* ESTILOS PARA EL MAPA DE COBERTURA (LEAFLET)     */
/* ============================================= */

/* Estilos para los botones de filtro del mapa */
#cobertura .pcp-map-filters .btn-filtro {
  background-color: #e9ecef;
  color: #495057;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  font-size: .95rem;
  transition: all .3s ease;
  margin: 4px;
}
#cobertura .pcp-map-filters .btn-filtro:hover {
  background-color: #ced4da;
  border-color: #adb5bd;
}
#cobertura .pcp-map-filters .btn-filtro.activo-filtro {
  background-color: #005BA8;
  color: #fff;
  border-color: #005BA8;
  box-shadow: 0 4px 12px rgba(0,91,168,.3);
}

/* Estilos para el contenedor del mapa */
#map {
  height: 500px;
  border-radius: 16px; /* Coincide con var(--radius-xl) */
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 44, 92, 0.08); /* Coincide con var(--shadow-md) */
  border: 1px solid #dee2e6;
}

/* --- ESTA ES LA REGLA MÁS IMPORTANTE --- */
/* Estilos para los logos (marcadores) dentro del mapa */
#map .logo-entidad {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #005BA8; /* Coincide con var(--pcp-azul) */
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  object-fit: contain;
  padding: 4px;
}