* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #2c3e50;
  line-height: 1.6;
  padding: 20px 0;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
#contenedor {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px 25px;
  background-color: #E5E7E9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 1.0);
}


.menu-navegacion ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 12px;
  padding: 0;
  margin: 20px 0 40px 0;


}

.menu-navegacion ul li a {
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 500;
  color: #2c3e50;
  background-color: #ecf0f1;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
  flex: 1 1 auto;
}

.menu-navegacion ul li a:hover {
  background-color: #3498db;
  color: #fff;
}




/* ===== ENCABEZADO Y MENÚ ===== */
header h1 {
  font-size: 2em;
  text-align: center;
  color: #34495e;
  margin-bottom: 20px;
}




nav ul li a:hover,
nav ul li a.activo {
  background-color: #3498db;
  color: #fff;
}

/* ===== FORMULARIO ===== */
main section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #2c3e50;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  resize: vertical;
}

button[type="submit"] {
  background-color: #3498db;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #2e86c1;
}

/* ===== PIE DE PÁGINA ===== */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #7f8c8d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-navegacion ul{

    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

.menu-navegacion ul li a{

    width: 100%;
    text-align: center;
  }

  main section h2{
  
    font-size: 1.3em;
  
}
