
/* Sobrescribir estilos de Bootstrap para ocultar la barra de scroll */
::-webkit-scrollbar {
  display: none !important;
}

::-webkit-scrollbar-track {
  display: none !important;
}

::-webkit-scrollbar-thumb {
  display: none !important;
}

/* Ocultar la barra de scroll en Firefox */
* {
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
}

/* Ocultar la barra de scroll en IE/Edge */
* {
  -ms-overflow-style: none !important;
}


/* Estilos para la sección del curso */
    .curso-info {
      padding: 120px 0 30px;
      color: #222D59;
      background-color: #131f35;
    }
    
    /* Bajar solo la imagen del logo en la página del curso 1 */
    body.curso1 .navbar-brand img.logo {
      margin-top: -12.5px; /* Ajusta este valor según cuánto quieras bajar la imagen */
      display: block; /* Asegura que el margen se aplique correctamente */
    }

  .curso-info h2, .curso-info h3 {
    color: #ffffff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .curso-titulo {
    font-family: 'Anton', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: #222D59;
  }

  .curso-subtitulo {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #222D59;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .curso-subtitulo i {
    color: #222D59;
    font-size: 1.8rem;
  }

  .seccion-titulo {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .seccion-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: width 0.3s ease;
  }


  .seccion-titulo i {
    margin-right: 0.5rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
  }

  .curso-imagen-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(34, 45, 89, 0.15);
    border: 1px solid rgba(34, 45, 89, 0.1);
  }

  .curso-imagen {
    width: 100%;
    transition: transform 0.3s ease;
  }

  /* Efecto hover eliminado */
  .curso-imagen-container .curso-imagen {
    transform: scale(1);
  }

  .curso-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(25, 42, 86, 0.9), rgba(25, 42, 86, 0.7));
    transform: translateY(0);
    opacity: 0;
    color: #ffffff;
    /* Transición eliminada */
  }

  /* Efectos hover del overlay eliminados */
  .curso-overlay {
    opacity: 0;
  }
  
  .curso-overlay h3,
  .curso-overlay p {
    opacity: 0;
    transform: translateY(20px);
  }

  .curso-overlay h3 {
    color: #ffffff;
    margin: 0 0 10px 0;
    opacity: 1;
    transform: translateY(0);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  }
  
  .curso-overlay p {
    color: #ffffff !important;
    margin: 0 0 15px 0;
    opacity: 1;
    transform: translateY(0);
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  }

  .curso-detalle {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .curso-seccion {
    margin-bottom: 40px;
  }

  .curso-seccion h3 {
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
  }
  
  .curso-seccion h3 i {
    color: #ffffff;
    margin-right: 12px;
    width: 30px;
    text-align: center;
  }

  .temario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  .tema-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
  }

  .tema-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .tema-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .tema-item:hover::before {
    transform: scaleX(1);
  }

  .tema-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #4995e1;
  }
  
  .tema-item .fa-futbol {
    color: #4995e1 !important;
    -webkit-text-fill-color: #4995e1 !important;
  }

  .tema-item:hover i {
    transform: scale(1.1);
  }

  .tema-item span {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
    position: relative;
    padding-left: 5px;
  }

  .tema-item span::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    transition: width 0.3s ease;
  }

  .tema-item:hover span::after {
    width: 100%;
  }

  .tema-item p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.3s ease;
  }

  .tema-item:hover p {
    color: #ffffff;
  }

  .objetivos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  .objetivo-item {
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.05), rgba(23, 136, 174, 0.05));
    border-radius: 10px;
    padding: 1.4rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid #ffffff;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
  }

  .objetivo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(22, 68, 121, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
  }

  .objetivo-item:hover {
    background: linear-gradient(145deg, rgba(97, 97, 150, 0.1), rgba(31, 130, 163, 0.1));
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .objetivo-item:hover::before {
    transform: translateX(0);
  }

  .objetivo-item i {
    font-size: 1.6rem;
    color: #4995e1; 
    margin-right: 15px;
    margin-top: 5px;
  }

  .objetivo-item:hover i {
    transform: rotate(5deg) scale(1.1);
  }

  .objetivo-item span {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 5px;
  }

  .objetivo-item p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.3s ease;
  }

  .objetivo-item:hover p {
    color: #ffffff;
  }

  .curso-seccion {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(62, 62, 71, 0.1));
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(23, 136, 174, 0.1);
    position: relative;
    overflow: hidden;
  }

  .curso-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 136, 174, 0.1), transparent);
    z-index: -1;
  }

  .curso-seccion:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(23, 136, 174, 0.3);
  }

  .curso-seccion h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .curso-seccion h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: width 0.3s ease;
  }

  .curso-seccion:hover h3::after {
    width: 100%;
  }

  .curso-seccion h3 i {
    margin-right: 0.8rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
  }

  .curso-seccion:hover h3 i {
    transform: scale(1.1);
  }

  .curso-imagen {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }

  .curso-imagen:hover {
    transform: scale(1.02);
  }

  .curso-lista {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }

  .curso-lista li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
  }

  .curso-lista li:last-child {
    border-bottom: none;
  }

  .curso-lista li:before {
    content: "•";
    color: rgb(23, 136, 174);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
  }

  .curso-lista li span {
    color: rgb(23, 136, 174);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
  }

  .curso-lista li p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
  }

/* Estilos para la sección de Modalidad */
.modalidad-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(34, 45, 89, 0.1);
  box-shadow: 0 4px 12px rgba(34, 45, 89, 0.08);
}

.modalidad-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(34, 45, 89, 0.15);
  border-color: rgba(34, 45, 89, 0.2);
}

.modalidad-icon {
  width: 50px;
  height: 50px;
  background: #222D59;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.modalidad-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.modalidad-content h4 {
  color: #222D59;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.modalidad-content p {
  color: #5D6B9B;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.modalidad-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.modalidad-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #5D6B9B;
  font-size: 0.9rem;
}

.modalidad-content ul li:before {
  content: '•';
  color: #222D59;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.modalidad-imagen {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(34, 45, 89, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  border: 1px solid rgba(34, 45, 89, 0.1);
}

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

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

/* Estilos responsivos */
@media (max-width: 991.98px) {
  .modalidad-imagen {
    margin-top: 30px;
    height: 300px;
  }
  
  .modalidad-item {
    flex-direction: column;
    text-align: center;
  }
  
  .modalidad-icon {
    margin: 0 auto 15px;
  }
  
  .modalidad-content ul {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .modalidad-content h4 {
    font-size: 1.2rem;
  }
  
  .modalidad-content p,
  .modalidad-content ul li {
    font-size: 0.85rem;
  }
}

/* Estilos para el scroll */
::-webkit-scrollbar {
  width: 6px;  /* Ancho del scroll vertical */
  height: 6px; /* Altura del scroll horizontal */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Color de fondo del track */
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #888; /* Color del thumb */
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555; /* Color del thumb al pasar el mouse */
}


/* Estilos generales para el temario */
/* Add space before footer on mobile */
@media (max-width: 768px) {
  .curso-contenido {
    margin-bottom: 40px;
  }
}

/* Estilos para el botón de Acceder */
.hero .btn-primary {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.hero .btn-primary:hover {
  background: linear-gradient(45deg, #27ae60, #219653);
}

/* Estilos para la barra de desplazamiento */
html {
  scrollbar-width: thin;
  scrollbar-color: #2a5298 #f1f1f1;
}

/* Webkit (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 5px;
  transition: all 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a5298 #f1f1f1;
}

/* Reset y fuente básica */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: rgba(0, 0, 0, 0.4); /* negro con transparencia */
  color: #333;
  margin: 0;
  padding: 0;
}

/* Animación RGB */
@keyframes rgbAnimation {
  0% { background-color: rgb(255, 0, 0); } /* Rojo */
  33% { background-color: rgb(0, 255, 0); } /* Verde */
  66% { background-color: rgb(0, 0, 255); } /* Azul */
  100% { background-color: rgb(255, 0, 0); } /* Vuelve a rojo */
}

/* ================================= 
  Base Styles */
  
/* Estilos para los títulos de sección del footer */
.footer-title {
  color: #ffffff;
  font-family: 'Bungee', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: rgb(23, 136, 174);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.footer-column:hover .footer-title::after {
  width: 80px;
}

/* Estilos para las tarjetas de cursos en la sección de noticias */
.nuevos-cursos .curso-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.nuevos-cursos .curso-overlay {
  position: relative;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(3, 0, 41, 0.9));
  transition: transform 0.5s ease;
}

.nuevos-cursos .curso-imagen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.nuevos-cursos .curso-info {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nuevos-cursos .curso-info h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.2;
  width: 100%;
  max-width: 300px;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  padding: 5px 0;
  font-size: 12px;
  color: #fff;
  z-index: 1001;
}

.top-bar .container {
  padding: 0 15px !important;
}

.top-bar .top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 15px;
  margin: 0 !important;
}

.social-links .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease;
  font-size: 1.3rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 3px !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.social-links {
  display: flex;
  align-items: center;
  margin-right: 30px;
}

/* Estilos de íconos sociales movidos a la sección de footer */

.contact-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.contact-item {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 34px;
  margin-left: -10px;
}

.contact-item i {
  font-size: 15px;
  margin-right: 6px;
}

.contact-item.whatsapp {
  background-color: rgba(37, 211, 102, 0.2);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.contact-item.whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.contact-item:not(.whatsapp):hover {
  background-color: rgba(227, 24, 55, 0.3);
  color: #fff;
  border-color: rgba(227, 24, 55, 0.5);
}

/* Estilos para centrar títulos del footer en páginas de cursos */
.footer-column {
  text-align: center;
}

.footer-title::after {
  left: 30%;
  transform: translateX(-50%);
}

/* Mover títulos de Enlaces Rápidos, Contáctanos y Horario de Atención NOTORIAMENTE a la derecha en el footer de cursos */
/* --- Móviles: sigue igual, padding-left y alineación para títulos --- */
.footer-grid .footer-column:nth-child(2) .footer-title,
.footer-grid .footer-column:nth-child(3) .footer-title,
.footer-grid .footer-column:nth-child(4) .footer-title {
  padding-left: 70px !important;
  text-align: left !important;
}

/* --- SOLO PC: mueve los títulos levemente a la izquierda, sin padding-left --- */
@media (min-width: 992px) {
  .footer-grid .footer-column:nth-child(2) .footer-title,
  .footer-grid .footer-column:nth-child(3) .footer-title,
  .footer-grid .footer-column:nth-child(4) .footer-title {
    padding-left: 0 !important;
    margin-left: 10px !important;
    text-align: left !important;
  }
  .footer-grid .footer-column:nth-child(2) .footer-title::after,
  .footer-grid .footer-column:nth-child(3) .footer-title::after,
  .footer-grid .footer-column:nth-child(4) .footer-title::after {
    left: 10px !important;
    transform: none !important;
  }
}

/* Alinear flechas de enlaces rápidos con el inicio del título */
.footer-grid .footer-column:nth-child(2) .footer-links {
  padding-left: 70px;
}

/* Mover solo el texto de los enlaces rápidos levemente a la izquierda */
.footer-grid .footer-column:nth-child(2) .footer-links a span {
  margin-left: -45px;
}

/* Mover solo el contenido de Contactanos levemente a la izquierda */
.footer-grid .footer-column:nth-child(3) .footer-contact {
  margin-left: -25px;
}

/* Ajuste de espaciado para móviles */
@media (max-width: 768px) {
  .modalidad-item {
    margin-top: 30px;
  }
}
