/* ============================================================
   lang-bar.css · Barra superior con el selector de idioma
   ============================================================ */

.lang-bar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.lang-bar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ---------- Botón de modo oscuro ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink);
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}

.theme-toggle:hover { background: var(--panel); }

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 12px;
  cursor: pointer;
  transition: background var(--speed), color var(--speed);
}

.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
