/* Selector de idioma desplegable (ver dir-idioma.js): un icono que abre una lista corta. */
.lang-switch.dl{position:relative;display:inline-flex;gap:0;background:none;border:0;padding:0;border-radius:0}
.dl-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 10px;
  border:1px solid var(--line,#d8dee6);border-radius:10px;background:var(--surface,#fff);color:var(--text,#1d1d1d);
  font-family:inherit;font-size:12px;font-weight:600;letter-spacing:.04em;cursor:pointer;flex:none}
.dl-trigger:hover{border-color:var(--blue,#30699b)}
.dl-trigger:focus-visible{outline:2px solid var(--blue,#30699b);outline-offset:2px}
.dl-trigger svg{flex:none}
.dl-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);flex-direction:column;gap:2px;min-width:160px;padding:6px;
  background:var(--surface,#fff);border:1px solid var(--line,#d8dee6);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.18);z-index:200}
.lang-switch.dl.abierto .dl-menu{display:flex}
.lang-switch.dl.arriba .dl-menu{top:auto;bottom:calc(100% + 6px)}
.lang-switch.dl .dl-menu button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;min-height:44px;
  padding:0 12px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--text,#1d1d1d);
  font-family:inherit;font-size:14px;font-weight:700;letter-spacing:.02em;text-align:left;cursor:pointer;flex:none;box-shadow:none}
.lang-switch.dl .dl-menu button::after{content:attr(data-nombre);font-weight:500;color:var(--muted,#667085)}
.lang-switch.dl .dl-menu button:hover{background:var(--surface2,#eef2f6)}
.lang-switch.dl .dl-menu button.active,.lang-switch.dl .dl-menu button.on{background:var(--blue,#30699b);color:#fff}
.lang-switch.dl .dl-menu button.active::after,.lang-switch.dl .dl-menu button.on::after{color:inherit}
/* En la barra lateral (escritorio) el icono ocupa todo el ancho y la lista se abre hacia arriba */
.side-foot .lang-switch.dl{display:flex;width:100%}
.side-foot .dl-trigger{width:100%;justify-content:flex-start}
.side-foot .dl-menu{left:0;right:0;min-width:0}
html[data-theme="dark"] .lang-switch.dl .dl-menu button.active,html[data-theme="dark"] .lang-switch.dl .dl-menu button.on{color:#0f1a24}
