.hero-programacion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #0d0d0d, #1c1c1c);
  color: white;
  padding: 2rem 6rem;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.hero-contenido {
  max-width: 600px;
  z-index: 2;
}

.hero-contenido h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #60D669;
}

.hero-contenido h1 span {
  color: #60D669;
}

.hero-contenido p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 2.5rem;
}

.btn-hero {
  background-color: #60D669;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.btn-hero:hover {
  background-color: #0cb80c;
}

/* Imágenes flotantes */
.hero-imagenes {
  position: relative;
  flex: 1;

}

.hero-imagenes .fondo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  max-height: 100%;
  z-index: 1;
}

.icono {
  position: absolute;
    width: 500px;
    z-index: 2;
    opacity: 0.85;
}

.react { 
    top: -140px;
    right: 50px;
}


/* Responsive */
@media (max-width: 768px) {
  .hero-programacion {
    flex-direction: column;
    text-align: center;
  }

  .hero-imagenes {
    height: 300px;
  }

  .hero-contenido h1 {
    font-size: 2rem;
  }

  .btn-hero {
    font-size: 0.95rem;
  }
}

/**/

.subtituloCursos{
  text-align: center;
  color: #0d48a1;
  font-size: 2rem;
}



/* === Estilo general del carrusel de cursos === */
.carousel-wrapperGeneral {
  position: relative;
  padding: 1rem 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0px 0px;
  background-color: #fff;
}


.carousel-wrapper {
  position: relative;
  padding: 1rem 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0px 40px;
}

#carruselCursos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 1rem 2rem;
  scroll-snap-type: x mandatory;
}

#carruselCursos::-webkit-scrollbar {
  display: none;
}

/* === Cada curso en el carrusel === */
.cursos {
  flex: 0 0 auto;
  width: 280px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid #f1f1f1;
  overflow: hidden;
  scroll-snap-align: start;
}

.cursos:hover {
  transform: translateY(-5px);
}

/* Imagen del curso */
.cursosImg {
  text-align: center;
}

.cursos img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 10px;
  border-radius: 16px 16px 0 0;
}

/* Contenido del curso */
.cursos-content {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.categoria {
  color: #f76c5e;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.info-icons {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.info-icons i {
  margin-right: 5px;
  color: #0d47a1;
}

.cursos h3 {
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.estrellas {
  font-size: 0.9rem;
  color: #f5a623;
  margin-bottom: 1rem;
}

.estrellas span {
  color: #555;
  margin-left: 6px;
}

/* Footer del curso */
.cursos-footer {
  margin-top: auto;
  padding: 0 1.2rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-agregar {
  background-color: #6366f1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-agregar:hover {
  background-color: #4f46e5;
}

.precio {
  color: #f76c5e;
  font-weight: bold;
  font-size: 1rem;
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0d48a1;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.carousel-btn:hover {
  background: #08306b;
}

/* === Responsivo para móviles === */
@media (max-width: 768px) {
  #carruselCursos {
    gap: 1rem;
    padding: 1rem;
  }

  .cursos {
    width: 240px;
  }

  .carousel-btn {
    padding: 0.4rem 0.8rem;
  }
}
