/* ====== ESTILOS GENERALES ====== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* ====== ENCABEZADO ====== */
header {
  background: #111;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}

header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

header .logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  color: #f0c330;
}

/* ====== NAVEGACIÓN ====== */
nav {
  background: #222;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

nav a:hover {
  background: #f0c330;
  color: #000;
}

/* ====== SECCIONES ====== */
section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #f0c330;
}

/* ====== CURSOS ====== */
.cursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.curso {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.curso:hover {
  transform: scale(1.05);
}

/* ====== FORMULARIO ====== */
form {
  max-width: 600px;
  margin: auto;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

form input, form textarea, form button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background: #f0c330;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background: #d4a420;
}

#mensaje {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

/* ====== PIE DE PÁGINA ====== */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 30px;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 20px;
  border-radius: 8px;
}

/* ====== RESPONSIVIDAD ====== */
@media (max-width: 768px) {
  header .logo h1 {
    font-size: 1.5rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #333;
  }
}
