/* Botones de idioma de Rackel */
.rk-lang {
  display: inline-flex;
  flex: none;
  gap: 3px;
  padding: 2px;
  border: 1px solid #dce9ec;
  border-radius: 13px;
  background: #f4f8fa;
}

.rk-lang-button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  inline-size: 36px;
  min-block-size: 38px;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #354b5d;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.rk-lang-button:hover { background: #e5eff3; }

.rk-lang-button[aria-pressed="true"] {
  border-color: #287486;
  background: #fff;
  color: #064b5b;
  box-shadow: 0 1px 2px #0a30402b;
}

.rk-lang-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 11px 2px;
  border-bottom: 1px solid currentColor;
}

.rk-lang-button:focus-visible {
  z-index: 1;
  outline: 2px solid #074e73;
  outline-offset: 1px;
}

.rk-lang-badge {
  inline-size: 18px;
  block-size: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #1023321a;
}

.rk-lang-button[value="es"] .rk-lang-badge {
  background: linear-gradient(#b31527 25%, #ffcf45 25% 75%, #b31527 75%);
}

.rk-lang-button[value="en"] .rk-lang-badge {
  background:
    linear-gradient(0deg, transparent 40%, #c8102e 40% 60%, transparent 60%),
    linear-gradient(90deg, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 30%, #fff 30% 70%, transparent 70%),
    linear-gradient(90deg, transparent 36%, #fff 36% 64%, transparent 64%),
    linear-gradient(34deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(-34deg, transparent 42%, #fff 42% 58%, transparent 58%),
    #20366d;
}

.demo-panel-tools { display: flex; align-items: center; gap: 8px; flex: none; }

@media (max-width: 420px) {
  .rk-lang-button { inline-size: 33px; }
}

@media (forced-colors: active) {
  .rk-lang-button[aria-pressed="true"] { border-color: Highlight; color: Highlight; }
}
