/* ---- Selector de idioma ES | EN (js/i18n.js) ---- */
html.i18n-pending body{ visibility: hidden; }
.lang-switch{
  display: inline-flex; align-items: center; gap: .125rem; padding: .125rem; flex-shrink: 0;
  border: .0625rem solid rgba(255,255,255,.4); border-radius: 2rem; background: rgba(255,255,255,.06);
  font-family: 'Jost', system-ui, sans-serif; font-size: .6875rem; font-weight: 500; letter-spacing: .1em; line-height: 1; color: #fff;
}
.lang-switch button{
  margin: 0; padding: .4375rem .625rem; border: 0; border-radius: 2rem; background: transparent;
  color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; opacity: .75;
  transition: background .25s ease, color .25s ease, opacity .25s ease; -webkit-tap-highlight-color: transparent;
}
.lang-switch button:hover{ opacity: 1; }
.lang-switch button[aria-pressed="true"]{ background: #fff; color: #111; opacity: 1; }
.lang-switch button:focus-visible{ outline: .125rem solid #c9923f; outline-offset: .125rem; }
/* header del sitio: en celular va en la tercera columna, a la derecha */
.lang-switch--header{ justify-self: end; }
@media (max-width: 991px){
  #siteHeader > div > .nav-toggle{ grid-column: 1; grid-row: 1; }
  #siteHeader > div > a:first-of-type{ grid-column: 2; grid-row: 1; }
  #siteHeader .lang-switch--header{ grid-column: 3; grid-row: 1; }
}
@media (min-width: 992px){ #siteHeader .lang-switch--header{ margin-left: 0; } }
/* carta: flotante, debajo del botón de sucursal (arriba a la derecha), en claro */
.lang-switch--float{
  position: fixed; top: 3.75rem; right: 1rem; z-index: 41;
  border-color: #111; background: #fff; color: #111;
}
.lang-switch--float button[aria-pressed="true"]{ background: #111; color: #fff; }
/* menu.html: dentro del header oscuro */
.m-head-sp .lang-switch{ margin-left: auto; display: flex; width: max-content; }
