/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo general */
body {
  background-image: url("fondo.jpg"); /* Puedes cambiar esto por una URL externa si prefieres */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Cabecera */
header {
  background-color: rgba(70, 130, 180, 0.85); /* Color con transparencia para que se vea bien sobre la imagen */
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Navegación */
nav {
  background-color: rgba(95, 158, 160, 0.9);
  padding: 1rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Sección principal */
main {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente para que el texto sea legible */
  margin: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

section {
  margin-bottom: 2rem;
}

section h2 {
  color: #2f4f4f;
  margin-bottom: 1rem;
}

/* Imagen estilizada */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

input, button {
  padding: 0.5rem;
  font-size: 1rem;
}

button {
  background-color: #4682b4;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4169e1;
}

/* Pie de página */
footer {
  background-color: rgba(47, 79, 79, 0.9);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
