/* ============================================================
   i18n.css - Estilos del switch de idioma ES/EN
   ============================================================ */

/* Switch principal */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px;
  position: relative;
  user-select: none;
  line-height: 1;
}

.lang-switch__button {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-switch__button:hover {
  opacity: 1;
}

.lang-switch__button--active {
  background: #ffffff;
  color: #1f2937;
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-switch__button:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Variante oscura (sobre fondos claros) */
.lang-switch--dark {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.lang-switch--dark .lang-switch__button {
  color: #374151;
}

.lang-switch--dark .lang-switch__button--active {
  background: #1f2937;
  color: #ffffff;
}

/* Variante compacta (widget) */
.lang-switch--compact {
  padding: 2px;
}

.lang-switch--compact .lang-switch__button {
  font-size: 11px;
  padding: 4px 8px;
}

/* Posicionamiento absoluto para anclarlo a una esquina */
.lang-switch--corner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 999;
}
