/* ==== TREFA — Selector de idioma (banderas MX / US) ==== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.22);
  flex-shrink: 0;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.lang-switch button img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

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

.lang-switch button.active {
  opacity: 1;
  background: rgba(255,255,255,0.12);
}

/* Variante para fondos claros (menú móvil) */
.lang-switch.on-light {
  border-left-color: rgba(4,20,63,0.15);
}
.lang-switch.on-light button.active {
  background: rgba(4,20,63,0.08);
}

.mobile-menu .lang-switch {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-left: none;
  border-top: 1px solid rgba(4,20,63,0.12);
  width: 100%;
  justify-content: center;
}
