.lang-switch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.lang-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .13;
  transition: filter .2s ease;
  pointer-events: none;
}
.lang-switch[lang="en"]::before { background-image: url("bandera-gb.svg"); }
.lang-switch[lang="es"]::before { background-image: url("bandera-es.svg"); }
.lang-switch:hover::before { filter: brightness(1.3); }
.lang-switch:hover { border-color: var(--link); color: var(--link); }
.lang-switch[hidden] { display: none; }
@media (forced-colors: active) {
  .lang-switch::before { display: none; }
}
@media (max-width: 780px) { .lang-switch { padding: 7px 11px; } }
@media (max-width: 560px) { .lang-switch { font-size: 11px; } }
