:root {
  --borde-radio-principal: 12px;
  --borde-radio-secundario: 8px;
  --borde-principal: 1px solid rgba(0, 48, 112, 0.08);
  --sombra-principal: 0 4px 14px rgba(0, 35, 80, 0.08);
  --sombra-secundaria: 0 2px 8px rgba(0, 35, 80, 0.04);
}

.tarjeta-principal {
  border-radius: var(--borde-radio-principal) !important;
  border: var(--borde-principal) !important;
  box-shadow: var(--sombra-principal) !important;
  background-color: #fff;
}

.tarjeta-secundaria {
  border-radius: var(--borde-radio-secundario) !important;
  border: var(--borde-principal) !important;
  box-shadow: var(--sombra-secundaria) !important;
}

/* Estructura y posición */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  padding: 0.3rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  z-index: 1030;
  animation: fadeDown 0.7s ease-out forwards;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 7rem);
}

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

.logo-img {
  height: 70px;
  display: block;
  max-height: 100%;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-brand span {
  font-weight: bold;
  font-size: 1.2rem;
  color: #003087;
}

/* Menú */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: #003087;
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
  padding: 0.4rem 0.3rem;
  transition: color 0.3s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.nav-menu .nav-link::before {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #003087;
  width: 0;
  transition: width 0.3s;
  z-index: 1;
}

.nav-menu .nav-link:hover::before,
.nav-menu .nav-link.activo::before {
  width: 100%;
}


/* Eliminar triángulo de Bootstrap */
.nav-link.dropdown-toggle::after {
  content: none !important;
}


.nav-link:hover {
  color: #00225d;
}

.nav-link.activo {
  color: #00225d;
}



/* Menú desplegable */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  position: relative;
  padding: 0.3rem 1rem;
  color: #003087;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Efecto de fondo animado */
.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #003087;
  z-index: -1;
  transition: width 0.3s ease;
}

/* Al pasar el mouse: expandir fondo de izquierda a derecha */
.dropdown-item:hover::before,
.dropdown-item:focus::before {
  width: 100%;
}

.dropdown-item i {
  font-size: 1.2rem;
  /* íconos ajustados */
}


.dropdown-item:hover,
.dropdown-item:focus {
  color: white;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* Botón login */
.btn-login {
  background-color: #003087;
  color: white;
  font-weight: bold;
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
}

.btn-login:hover {
  background-color: #0044aa;
  transform: scale(1.05);
}

.btn-login i {
  font-size: 1.1rem;
}

/* Animación de entrada */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #003087;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-menu.show {
    display: flex;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 0.8rem;
    right: 1.5rem;
  }
}

/* Fondo rectangular con imagen */
.login-hero {
  background-image: url('../img/bg-login.svg');
  /* O usa .jpg si svg falla */
  background-size: cover;
  background-position: center;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bloque encima de la imagen */
.overlay-box {
  background-color: rgba(0, 48, 135, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  max-width: 100%;
}

/* Logo */
.login-logo {
  height: 70px;
}

/* Formulario */
.login-form {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.login-form:hover {
  box-shadow: 0 0 20px rgba(0, 48, 135, 0.15);
}

/* Botón mostrar contraseña */
#togglePassword {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Botón de ingreso */
.btn-primary {
  background-color: #003087;
  border-color: #003087;
}

.btn-primary:hover {
  background-color: #0044aa;
  border-color: #0044aa;
}

.sidebar {
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  padding: 0;
}

@media (min-width: 992px) {
  .sidebar {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    height: calc(100vh - 80px);
    top: 80px;
    position: sticky;
    z-index: 999;
  }
}

/* Imagen */
.sidebar-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contenido principal */
#main-wrapper {
  display: flex;
}

#main-content {
  flex-grow: 1;
  min-width: 0;
  transition: margin-left 0.3s ease;
}

/* Sidebar estilo moderno */
.sidebar-link {
  position: relative;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  color: #003087;
  transition: color 0.3s ease;
  overflow: hidden;
  border-radius: 0;
}

/* Fondo animado como dropdown-item */
.sidebar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #003087;
  z-index: 0;
  transition: width 0.3s ease;
}

.sidebar-link:hover::before,
.sidebar-link.activo::before {
  width: 100%;
}

.sidebar-link:hover,
.sidebar-link.activo {
  color: white;
  z-index: 1;
}

.sidebar-link:hover .link-text,
.sidebar-link.activo .link-text {
  color: white;
  position: relative;
  z-index: 2;
}

.sidebar-link i {
  font-size: 1.2rem;
  z-index: 2;
  transition: color 0.3s ease;
}

.sidebar-link:hover i,
.sidebar-link.activo i {
  color: white;
}

.logout-link:hover::before {
  background-color: #dc3545;
}

.sidebar-user-info {
  background-color: #f0f0f0;
  /* gris claro estándar */
  color: #333;
}

.rol-color {
  color: #003087;
}

/* Modal animado y moderno */
.animate-modal {
  animation: slideUpFadeIn 0.4s ease-out;
  border-radius: 1rem;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estética general del modal */
.modal-content {
  background-color: #f9f9f9;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.modal-header.bg-danger {
  background-color: #c62828 !important;
}

.modal-body {
  font-size: 1rem;
  color: #333;
}

.modal-footer .btn {
  transition: all 0.2s ease-in-out;
}

.modal-footer .btn:hover {
  transform: scale(1.05);
}

/* Tabs personalizados estilo moderno */
.custom-tabs .nav-link {
  color: #003087;
  font-weight: 600;
  position: relative;
  background-color: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  transition: color 0.3s ease-in-out;
  overflow: hidden;
}

/* Subrayado animado (efecto izquierda a derecha) */
.custom-tabs .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: #0044aa;
  transition: width 0.4s ease, left 0.4s ease;
}

/* Hover: subrayado se expande */
.custom-tabs .nav-link:hover::after {
  width: 100%;
}

/* Activo: subrayado persistente */
.custom-tabs .nav-link.activo::after,
.custom-tabs .nav-link.active::after {
  width: 100%;
  background-color: #003087;
}

/* Cambiar color al pasar el cursor */
.custom-tabs .nav-link:hover {
  color: #00225d;
}

/* Color activo */
.custom-tabs .nav-link.activo,
.custom-tabs .nav-link.active {
  color: #00225d;
  font-weight: bold;
}

.table thead th {
  vertical-align: middle;
  font-weight: 600;
  font-size: 0.8rem;
}

.table td,
.table th {
  text-align: center;
  vertical-align: middle;
}

.input-group input:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 48, 135, 0.25);
  border-color: #003087;
}

/* Formulario centrado y con ancho máximo */
.form-registro {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 48, 135, 0.1);
  transition: all 0.3s ease;
}

/* Estilo para inputs */
.form-registro .form-control:focus {
  border-color: #003087;
  box-shadow: 0 0 0 0.2rem rgba(0, 48, 135, 0.25);
}

/* Botón limpiar y submit con efectos */
.form-registro .btn-reset,
.form-registro .btn-submit {
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

/* Hover botones */
.form-registro .btn-reset:hover {
  background-color: #6c757d;
  transform: scale(1.05);
}

.form-registro .btn-submit:hover {
  background-color: #0044aa;
  border-color: #0044aa;
  transform: scale(1.05);
}

.seccion-titulo {
  color: #003087;
  /* Azul institucional */
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid #00308722;
  padding-bottom: 0.4rem;
  margin-top: 1.5rem;
}

/* Fondo de logo en el cuerpo del modal */
.modal-body.logo-background {
  position: relative;
  z-index: 1;
}

.modal-body.logo-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/logo.png') no-repeat center center;
  background-size: 70%;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* Asegura que el contenido esté por encima del fondo */
.modal-body.logo-background>.list-group {
  position: relative;
  z-index: 1;
}

/* Quitar fondo a los ítems para que se vean sobre el logo */
.modal-body.logo-background .list-group-item {
  background-color: transparent;
}

/* --- SLIDER --- */
.slider-img {
  height: 450px;
  /* mismo alto que las secciones */
  object-fit: cover;
  border-radius: 12px;
  /* consistente con los bloques */
}

.carousel-caption {
  background: rgba(0, 48, 135, 0.65);
  padding: 1rem 2rem;
  border-radius: 1rem;
}

/* --- Flechas minimalistas para TODOS los sliders --- */
.carousel .custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-weight: bold;
  color: #003087;
  border: none;
  background: transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 5;
}

.carousel .custom-arrow:hover {
  opacity: 1;
  color: #0056b3;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev.custom-arrow {
  left: 10px;
}

.carousel-control-next.custom-arrow {
  right: 10px;
}

/* --- BLOQUES --- */
.bloque-seccion {
  background: #fff;
  border-radius: var(--borde-radio-principal);
  padding: 40px;
  border: var(--borde-principal);
  box-shadow: var(--sombra-principal);
}

/* --- SERVICIOS --- */
.service-item {
  background: #f9f9f9;
  border-bottom: 1px solid #003087;
  /* azul claro y sutil */
  border-radius: 12px;
  padding: 25px 15px;
  transition: all 0.4s ease;
  text-decoration: none;
}

.service-item i {
  font-size: 2.5rem;
  color: #003087;
  display: block;
  margin-bottom: 10px;
}

.service-item p {
  margin: 0;
  font-weight: 600;
  color: #003087;
  transition: color 0.3s ease;
}

.service-item:hover {
  background: linear-gradient(135deg, #003087, #0056b3);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 48, 135, 0.3);
}

.service-item:hover i,
.service-item:hover p {
  color: #fff !important;
}

/* --- CARRUSEL ALIADOS --- */
#aliadosCarousel img {
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

#aliadosCarousel img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* --- TITULOS DE SECCIÓN con HEXÁGONO --- */
/* Header del título */
.seccion-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  /* quitamos margen extra */
  padding: 0.5rem 0 1rem 0;
  /* solo un pequeño espacio */
  position: relative;
}

.seccion-header::before,
.seccion-header::after {
  content: "";
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, transparent, #003087, transparent);
  margin: 0 15px;
  border-radius: 3px;
}

/* El hexágono */
.seccion-header .seccion-titulo {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #003087, #0056b3);
  color: #fff;
  padding: 12px 60px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(10% 0%, 90% 0%,
      100% 50%, 90% 100%,
      10% 100%, 0% 50%);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.25);
  min-width: 420px;
  text-align: center;
  margin: 0;
  /* eliminamos separación extra */
}

/* --- BOTONES DEL SLIDER (efecto mejorado) --- */
.custom-control span {
  background: linear-gradient(135deg, #003087, #0056b3);
  border-radius: 50%;
  padding: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-control:hover span {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 48, 135, 0.4);
  filter: brightness(1.15);
}

/* Hero ocupa todo el ancho del container, sin padding extra */
.hero-seccion {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 40px;
  /* puedes ajustar el espacio hacia la siguiente sección */
  background: transparent !important;
  /* sin fondo blanco */
  box-shadow: none !important;
  /* sin sombra de bloque */
}

/* El hero no tiene bordes redondeados */
.hero-seccion .carousel {
  border-radius: 0 !important;
}

.hero-seccion .slider-img {
  border-radius: 0 !important;
}

/* Fondo oscuro encima de cada slide */
.carousel-overlay {
  background: rgba(0, 0, 0, 0.45);
  /* oscurece un poco la imagen */
  height: 100%;
  width: 100%;
  padding: 2rem;
}

/* Texto del hero */
.carousel-overlay h1 {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
}

.carousel-overlay p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-nosotros {
  background: url('../img/nosotros_bg.jpg') no-repeat center center/cover;
  min-height: 60vh;
  position: relative;
  padding: 60px 0;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 135, 0.55);
}

.hero-nosotros .container {
  position: relative;
  z-index: 2;
}

/* Cards de miembros */
.miembro {
  border: none;
  background: #f9f9f9;
  border-bottom: 1px solid #003087;
  transition: all 0.3s ease;
}

.miembro:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 48, 135, 0.2);
}

.historia-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #003087, transparent);
  border-radius: 3px;
  margin: 2rem 0;
  /* espacio arriba y abajo */
}

/* Imagen de Actualización de la Ley */
.historia img[alt="Ley Actualización"] {
  max-width: 750px;
  /* límite ancho */
  width: 100%;
  height: auto;
}

.container img[alt="Consejo Directivo"] {
  max-width: 750px;
  /* límite ancho */
  width: 100%;
  height: auto;
}

/* Imagen de Promulgación de la Ley */
.historia img[alt="Ley 31172"] {
  max-height: 350px;
  /* límite alto */
  width: auto;
  height: 100%;
  display: block;
  margin: 0 auto;
}

.text-primary {
  color: #003087 !important;
  /* ajusta según tu color institucional */
}

/* Botón con efecto moderno */
.btn-rol {
  background: linear-gradient(90deg, #003087, #0056d6);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.4);

  /* efecto flotante */
  animation: floatBtn 3s ease-in-out infinite;
}

/* Al pasar el mouse: crece y hace rebote */
.btn-rol:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 86, 214, 0.6);
  animation: bounceBtn 0.5s;
}

/* Destello de brillo */
.btn-rol::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: all 0.6s;
}

.btn-rol:hover::before {
  left: 100%;
}

/* Animación flotante */
@keyframes floatBtn {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* --- Contenedor para centrar --- */
.gif-wrapper {
  position: relative;
  display: inline-block;
  width: 240px;
  height: 240px;
}

/* --- Círculo que gira --- */
.circle-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 10px;
  /* grosor del borde */
  box-sizing: border-box;
  background: linear-gradient(135deg, #61dafb, #4cc9f0, #0d6efd);
  animation: rotate-border 6s linear infinite;
  z-index: 1;
}

/* --- Imagen fija encima --- */
.gif-bienvenida {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* --- Título Rol --- */
.titulo-rol {
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #0d6efd, #61dafb, #4cc9f0);
  background-clip: text;
  /* ✅ estándar */
  -webkit-background-clip: text;
  /* ✅ compatibilidad Safari/Chrome antiguos */
  color: transparent;
  /* estándar */
  -webkit-text-fill-color: transparent;
  /* ✅ compatibilidad */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  animation: fade-in 1.5s ease forwards;
}

/* --- Nombre del usuario --- */
.titulo-nombre {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.titulo-nombre::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #61dafb);
  border-radius: 2px;
  animation: slide-in 1.5s ease;
}

/* --- Subtexto --- */
.mensaje-sub {
  font-size: 1.1rem;
  color: #555;
  margin-top: 20px;
}

.mensaje-sub span {
  color: #0d6efd;
  text-shadow: 0 3px 8px rgba(13, 110, 253, 0.3);
  font-size: 1.2rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* --- Animaciones --- */
@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.requisitos-img {
  max-width: 580px;
  /* límite máximo en pantallas grandes */
  width: 100%;
  /* se adapta al ancho del contenedor */
  height: auto;
  /* mantiene proporción */
  object-fit: contain;
}

/* Campo de búsqueda */
.buscador-input {
  max-width: 400px;
  /* evita que se expanda demasiado */
  border-radius: 12px;
  padding: 6px 15px;
  transition: all 0.3s ease;
}

.buscador-input:focus {
  border-color: #4cc9f0;
  box-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
}

/* Botón Buscar */
.buscador-btn {
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.buscador-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tabla personalizada */
.custom-table {
  border-radius: 12px;
  overflow: hidden;
}

/* Forzar cabecera azul oscuro */
.custom-table thead tr th {
  background-color: #003087 !important;
  /* azul corporativo */
  color: #ffffff !important;
  /* texto blanco */
  border: none !important;
  padding: 14px;
  font-weight: 600;
}

/* Forzar íconos a blanco */
.custom-table thead th i {
  color: #ffffff !important;
}

/* Filas con efecto hover elegante */
.custom-table tbody tr {
  transition: all 0.25s ease-in-out;
}

.custom-table tbody tr:hover {
  background-color: #ffffff;
  /* mantiene fondo claro */
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.15);
  /* sombra azulada */
  transform: scale(1.005);
  /* leve zoom para dar vida */
  position: relative;
  z-index: 2;
  /* para que la sombra no se corte */
}

/* Cards - estilo limpio con L-delineado y hover glow */
.card-medio {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* overlay sutil animado */
.card-medio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.06), rgba(0, 86, 179, 0.04));
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  border-radius: inherit;
  z-index: 0;
}

.card-medio:hover::before {
  opacity: 1;
}

/* hover glow */
.card-medio:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 48, 135, 0.18);
  border-color: #003087;
}

/* esquinas en L (ahora redondeadas) */
.card-medio .corner {
  position: absolute;
  width: 42px;
  height: 42px;
  z-index: 3;
  pointer-events: none;
}

.card-medio .corner.top-left {
  top: 0;
  left: 0;
  border-top: 3px solid #003087;
  border-left: 3px solid #003087;
  border-top-left-radius: 16px;
  /* sigue el radio del card */
}

.card-medio .corner.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid #003087;
  border-right: 3px solid #003087;
  border-bottom-right-radius: 16px;
  /* sigue el radio del card */
}

/* contenido encima */
.card-medio>* {
  position: relative;
  z-index: 2;
}

/* Ícono/logo circular (con gradiente original y glow) */
.card-medio .card-icon {
  background: linear-gradient(135deg, #003087, #0056b3);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 12px auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 48, 135, 0.3);
  transition: transform 0.3s ease;
  z-index: 2;
}

.card-medio:hover .card-icon {
  transform: rotate(6deg) scale(1.05);
}

.card-medio .card-logo {
  max-height: 60px;
}

/* Texto seleccionable */
.card-medio p,
.card-medio h4,
.card-medio h5,
.card-medio small {
  user-select: text;
  -webkit-user-select: text;
}

/* Botón copiar */
.btn-copy {
  border: none;
  background: #003087;
  color: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: #198754 !important;
}

/* tooltip temporal "Copiado" */
.copy-tooltip {
  position: fixed;
  padding: 6px 10px;
  background: #003087;
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.copy-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-medio .card-logo {
  max-height: 60px;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}

#tabla-licenciados {
  width: 100%;
  table-layout: auto;
  /* deja que las columnas se ajusten dinámicamente */
  border-collapse: collapse;
}

/* Todas las celdas */
#tabla-licenciados th,
#tabla-licenciados td {
  vertical-align: middle;
  white-space: normal;
  /* permite saltos de línea */
  word-wrap: break-word;
  /* rompe palabras largas */
  padding: 6px 8px;
}

/* Columna N° → pequeña */
#tabla-licenciados th:nth-child(1),
#tabla-licenciados td:nth-child(1) {
  width: 5%;
}

/* Columna Nombres → prioridad grande */
#tabla-licenciados th:nth-child(2),
#tabla-licenciados td:nth-child(2) {
  width: 40%;
}

/* Columna DNI → mediana */
#tabla-licenciados th:nth-child(3),
#tabla-licenciados td:nth-child(3) {
  width: 15%;
}

/* Columna Estado → más pequeña */
#tabla-licenciados th:nth-child(4),
#tabla-licenciados td:nth-child(4) {
  width: 10%;
}

/* Columna Acciones → prioridad también */
#tabla-licenciados th:nth-child(5),
#tabla-licenciados td:nth-child(5) {
  width: 30%;
}

#tabla-licenciados thead th {
  text-align: center;
  vertical-align: middle;
  /* opcional, para centrar también verticalmente */
}

/* Footer */
.footer {
  position: relative;
  background-color: #00186E;
  color: white;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.footer-overlay {
  background: transparent;
  padding: 60px 20px 30px;
  position: relative;
  z-index: 1;
}

/* Footer top */
.footer-top {
  display: flex;
  justify-content: space-around;
  /* Espaciado uniforme entre columnas */
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 5px;
}

/* Primera columna: logo + nombre */
.footer-logo-col {
  flex: 1 1 200px;
  /* ocupa proporcionalmente como las otras columnas */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo-col img.logo-img-footer {
  height: 100px;
  margin-bottom: 15px;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.footer-logo-col img.logo-img-footer:hover {
  transform: rotate(-5deg) scale(1.1);
  filter: brightness(1.2);
}

.nombre-colegio {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  max-width: 200px;
  word-wrap: break-word;
}

/* Otras columnas */
.footer-servicios,
.footer-contacto,
.footer-redes {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.footer-servicios h4,
.footer-contacto h4,
.footer-redes h4 {
  font-weight: 800;
  font-size: 1.1rem;
  /* tamaño más pequeño */
  margin-bottom: 12px;
  color: white;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px black;
}

/* Listas y links */
.footer-servicios ul,
.footer-contacto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-servicios ul li,
.footer-contacto ul li {
  margin-bottom: 10px;
}

.footer-servicios ul li a,
.footer-contacto ul li a {
  color: white;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.4s, transform 0.3s;
}

.footer-servicios ul li a::after,
.footer-contacto ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -3px;
  background: #61dafb;
  transition: width 0.4s;
}

.footer-servicios ul li a:hover::after,
.footer-contacto ul li a:hover::after {
  width: 100%;
}

.footer-servicios ul li a:hover,
.footer-contacto ul li a:hover {
  transform: translateX(5px) scale(1.05);
  color: #61dafb;
}

/* Redes sociales */
.footer-redes a {
  font-size: 2rem;
  margin-right: 25px;
  color: white;
  display: inline-block;
  transition: transform 0.4s, color 0.4s;
}

.footer-redes a:hover {
  color: #61dafb;
  transform: scale(1.5) rotate(10deg);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #ffffff33;
  padding-top: 15px;
  font-size: 0.9rem;
  gap: 10px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #61dafb;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.footer-bottom a:hover {
  color: #ffffff;
  transform: scale(1.05);
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-servicios,
  .footer-contacto,
  .footer-redes {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nombre-colegio {
    max-width: 90%;
    font-size: 1rem;
  }
}

/* Contenedor centrado para paginación */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Estilo general de links de paginación */
.pagination .page-item .page-link {
  color: #003087;
  /* azul institucional */
  background-color: #f0f0f0;
  /* fondo suave */
  border: 1px solid #00308733;
  /* borde tenue */
  border-radius: 6px;
  /* esquinas redondeadas */
  margin: 0 2px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 48, 135, 0.08);
}

/* Hover y activo */
.pagination .page-item .page-link:hover {
  background-color: #003087;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.25);
}

/* Página activa */
.pagination .page-item.active .page-link {
  background-color: #0044aa;
  color: #fff;
  border-color: #003087;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

/* Flechas de paginación */
.pagination .page-item.disabled .page-link {
  color: #aaa;
  cursor: not-allowed;
  background-color: #e9ecef;
}

/* Iconos de flechas (si usas Bootstrap 5) */
.pagination .page-link i {
  font-size: 0.9rem;
}

/* --- SECCIÓN NOTICIAS --- */

/* Tarjeta base */
.news-card {
  transition: all 0.35s ease-in-out;
  background: #fff;
  border-radius: 16px !important;
  /* Bordes redondeados consistentes */
  overflow: hidden;
}

/* Efecto Hover: Levantar tarjeta + Sombra fuerte */
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 48, 135, 0.2) !important;
}

/* Contenedor de imagen para enmascarar el zoom */
.news-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

/* Imagen con transición */
.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Zoom suave al pasar el mouse sobre la tarjeta */
.news-card:hover .news-img {
  transform: scale(1.1);
}

/* Badge de fecha flotante */
.news-date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  color: #003087;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  transition: background 0.3s ease, color 0.3s ease;
}

.news-card:hover .news-date-badge {
  background: #003087;
  color: #fff;
}

/* Botón "Leer más" con efecto outline que se llena al hover */
.news-card .btn-outline-primary {
  color: #003087;
  border-color: #003087;
  transition: all 0.3s ease;
}

.news-card:hover .btn-outline-primary {
  background-color: #003087;
  color: #fff;
}

/* --- ACORDEÓN INSTITUCIONAL --- */
.btn-institucional {
  background-color: #003087;
  color: white;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 48, 135, 0.2);
}

.btn-institucional:hover,
.btn-institucional:focus,
.btn-institucional[aria-expanded="true"] {
  background-color: #00225d;
  /* Un tono más oscuro para hover */
  color: white;
  box-shadow: 0 6px 12px rgba(0, 48, 135, 0.3);
  transform: translateY(-2px);
}

.card-historial {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  /* Fondo blanco limpio */
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-historial-header {
  background-color: #f0f2f5;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  color: #003087;
  font-weight: 800;
  text-align: center;
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* =========================================
   SECCIÓN GALERÍA (NUEVO CARRUSEL INFINITO)
   ========================================= */

/* Contenedor principal */
.gallery-wrapper {
  position: relative;
  width: 100%;
}

.gallery-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  /* Ocultar barra de scroll para estética limpia */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

/* Padding dinámico ajustado para que se centre perfectamente dentro de la clase .container de Bootstrap */
/* Incrementado padding inferior a 60px para evitar clipping de sombras, y reducido el superior a 10px para acortar espacio */
.gallery-scroll {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px calc(50% - 140px) 60px;
  width: max-content;
}

/* Tarjeta de imagen base */
.gallery-item {
  flex: 0 0 280px;
  height: 220px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Efecto Hover Rediseñado (Título + Icono) */
.gallery-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 135, 0.85);
  /* Azul institucional transparente */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

.gallery-info .titulo-hover {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-info i {
  color: white;
  font-size: 1.8rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

/* Cuando el mouse pasa por encima */
.gallery-item:hover .gallery-info {
  opacity: 1;
}

.gallery-item:hover .gallery-info .titulo-hover,
.gallery-item:hover .gallery-info i {
  transform: translateY(0);
}

/* =========================================
   PAGINACIÓN DE GALERÍA (PUNTITOS)
   ========================================= */

/* Contenedor centralizado para puntitos */
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0px;
  padding-bottom: 20px;
}

/* Estética de cada puntito (Inactivo) */
.pagination-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 48, 135, 0.3);
  /* Azul institucional muy transparente */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

/* Hover sutil */
.pagination-dot:hover {
  background-color: rgba(0, 48, 135, 0.6);
  transform: scale(1.1);
}

/* Estética del puntito Activo (Siguiendo colores de navbar/tablas) */
.pagination-dot.activo {
  background-color: #003087;
  /* Azul institucional sólido */
  box-shadow: 0 0 8px rgba(0, 48, 135, 0.5);
  /* Brillo institucional suave */
  transform: scale(1.25);
  cursor: default;
}

/* =========================================
   NUEVO DISEÑO STRICTO (IMAGEN)
   ========================================= */

:root {
  --blue-dark: #021a5a;
  --yellow-main: #fddb00;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
}

/* Tipografía global Inter */
body {
  font-family: 'Inter', sans-serif;
}

/* Nav & Navbar */
.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.nav-menu .nav-link::before {
  background-color: var(--yellow-main);
  height: 2px;
}

.btn-buscar-colegiado {
  background-color: var(--blue-dark);
  color: white;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn-buscar-colegiado:hover {
  background-color: #01113b;
  color: white;
}

.custom-btn-square {
  border-radius: 0;
  font-weight: 600;
}

/* Top Alert Bar */
.top-alert-bar {
  background-color: var(--yellow-main);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Hero Slider */
.hero-slider-section {
  height: 85vh;
  min-height: 750px;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 26, 90, 0.95) 0%, rgba(2, 26, 90, 0.7) 40%, rgba(2, 26, 90, 0.1) 100%);
  z-index: 1;
}

.object-fit-cover {
  object-fit: cover;
}

.hero-static-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-badge {
  color: var(--yellow-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-hero-outline {
  border: 1px solid white;
  background: transparent;
  font-size: 0.9rem;
}

.btn-hero-outline:hover {
  background: white;
  color: var(--blue-dark) !important;
}

/* Cards Superpuestas */
.custom-square-card {
  border-radius: 0;
  transition: transform 0.3s ease;
  position: relative;
}

.custom-square-card:hover {
  transform: translateY(-5px);
}

.card-blue-top::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 6px;
  background-color: var(--blue-dark);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue-dark);
  border: 1px solid rgba(2, 26, 90, 0.2);
}

.custom-card-link {
  transition: color 0.3s;
}

.custom-card-link:hover {
  color: var(--blue-dark) !important;
}

.custom-card-link:hover i {
  transform: translateX(5px);
  transition: transform 0.3s;
}

/* Somos la institucion */
.yellow-underline {
  width: 100px;
  height: 2px;
  background-color: var(--yellow-main);
  transition: width 0.4s ease-in-out;
}

.institution-text-container:hover .transition-underline {
  width: 100%;
}

.institution-text-container {
  cursor: default;
}

/* Indicadores */
.indicators-section {
  background-color: var(--blue-dark);
}

.indicator-col {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 8px;
}

.indicator-col:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.indicator-col:hover .text-yellow {
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  transform: scale(1.08);
}

.indicator-col:hover i {
  opacity: 1 !important;
  color: var(--yellow-main) !important;
  transform: scale(1.3) rotate(5deg);
}

.indicator-col .text-yellow {
  display: inline-block;
  transition: all 0.4s ease;
}

.indicator-col i {
  transition: all 0.4s ease;
}

.indicator-col:last-child {
  border-right: none;
}

.text-yellow {
  color: var(--yellow-main);
}

.indicator-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Noticias y Eventos */
.title-underline-left {
  width: 40px;
  height: 2px;
  background-color: var(--yellow-main);
  margin-top: 10px;
  margin-bottom: 25px;
}

.section-title-wrapper {
  cursor: default;
}

.section-title-wrapper .transition-underline {
  transition: width 0.4s ease-in-out;
}

.section-title-wrapper:hover .transition-underline {
  width: 100%;
}

.event-date-box {
  display: grid;
  flex-shrink: 0;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  overflow: hidden;
  border: 1px solid #b8c5d6;
  background: #ffffff;
  color: #021a5a;
  line-height: 1;
  text-align: center;
  transition: all 0.3s ease;
}

.event-date-month {
  padding: 5px 3px;
  background: #021a5a;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.event-date-day {
  padding-top: 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #021a5a;
  transition: all 0.3s ease;
}

.event-date-year {
  padding-bottom: 6px;
  color: #6f7c8f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  transition: all 0.3s ease;
}

.event-item {
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 8px;
  margin-left: -15px;
  margin-right: -15px;
}

.event-item:hover {
  background-color: rgba(2, 26, 90, 0.03);
  transform: translateX(8px);
}

.event-item:hover .event-date-box {
  border-color: #021a5a;
}

.custom-news-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 8px;
  overflow: hidden;
}

.custom-news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.custom-news-card .news-img-box {
  height: 180px;
  background-color: #e9ecef;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.custom-news-card .placeholder-img {
  background-color: #dcdcdc;
}

.news-lines .line {
  height: 2px;
  background-color: #dcdcdc;
  margin-bottom: 6px;
}

.news-lines .line-1 {
  width: 100%;
}

.news-lines .line-2 {
  width: 80%;
}

.news-lines .line-3 {
  width: 60%;
}

.text-blue {
  color: var(--blue-dark);
}

.border-light-gray {
  border-color: #eaeaea !important;
}

.bg-yellow {
  background-color: var(--yellow-main);
}

/* Aliados */
.aliado-item {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aliado-item:hover {
  transform: translateY(-8px);
}

.grayscale-logo {
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.aliado-item:hover .grayscale-logo {
  filter: grayscale(0%) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
  opacity: 1;
  transform: scale(1.1);
}

.aliado-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6c757d;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.aliado-item:hover .aliado-name {
  color: #333333;
}

/* Prefooter */
.btn-yellow-square {
  background-color: var(--yellow-main);
  border: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-yellow-square:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--yellow-main) !important;
  color: #000 !important;
}

/* Footer */
.social-outline-btn {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
}

.social-outline-btn:hover {
  border-color: #fff;
  color: #fff;
}

.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .indicator-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .indicator-col:last-child {
    border-bottom: none;
  }

  .footer-col-1,
  .footer-col-2,
  .footer-col-3,
  .footer-col-4 {
    border-right: none;
  }
}


/* Animaciones de aparición (Scroll) */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botón Leer más en Noticias (Home) igual al de Noticias */
.btn-read-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #0b3472;
  box-shadow: 0 2px 4px rgba(0, 29, 75, 0.22);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-read-more i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.btn-read-more:hover,
.btn-read-more:focus-visible {
  outline: none;
  background: #ffdb00;
  box-shadow: 0 5px 12px rgba(0, 29, 75, 0.3);
  color: #0b3472;
  transform: translateY(-2px);
}

.btn-read-more:active {
  background: #e6c500;
  box-shadow: 0 2px 4px rgba(0, 29, 75, 0.22);
  color: #0b3472;
  transform: translateY(0);
}

.btn-read-more:hover i {
  transform: translateX(5px);
}

/* Animaciones del Hero - Estilo Antigravity */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.carousel-item .hero-badge,
.carousel-item .hero-title,
.carousel-item .hero-description,
.carousel-item .btn-hero-outline {
  opacity: 0;
}

.carousel-item.active .hero-badge {
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carousel-item.active .hero-title {
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.carousel-item.active .hero-description {
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.carousel-item.active .btn-hero-outline {
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

/* ======================================================
   Botón Primario Global (Azul → Amarillo al hover)
   Referencia visual: contact-channel-card de Contacto
   ====================================================== */
.btn-primario {
  background-color: #00215a;
  color: #fff;
  border: 2px solid #00215a;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-primario:hover,
.btn-primario:focus {
  background-color: #fddb00;
  color: #00215a;
  border-color: #fddb00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(253, 219, 0, 0.3);
  outline: none;
}
.btn-primario:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- DISEÑO MODERNO PARA FILTROS (SELECT) --- */
.modern-filter-select {
  background-color: #ffffff;
  color: #334155 !important; /* Texto gris oscuro profesional */
  font-weight: 500;
  border: 1px solid #cbd5e1 !important; /* Borde gris sutil */
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  appearance: none; /* Permite estilar mejor en algunos navegadores */
}

.modern-filter-select:hover {
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modern-filter-select:focus {
  border-color: #003087 !important;
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.15) !important;
  outline: none;
}

/* --- DISEÑO MODERNO PARA BOTÓN ACCIÓN EXTERNA (SUNEDU) --- */
.modern-action-btn {
  background-color: #eef3fb;
  color: #003087 !important;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.modern-action-btn:hover {
  background-color: #003087;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 48, 135, 0.25);
  transform: translateY(-2px);
}
.modern-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 48, 135, 0.2);
}

/* --- DISEÑO ESTÁNDAR PARA NOTAS (PILL) --- */
.nota-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 50rem;
  background-color: #f8fbff;
  border: 1px solid #d0e1f9;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  text-align: left;
}
.nota-pill i {
  color: #0d6efd;
  font-size: 1.1rem;
}
.nota-pill span {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

/* --- PANELES RECTANGULARES GLOBALES --- */
/* Override global para asegurar que todos los paneles sean rectangulares (esquinas rectas) */
.card,
.tarjeta-principal,
.tarjeta-secundaria,
.bloque-seccion {
  border-radius: 0 !important;
}

/* ====================================================================
   SISTEMA DE DISEÑO INSTITUCIONAL — Intranet
   Basado en la vista de Contenido Institucional
   ==================================================================== */

/* --- Tarjeta institucional (contenedor principal de secciones) --- */
.card-institucional {
  background-color: #fff;
  border: 1px solid #dbe3ed;
  border-top: 3px solid #0b3472;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .card-institucional {
    padding: 1rem;
  }
}

/* --- Títulos y subtítulos de sección --- */
.titulo-institucional {
  color: #04154c;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.subtitulo-institucional {
  color: #6c757d;
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* --- Dashboard: tarjetas de métricas --- */
.metric-card {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-left: 4px solid #0b3472;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.metric-card:hover {
  box-shadow: 0 4px 16px rgba(11, 52, 114, 0.12);
  transform: translateY(-2px);
}

.metric-card .metric-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.metric-card .metric-icon.bg-primary-inst {
  background-color: #0b3472;
}

.metric-card .metric-icon.bg-success-inst {
  background-color: #198754;
}

.metric-card .metric-icon.bg-warning-inst {
  background-color: #e8a209;
}

.metric-card .metric-icon.bg-danger-inst {
  background-color: #dc3545;
}

.metric-card .metric-icon.bg-info-inst {
  background-color: #0d6efd;
}

.metric-card .metric-icon.bg-secondary-inst {
  background-color: #6c757d;
}

.metric-card .metric-body {
  flex: 1;
  min-width: 0;
}

.metric-card .metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #04154c;
  line-height: 1.1;
}

.metric-card .metric-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* --- Dashboard: tarjeta de bienvenida --- */
.welcome-card {
  background: linear-gradient(135deg, #0b3472 0%, #163d6e 50%, #1a4a82 100%);
  color: #fff;
  padding: 2rem;
  border: none;
  margin-bottom: 1.5rem;
}

.welcome-card .welcome-greeting {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.welcome-card .welcome-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0;
}

.welcome-card .welcome-date {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* --- Dashboard: accesos rápidos --- */
.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe3ed;
  background-color: #fff;
  color: #04154c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.quick-link:hover {
  background-color: #0b3472;
  color: #fff;
  border-color: #0b3472;
}

.quick-link:hover i {
  color: #fff;
}

.quick-link i {
  font-size: 1.2rem;
  color: #0b3472;
  transition: color 0.25s ease;
}

/* --- Dashboard: badge de estado (Habilitado/Inhabilitado) --- */
.estado-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.estado-badge.habilitado {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.estado-badge.inhabilitado {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* =========================================================================
   AJUSTES DE TAMAÑO PARA LA INTRANET (Admin / Licenciado)
   ========================================================================= */

/* Escala general de texto dentro de la intranet */
#main-wrapper {
    font-size: 0.85rem;
}

/* Títulos y Encabezados internos */
#main-wrapper h1 { font-size: 1.5rem; }
#main-wrapper h2 { font-size: 1.3rem; }
#main-wrapper h3 { font-size: 1.1rem; }
#main-wrapper h4 { font-size: 1rem; }

/* Controles de Formulario, Campos de Texto y Listas Desplegables */
#main-wrapper .form-label,
#main-wrapper .form-check-label {
    font-size: 0.85rem;
    font-weight: 600;
}
#main-wrapper .form-control,
#main-wrapper .form-select,
#main-wrapper .input-group-text {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}
#main-wrapper .form-select {
    padding-right: 2.25rem !important; /* Restaurar espacio para la flecha nativa */
}

/* Botones Generales */
#main-wrapper .btn {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.7rem !important;
}
#main-wrapper .btn-sm,
#main-wrapper .btn-outline-primary,
#main-wrapper .btn-outline-success,
#main-wrapper .btn-outline-danger,
#main-wrapper .btn-outline-secondary {
    font-size: 0.75rem !important;
    padding: 0.15rem 0.4rem !important;
}

/* Tablas de Datos (DataTables / Tablas HTML) */
#main-wrapper .table {
    font-size: 0.8rem !important;
}
#main-wrapper .table thead th {
    font-size: 0.75rem !important;
    padding: 0.4rem !important;
}
#main-wrapper .table tbody td {
    padding: 0.3rem !important;
}

/* Paginación y Búsqueda de Tablas */
#main-wrapper .dataTables_wrapper {
    font-size: 0.85rem;
}
#main-wrapper .pagination .page-item .page-link {
    padding: 0.2rem 0.6rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

/* Barra Lateral (Sidebar) */
#main-wrapper .sidebar-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
#main-wrapper .sidebar-link i {
    font-size: 1.05rem;
}
#main-wrapper .sidebar-user-info {
    font-size: 0.8rem;
    padding: 1rem;
}

/* Tarjetas y Contenedores */
#main-wrapper .card-body {
    padding: 1rem;
}

/* Modales en Intranet */
#main-wrapper .modal-title {
    font-size: 1rem !important;
}
#main-wrapper .modal-header,
#main-wrapper .modal-footer {
    padding: 0.5rem 1rem !important;
}
#main-wrapper .modal-body {
    padding: 1rem !important;
}
#main-wrapper .modal-body .list-group-item {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}
#main-wrapper .modal-body p,
#main-wrapper .modal-body span {
    font-size: 0.85rem;
}

/* Acordeones en Intranet */
#main-wrapper .accordion-button {
    font-size: 0.85rem !important;
    padding: 0.6rem 1rem !important;
}
#main-wrapper .accordion-body {
    padding: 1rem !important;
}

/* Ajustes Responsive Hero Home */
@media (max-width: 767.98px) {
  .hero-slider-section {
    min-height: 550px !important;
  }
  .superposed-cards-section {
    margin-top: -140px !important;
  }
  .hero-slider-section .hero-title {
    font-size: 2rem !important;
  }
  .hero-slider-section .hero-description {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    min-height: auto !important;
  }
  .hero-slider-section .btn-hero-outline {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  .hero-slider-section .container {
    padding-top: 80px !important;
  }
}
