/* HEADER */
header {
  background-color: #154360;
  padding: 1px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: white;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
#presentacion{
  margin: 35px auto 35px 3% ;
  width: 500px;
  display: flex;
  flex-wrap: wrap;
  z-index: 1;
  align-items: center;
  gap: 4%;
}
#logo {
  min-height: 150px;
  max-height: 150px;
  flex-shrink: 0;
}
#titulo, #subtitulo {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin: unset;
  flex: 1;
  min-width: 0; /* previene overflow */
  word-break: break-word;
  font-family: sans-serif;
  white-space: nowrap;
}
#titulo {
  font-size: clamp(1rem, 5vw, 3rem);
  color: antiquewhite;
}
#subtitulo {
  font-size: clamp(0.5rem, 2.5vw, 1.8rem);
  color: aliceblue;
}
.lang-container {
  display: flex;
  align-items: center;
  gap: 6px; /* espacio entre el globo y el select */
  position: absolute;
  right: 5%;
  top: 88%;
  transform: translateY(-50%);
}
.lang-icon {
  border: 2px solid black;
  border-radius: 50%;
}
#lang-select {
  background-color: cadetblue;
  border: 2px solid black;
  color: white;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: static; /* elimina la posición absoluta */
}
#lang-select:hover, #lang-select:focus {
  background-color: #2874a6;
  outline: none;
}

/* NAV */
nav {
  background-color: #154360;
  border-top: beige solid 1px;
  border-bottom: black solid 1px;
  box-shadow: inset 0 -3px 5px -2px rgba(255,255,255,0.3);
}
#nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
}
.nav-btn {
  background: transparent;
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-btn:hover, .nav-btn:focus {
  background-color: #85c1e9;
  color: #154360;
  outline: none;
}
.nav-btn.active {
  background-color: #1b4f72;
  color: #f0f3f4;
}