.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050; /* Asegura que el header esté por encima de otros elementos */
}

.nav-link {
  color: var(--color-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

/* Dropdown de idioma en el header */
#lang-dropdown .nav-link {
  background: none;
  border-radius: 0;
  color: #fff;
  font-weight: 400;
  padding: 8px 16px;
  border: none;
  box-shadow: none;
  transition: color 0.2s;
}
#lang-dropdown .nav-link:hover, #lang-dropdown .nav-link:focus {
  background: none;
  color: var(--color-primary);
  border: none;
}
#lang-dropdown .fa-globe-americas {
  font-size: 1.2em;
  color: inherit;
}
#lang-dropdown .dropdown-menu {
  background: rgba(24, 28, 41, 0.95);
  border-radius: 16px;
  min-width: 160px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  border: 1.5px solid var(--color-primary);
  margin-top: 8px;
}
#lang-dropdown .dropdown-item {
  color: #fff;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
#lang-dropdown .dropdown-item.active,
#lang-dropdown .dropdown-item:focus,
#lang-dropdown .dropdown-item:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Diseño responsivo para el header */
@media (max-width: 768px) {
  header {
    padding: 10px;
    text-align: center;
  }
  #header {
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 769px) {
  header {
    padding: 20px;
    text-align: left;
    position: relative!important;
    top: auto!important;
  }
  #header {
    flex-direction: row;
    gap: 20px;
  }
  
}
