body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.curso-header {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.curso-header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.curso-header .slogan {
  font-weight: bold;
  color: #d0ecff;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.curso-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.curso-section {
  margin-bottom: 2rem;
}

.curso-section img {
  width: 60%;
  border-radius: 8px;
  margin: 1rem auto 0 auto;
  display: block;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  min-width: 160px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0066cc;
}

.regresar-btn {
  background-color: #6c757d;
}

.regresar-btn:hover {
  background-color: #5a6268;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* INFO EN COLUMNAS */
.curso-info {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.curso-info .curso-section {
  flex: 1 1 45%;
}

.recomendados {
  margin-top: 3rem;
  padding: 1rem;
  background-color: #f4f9ff;
  border-top: 2px solid #004080;
  text-align: center;
}

.recomendados h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #004080;
  margin-bottom: 1rem;
}

.carrusel {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.curso-item {
  flex: 0 0 30%;
  max-width: 250px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 0.7rem;
  transition: transform 0.3s;
  cursor: pointer;
}

.curso-item:hover {
  transform: scale(1.05);
}

.curso-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.curso-item h4 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #004080;
}

.curso-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.rotador-curso {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #dff0ff;
  margin: 20px auto;
}

.rotador-contenido {
  max-width: 500px;
  margin: 0 auto;
}

.curso-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

#rotadorNombre {
  font-size: 1.4rem;
  font-weight: 600;
  color: #003366;
}

.otros-cursos {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.curso-recomendado {
  flex: 1 1 30%;
  text-align: center;
  padding: 0.5rem;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.curso-recomendado:hover {
  transform: translateY(-5px);
}

.curso-recomendado img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.rotador-contenido-multiple {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.rotador-contenido-multiple .curso-card {
  max-width: 300px;
  flex: 1 1 30%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
}

.rotador-contenido-multiple .curso-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.rotador-contenido-multiple .curso-card h2 {
  font-size: 1.2rem;
  color: #003366;
}

.separador {
  border-top: 1px solid #004080; 
}

@media (max-width: 576px) {
  .curso-info {
    flex-direction: column;
  }

  .curso-info .curso-section {
    flex: 1 1 100%;
  }

  .curso-header h1 {
    font-size: 1.5rem;
  }

  .curso-header .slogan {
    font-size: 1rem;
  }

  .curso-section img {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
    gap: 0.8rem;
  }

  button {
    width: 100%;
  }

  .carrusel {
    flex-direction: column;
    align-items: center;
  }

  .curso-item {
    flex: 1 1 100%;
    max-width: 95%;
  }

  .rotador-contenido-multiple {
    flex-direction: column;
    align-items: center;
  }

  .rotador-contenido-multiple .curso-card {
    width: 90%;
    max-width: 320px;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .curso-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .curso-info .curso-section {
    flex: 1 1 48%;
  }

  .curso-header h1 {
    font-size: 2rem;
  }

  .curso-section img {
    width: 80%;
  }

  .carrusel {
    flex-wrap: wrap;
    justify-content: center;
  }

  .curso-item {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .rotador-contenido-multiple .curso-card {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (min-width: 993px) {
  .curso-item {
    flex: 1 1 22%;
    max-width: 22%;
  }

  .rotador-contenido-multiple .curso-card {
    flex: 1 1 22%;
    max-width: 22%;
  }
}

.pasos-container {
  background: #c7dcff;
  border: 1px solid rgb(21, 21, 88);
  padding: 15px;
  margin: 20px auto;          
  border-radius: 10px;
  max-width: 700px;           
  text-align: justify;       
}

.curso-section img,
.curso-img {
  width: 90% !important;     
  max-width: 700px;         
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

