:root {
  --dark-bg:    #0f0f0f;
  --mid-dark:   #1a1a1a;
  --light-gray: #6c757d;
  --gold:       #d4af37;
  --gold-dark:  #b8952d;
}

/* Reset básico */
body {
  margin: 0; padding: 0;
  background-color: var(--dark-bg);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

/* Glass effect */
.glass, .glass-nav {
  background: rgba(31,31,31,0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: .75rem;
}

/* Navbar */
.glass-nav {
  margin: .75rem 1rem;
  padding: .5rem 1rem;
}

/* Animaciones generales */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animated {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

/* Hero */
@keyframes gradientBG {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
.hero {
  position: relative;
  margin-top: 70px;
  height: calc(100vh - 70px);
  background:
    linear-gradient(180deg, rgba(15,15,15,0.6), rgba(15,15,15,0.6)),
    url("../src/herobanner.png") center/cover no-repeat;
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero .overlay {
  position: absolute; inset: 0; background: rgba(15,15,15,0.6);
}
.hero .z-2 { position: relative; z-index: 2; }
.hero-logo {
  width: 120px;
  display: block; margin: 0 auto 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: fadeInUp 1s ease-out forwards;
}
.hero-title { animation: fadeInUp 1s ease-out 0.2s forwards; }
.hero-subtitle { animation: fadeInUp 1s ease-out 0.4s forwards; }
.hero-cta { animation: fadeInUp 1s ease-out 0.6s forwards; }

/* Blobs decorativos */
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.15;
  animation: blobMove 20s infinite ease-in-out;
}
.blob1 {
  width: 300px; height: 300px;
  top: 10%; left: 15%;
  animation-delay: 0s;
}
.blob2 {
  width: 200px; height: 200px;
  bottom: 15%; right: 10%;
  animation-delay: 5s;
}
@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -30px) scale(1.1); }
  66%  { transform: translate(-25px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Botón dorado */
.btn-gold {
  background-color: var(--gold);
  color: var(--dark-bg);
  border: none;
  font-weight: 600;
}
.btn-gold:hover {
  background-color: var(--gold-dark);
}

/* Tarjetas de cursos */
.card {
  background-color: var(--mid-dark);
  border: none;
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.card-title { color: var(--gold); }
.card-text  { color: var(--light-gray); }
.card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Paginación */
.pager {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  margin-top: 2rem;
}
.page-info { color: var(--light-gray); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
}

/* Back to top */
#backToTop {
  position: fixed; bottom: 20px; right: 20px;
  display: none; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; padding: 0;
}

.course-nav {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
  padding: .75rem 1rem;
  text-align: center;
  z-index: 1060; /* por encima de todo */
}

.course-nav-title {
  margin: 0 0 .5rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.course-nav-info {
  color: var(--light-gray);
  font-size: 0.85rem;
  min-width: 40px;
  display: inline-block;
  text-align: center;
}

.glass-card {
  background: rgba(31, 31, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: .75rem;
}

.hero-heading {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-shadow: 0 0 8px var(--gold-dark);
  padding: .5rem 1rem;
  background: rgba(31,31,31,0.4);
  border-radius: .75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Líneas decorativas a ambos lados */
.hero-heading::before,
.hero-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 2px;
  background: var(--gold);
}
.hero-heading::before {
  left: -4rem;
}
.hero-heading::after {
  right: -4rem;
}


/* Contenedor del loader: fondo glass, centrado, tamaño máximo */
.loader-container {
  max-width: 300px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

/* Tamaño fijo y mantenido de la animación GIF */
.loader-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  /* opcional: sombra para que destaque sobre el glass */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Texto más legible y espaciado */
.loader-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--light-gray);
  font-weight: 600;
}

/* (Opcional) Acelerar la animación de entrada si quieres */
.loader-container.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}
