.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.85rem;
  margin-right: 0.35rem;
  flex: 0 0 auto;
  z-index: 3;
}

.lang-switch a {
  color: #edf0f3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  padding: 0.38rem 0.42rem;
  border-radius: 4px;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch a.is-active {
  color: #7dd3f0;
  background: rgba(25, 168, 226, 0.16);
}

.lang-switch a:focus-visible {
  outline: 2px solid #19a8e2;
  outline-offset: 2px;
}

html[lang="en"] #header .navmenu > ul > li > a,
html[lang="es"] #header .navmenu > ul > li > a {
  padding-left: 14px;
  padding-right: 14px;
}

.error-lang {
  margin-top: 22px;
  font-size: 14px;
}

.error-lang a {
  color: #19a8e2;
  font-weight: 700;
  text-decoration: none;
  margin: 0 6px;
}

.error-lang .lang-switch {
  position: static;
  margin: 18px auto 0;
  background: transparent;
  border: 0;
  justify-content: center;
  padding: 0;
}

.error-lang .lang-switch a {
  color: #0b3a4a;
}

.error-lang .lang-switch a.is-active {
  color: #0b6f93;
  background: rgba(25, 168, 226, 0.12);
}

@media (max-width: 1199px) {
  .lang-switch {
    position: absolute;
    top: 22px;
    right: 58px;
    margin: 0;
    background: rgba(8, 16, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0 4px;
  }

  html[lang="en"] #header .navmenu > ul > li > a,
  html[lang="es"] #header .navmenu > ul > li > a {
    padding-left: 18px;
    padding-right: 18px;
    white-space: normal;
  }
}
