body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header, main, aside, footer {
  padding: 10px;
}

/* Encabezado */
header {
  background-color: #f8f8f8;
  border-bottom: 2px solid #e0e0e0;
}

/* Barra superior */
.top-bar {
  background-color: #004080; /* azul oscuro profesional */
  color: white;
  display: flex;
  justify-content: flex-end;
  padding: 5px 20px;
  font-size: 0.9rem;
}

/* Información de contacto */
.contact-info {
  display: flex;
  gap: 20px;
}

.middle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f8f8f8;
}

.logo-middle img {
  max-height: 80px;
}

.search-bar input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}




/* Main */
main {
  display: flex;
  flex-direction: column; 
  gap: 20px;
  padding: 20px;
}

/* Formulario - Estilo básico */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%; 
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  padding: 10px 15px;
  border: 1px solid #ccc;
  background-color: #004080;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #003366;
}
/* Contenido principal */
.main-content {
  flex: 2 1 500px;
}

.main-content h2, .main-content h3 {
  margin-top: 0;
}

/* Footer */
footer {
  background-color: #f0f0f0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #ccc;
}

footer .legal {
  text-align: center;
}




.course-item {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
}

.course-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.course-item p {
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.course-item a.whatsapp-link {
  display: inline-block;
  margin-top: 10px;
  color: green;
  font-weight: bold;
  text-decoration: none;
}

.course-item a.whatsapp-link:hover {
  text-decoration: underline;
}

.course-index {
  background: linear-gradient(135deg, #f0f8ff, #e0f7fa);
  border: 2px solid #0077b6;
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
}

.course-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.course-index li {
  background: #ffffff;
  border-left: 5px solid #0077b6;
  padding: 10px 15px;
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.3s;
}

.course-index li:hover {
  background: #e3f2fd;
  transform: translateY(-3px);
}

.course-index a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 16px;
  display: block;
}

@media (min-width: 768px) {
  main {
    flex-direction: row; 
  }

  .contenedor {
    display: flex;
    justify-content: space-between;
  }

  .contenido {
    width: 65%;
  }

  .formulario {
    width: 30%;
  }
}