.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
  box-shadow: 0 3px 9px rgba(0,43,86,.18);
  opacity: .84;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.lang-switch a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.lang-switch a.active {
  opacity: 1;
  outline: 3px solid #00b8d9;
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0,43,86,.28);
}

.lang-switch a[lang="es"] {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.lang-switch a[lang="en"] {
  background: linear-gradient(135deg, #012169 0 39%, #fff 39% 44%, #c8102e 44% 56%, #fff 56% 61%, #012169 61% 100%);
}

.lang-switch a[lang="pt"] {
  background: linear-gradient(to right, #046a38 0 40%, #da291c 40% 100%);
}

@media (max-width: 900px) {
  .lang-switch { margin-left: auto; }
}

@media (max-width: 570px) {
  .lang-switch { gap: 6px; }
  .lang-switch a { width: 32px; height: 32px; font-size: .66rem; }
}
