@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300italic,600italic,300,600");

/* --- SCROLLBAR PERSONALIZADA --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #011730; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.4); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.8); }

body {
  background-image: url("../img/back.jpg"); 
  background-repeat: no-repeat; 
  background-position: center center; 
  background-attachment: fixed; 
  background-size: cover; 
  color: #ffffff;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  padding-bottom: 80px;
  background-color: #011730;
}

/* =================================================== */
/* --- TABLERO DE CONTROL HORIZONTAL  ------ */
/* =================================================== */
/* Los 4 Botones Superiores NAVEGACIÓN */
.glass-btn-nav {
  background: transparent !important; 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #a0b2c6 !important; 
  border-radius: 8px;
  padding: 12px 10px;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.2);*/
  text-align: center;
  appearance: none; 
  -webkit-appearance: none;
}

/* Efecto al pasar el ratón (Hover) */
.glass-btn-nav:hover {
  background: rgba(1, 23, 48, 0.6) !important;
  color: #ffffff !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* EL BOTÓN ACTIVO  */
.glass-btn-nav[aria-expanded="true"] {
  background: rgba(0,17,30,0.93) !important; 
  color: #a0b2c6  !important; 
  border: 1px solid rgba(160,130,34,0.30) !important; 
  /* subrayado dorado interno en lugar de una caja completa */
  box-shadow: inset 0 -4px 0 #d4af37, 0 6px 15px rgba(0,0,0,0.4) !important; 
  font-weight: 700;
  transform: translateY(-2px);
}

/* El Contenedor Principal */
/* Los Botones POSGRADOS */
.glass-btn {
  background: rgba(1, 23, 48, 0.45) !important; 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important; 
  color: #a0b2c6 !important; 
  border-radius: 8px;
  padding: 12px 10px;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
  appearance: none; 
  -webkit-appearance: none;
}

/* Efecto al pasar el ratón (Hover) */
.glass-btn:hover {
  background: rgba(1, 23, 48, 0.6) !important;
  color: #ffffff !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* EL BOTÓN ACTIVO  */
.glass-btn[aria-expanded="true"] {
  background: rgba(1, 23, 48, 0.85) !important; 
  color: #d4af37 !important; 
  border: 1px solid rgba(212, 175, 55, 0.3) !important; 
  /* subrayado dorado interno en lugar de una caja completa */
  box-shadow: inset 0 -4px 0 #d4af37, 0 6px 15px rgba(0,0,0,0.4) !important; 
  font-weight: 700;
  transform: translateY(-2px);
}

/* El Contenedor Principal */
.glass-panel {
  background: rgb(1 23 48 / 57%) !important; 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3) !important; 
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  margin-top: 15px; 
}
.glass-panel-2 {
  background: rgb(1 23 48 / 57%) !important; 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3) !important; 
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  margin-top: 15px; 
}
/* Cuadrícula para los cursos dentro del panel */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
}

/* --- ENLACES INTERACTIVOS --- */
.course-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /*border-left: 3px solid transparent;*/
}

.course-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(6px);
  border-left: 3px solid #d4af37;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.course-link p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* --- ESCUDOS CON ZOOM --- */
.course-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin-right: 15px;
  filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.25));
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
  border-radius: 50%; 
}

.course-link:hover .course-icon {
  transform: scale(1.15);
  filter: drop-shadow(0px 0px 8px rgba(212, 175, 55, 0.7));
}


/* --- PIE DE PÁGINA --- */



html {
  min-height: 100%;
  position: relative;
}
body {
  margin-bottom: 80px; 
}

.mini {
  font-size: 11px;
  color: #a0b2c6;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Animaciones */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- 1. INDICADOR TIPO PESTAÑA --- */
.glass-btn {
  position: relative;
  z-index: 1;
}


.glass-btn[aria-expanded="true"] {
  z-index: 10; 
}

/* La Flecha Indicadora */
.glass-btn::after {
  content: "";
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 14px 0 14px; 
  border-style: solid;
  border-color: #d4af37 transparent transparent transparent; 
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; 
  filter: drop-shadow(0px 4px 5px rgba(0,0,0,0.5)); 
}

/* Animación de la flecha al activar el botón */
.glass-btn[aria-expanded="true"]::after {
  opacity: 1;
  transform: translate(-50%, 0px); 
}


/* --- 2. ANIMACIÓN EN CASCADA --- */

.collapse .course-link {
  opacity: 0;
  transform: translateY(15px);
}

/* Cuando el panel se abre*/
.collapse.show .course-link {
  animation: slideUpFade 0.4s ease forwards;
}

/* Retrasos escalonados para que no aparezcan todos de golpe */
.collapse.show .col-md-6:nth-child(1) .course-link { animation-delay: 0.1s; }
.collapse.show .col-md-6:nth-child(2) .course-link { animation-delay: 0.2s; }
.collapse.show .col-lg-4:nth-child(1) .course-link { animation-delay: 0.1s; }
.collapse.show .col-lg-4:nth-child(2) .course-link { animation-delay: 0.2s; }
.collapse.show .col-lg-4:nth-child(3) .course-link { animation-delay: 0.3s; }
.collapse.show .col-lg-5:nth-child(1) .course-link { animation-delay: 0.1s; }
.collapse.show .col-lg-5:nth-child(2) .course-link { animation-delay: 0.2s; }
.collapse.show .col-lg-5:nth-child(3) .course-link { animation-delay: 0.3s; }
.collapse.show .col-lg-5:nth-child(4) .course-link { animation-delay: 0.4s; }

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

/* =================================================== */
/* --- EFECTO: REFLEJO DE CRISTAL- */
/* =================================================== */


.glass-btn {
  position: relative;
}


.glass-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0; 
  border-radius: inherit; 
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 30%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  pointer-events: none;
  z-index: 1;
  animation: brilloAutomatico 5s infinite;
}

/* 3. Al pasar el ratón: El reflejo cruza */
.glass-btn:hover::before {
  background-position: 100% 0;
  transition: background-position 0.6s ease-in-out;
}

/* 4. Animación automática: Un destello cada 5 segundos */
@keyframes brilloAutomatico {
  0% { background-position: -100% 0; }
  10% { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}
.bg-dark {
    --bs-bg-opacity: 0.9;
    /* Redefinimos el color base a un "casi negro" (RGB: 15, 15, 15) */
    --bs-dark-rgb: 15, 15, 15; 
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}
video {
	
    object-fit: cover;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}
.navega{
  z-index: 100; position: relative;
  display: grid;
  place-items: center;   /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
  height: 70px;           /* O la altura que necesites */
	    background: rgba(1, 23, 48, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.navega img{
  margin: 5px;
	height: 50px;
}@media (max-width: 575.98px) { 
.navega img{
  align-self: center;
}
	}