/* 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: 999;
  animation: fadeDown 0.7s ease-out forwards;
}

.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.05rem;
  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: 600;
  font-size: 1.05rem;
  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.5rem; /* íconos más grandes */
}


.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: flex-start;
    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 {
  width: 200px;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  height: calc(100vh - 70px);
  top: 70px; /* altura navbar */
  position: sticky;
  z-index: 1000;
  transition: transform 0.3s ease, width 0.3s ease;
  padding: 0;
}

/* Imagen */
.sidebar-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contenido principal */
#main-wrapper {
  display: flex;
}

#main-content {
  flex-grow: 1;
  padding: 2rem;
  transition: margin-left 0.3s ease;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sidebar {
    width: 80px;
  }

  .sidebar .link-text,
  .sidebar .user-name,
  .sidebar .user-role {
    display: none;
  }
}

/* Pantallas muy pequeñas (hamburguesa) */
@media (max-width: 576px) {
  .sidebar {
    transform: translateX(-100%);
    position: sticky; /* sticky no funciona bien al ocultar con transform */
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    background-color: #f8f9fa;
    z-index: 1050;
    transition: transform 0.3s ease;
    width: 80px; /* el ancho comprimido en pantallas pequeñas */
  }

  .sidebar.show {
    transform: translateX(0);
    width: 80px; /* conserva el mismo ancho comprimido */
  }

  #sidebarToggle {
    display: block !important;
    position: sticky;
    top: 72px;
    left: 10px;
    z-index: 1055;
  }
}

#sidebarToggle {
  display: none;
}

/* 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.5rem 1rem;
  font-size: 1.05rem;
  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: 1rem;
}

.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: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    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;
    border-bottom: 1px solid #00308722;
    padding-bottom: 0.4rem;
    margin-top: 2rem;
}

/* 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.svg') 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: 12px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* --- 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: url('../img/footer-bg.svg') no-repeat center center;
  background-size: cover;
  color: white;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.footer-overlay {
  background: rgba(0, 0, 0, 0.4);
  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: 8px;            /* esquinas redondeadas */
    margin: 0 3px;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    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: 1.1rem;
}

/* --- 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;
}
