body {
  background-color: #f0f4f8; /* Gris suave claro */
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

/* Asegurarse de que no haya espacio adicional en la página */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif; /* Establecer fuente base */
}

/* HEADER */
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;
}

/* SECCION FAQ */
section#header {
  background-color: #f1f1f1;
  padding: 40px 20px;
  text-align: center;
  margin-top: -30px;
  border-radius: 12px 12px 0 0;
}

section#header h1 {
  font-size: 2.5em;
  color: #1e3d59;
  margin-bottom: 20px;
}

section#header p {
  font-size: 1.1em;
  color: #333;
  margin-top: 10px;
}

/* Acordeón personalizado */
.accordion-button {
  background-color: #1e3d59;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  padding: 15px;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: left; /* Alineación del texto del botón */
}

.accordion-button:hover,
.accordion-button:not(.collapsed) {
  background-color: #ffd166;
  color: #1e3d59;
}

.accordion-button.collapsed {
  background-color: #1e3d59;
}

.accordion-body {
  background-color: #f9f9f9;
  color: #1e3d59;
  padding: 20px;
  border-radius: 6px;
  font-size: 1.1em;
  border: 1px solid #e0e0e0; /* Borde sutil */
}

/* FOOTER */
footer {
  background-color: #1e3d59;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin: 0;
  border-radius: 15px 15px 0 0;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  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;
}

/* Asegurarse de que no haya espacio abajo */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}

/* Responsiveness para dispositivos pequeños */
@media (max-width: 768px) {
  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;
  }

  section#header {
    padding: 30px 20px;
  }

  section#header h1 {
    font-size: 2em;
  }

  section#header p {
    font-size: 1em;
  }

  .accordion-button {
    font-size: 1.1em;
    padding: 12px;
  }

  footer {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 1.1em;
    padding: 8px 16px;
  }

  header h1 {
    font-size: 1.6em;
  }

  section#header h1 {
    font-size: 1.8em;
  }

  section#header p {
    font-size: 0.9em;
  }

  .accordion-button {
    padding: 10px;
    font-size: 1em;
  }

  footer {
    padding: 15px 10px;
    font-size: 1em;
  }
}
