/* Idioma: cada texto existe en ES y EN (data-l) y solo se ve el del idioma elegido */
html[data-lang="es"] [data-l="en"],
html[data-lang="en"] [data-l="es"] { display: none !important; }

/* Interruptor ES / EN */
.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; flex-shrink: 0;
  height: 32px; padding: 3px; border: 1px solid rgba(64,41,31,0.22); border-radius: 999px; background: rgba(255,255,255,0.45);
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
  color: #40291F; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.lang-switch:active { transform: scale(0.97); }
.lang-switch:focus-visible { outline: 2px solid #A2486A; outline-offset: 3px; }
.lang-switch .ls-k {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #40291F;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-lang="en"] .lang-switch .ls-k { transform: translateX(100%); }
.lang-switch .ls-o { position: relative; z-index: 1; padding: 0 9px; transition: color 200ms cubic-bezier(0.23, 1, 0.32, 1); }
html[data-lang="es"] .lang-switch .ls-es,
html[data-lang="en"] .lang-switch .ls-en { color: #F8E6EB; }
@media (hover: none) { .lang-switch { height: 36px; font-size: 0.76rem; } }
@media (prefers-reduced-motion: reduce) { .lang-switch, .lang-switch .ls-k, .lang-switch .ls-o { transition: none; } }
