body {
  background-color: #f0f4f8; /* Gris suave claro */
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

/* HEADER CON FONDO DE IMAGEN Y NAV INTEGRADO */
header {
  background-image: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

header h1,
header p,
nav {
  position: relative;
  z-index: 1;
}

/* NAVBAR DENTRO DEL HEADER */
nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 14px 0;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: #ffffff;
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a:hover {
  background-color: #ffd166;
  color: #1e3d59;
}

/* Ajuste del contenido principal */
.main-content > p {
  text-align: center;
  font-size: 1.1em;
}

/* Ajuste del título */
h1 {
  text-align: center;
}

.title2 p {
  text-align: center;
  font-size: 1.1em;
}

/* FOOTER */
footer {
  background-color: #1e3d59; /* Un azul más oscuro y elegante */
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 80px;
  border-radius: 15px 15px 0 0; /* Bordes redondeados en la parte superior */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Sombra suave */
  font-size: 1.1em;
  font-family: "Segoe UI", sans-serif;
}

footer a {
  color: #ffd166;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff; /* Cambia el color a blanco en el hover */
}

/* Responsiveness para dispositivos pequeños */
@media (max-width: 768px) {
  /* Cambiar el menú a una columna */
  nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.2em;
    padding: 10px 20px;
  }

  header {
    padding: 60px 20px 40px;
  }

  .main-content > p {
    font-size: 1em;
  }

  .title2 p {
    font-size: 1em;
  }

  h1 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  /* Para dispositivos muy pequeños */
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 1.1em;
    padding: 8px 16px;
  }

  header h1 {
    font-size: 1.6em;
  }

  footer {
    padding: 20px 10px;
  }

  .main-content > p {
    font-size: 0.9em;
  }

  .title2 p {
    font-size: 0.9em;
  }

  h1 {
    font-size: 1.6em;
  }
}
