body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}

/* Estilos para el nuevo diseño del header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.logo {
  width: 80px;
  height: auto;
  margin: 0;
  position: static;
  z-index: 2;
}

.header-text {
  text-align: left;
  padding-left: 1rem;
  flex: 1;
}

.header-text h1, 
.header-text p {
  position: static;
  z-index: 2;
  padding: 0;
  margin: 0;
  color: #333;
}

.header-text h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.header-text p {
  font-size: 0.9rem;
  color: #666;
}

/* Ajusta el header existente para quitar el padding original */
header {
  background: #ffffff;
  color: #333;
  position: relative;
  border-bottom: none; /* Se eliminó porque ahora está en .header-container */
  padding: 0;
}

/* Mensaje de descuento */
.descuento-febrero {
  background-color: #ffcc00;
  color: #222;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}


/* Media query para dispositivos móviles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem;
  }
  
  .logo {
           width: 50px;
       }
  
  .header-text {
    text-align: center;
    padding-left: 0;
  }
  
  .header-text h1 {
           font-size: 1.2rem;
  }
  
  .header-text p {
	   font-size: 0.8rem;
  }
  
  /* Ajusta el carrusel para que comience después del header */
  .carrusel {
	  margin-top: 0;
  }
  
  .curso {
          /*padding: 0.5rem;*/
  }
  .curso h3 {
   font-size: 1.1rem;
  }
  .curso p {
   font-size: 0.9rem;
  }
}


.logo {
  width: 100px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

h1, header p {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  margin: 0.5rem 0;
  color: #333;
}

/* Estilos para el carrusel - REDUCIDO */
.carrusel {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-top: 0.5rem;
  background: #ffffff; /* Cambiado a blanco */
  border-radius: 0 0 8px 8px; /* Bordes redondeados inferiores */
}

.carrusel-contenedor {
  width: 100%;
  height: 100%;
  position: relative;
  background: #ffffff; /* Cambiado a blanco */
}

.carrusel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background: #ffffff; /* Cambiado a blanco */
}

.carrusel-slide.activo {
  opacity: 1;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #ffffff; /* Cambiado a blanco */
}

/* Controles del carrusel - AJUSTADOS */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3); /* Ajustado para mejor visibilidad sobre blanco */
  color: #333; /* Cambiado a color oscuro */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Añadido borde sutil */
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

.carrusel-btn.anterior {
  left: 15px;
}

.carrusel-btn.siguiente {
  right: 15px;
}

/* Indicadores del carrusel - AJUSTADOS */
.carrusel-indicadores {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.carrusel-indicador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2); /* Añadido borde */
  background: rgba(0, 0, 0, 0.3); /* Ajustado para mejor visibilidad sobre blanco */
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.carrusel-indicador:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

.carrusel-indicador.activo {
  background: #0055aa;
  border-color: #0055aa;
  transform: scale(1.1);
}

/* El resto de los estilos permanece igual */
nav {
  background: #ffcc00;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

section {
  padding: 2rem;
  background: #fff;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sombra sutil para contraste */
}

h2 {
  color: #0055aa;
}

.curso {
  background: #e6f2ff;
  padding: 1rem;
  margin-top: 1rem;
  border-left: 5px solid #0055aa;
}

.imagenes-curso {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.imagenes-curso img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.imagenes-curso img:hover {
  transform: scale(1.05);
}

.video-radio {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.video-radio video {
  width: 220px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.video-radio video:hover {
  transform: scale(1.05);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

input, select, button {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #0055aa;
  color: #fff;
  border: none;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #ffffff; /* Cambiado a blanco */
  color: #333;
  border-top: 1px solid #ddd;
}

.contenido {
    background-color: #f8f9fa;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    display: none; /* Oculto por defecto */
}

.contenido h4 {
    margin-top: 0;
    color: #007bff;
}

.contenido ul {
    padding-left: 20px;
}

.contenido li {
    margin-bottom: 8px;
}

.contenido-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
}

.contenido-btn:hover {
    background-color: #0056b3;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
  .carrusel {
    height: 200px;
  }
  
  .carrusel-btn {
    width: 35px;
    height: 35px;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
  }
  
  .carrusel-btn.anterior {
    left: 10px;
  }
  
  .carrusel-btn.siguiente {
    right: 10px;
  }
  
  .carrusel-indicadores {
    bottom: 5px;
  }
  
  .carrusel-indicador {
    width: 8px;
    height: 8px;
  }
}

.inscribete-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.inscribete-btn:hover {
    background-color: #218838;
}

.botones-curso {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Para móviles */
@media (max-width: 768px) {
    .botones-curso {
        flex-direction: column;
    }
    .inscribete-btn {
        margin-left: 0;
    }
}
