/* Switch de animaciones (Auto / Sí / No). Se usa en todas las páginas. */
.motion-switch {
  --ms-accent: #0b625b;
  --ms-fg: #4b636e;
  --ms-bg: rgba(255, 255, 255, 0.86);
  --ms-border: #dfece8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ms-fg);
}

.motion-switch__icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ms-accent);
}

.motion-switch__label {
  display: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .motion-switch__label {
    display: inline;
  }
}

.motion-switch__group {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--ms-bg);
  border: 1px solid var(--ms-border);
}

.motion-switch button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.motion-switch button:hover {
  color: var(--ms-accent);
}

.motion-switch button[aria-pressed='true'] {
  background: var(--ms-accent);
  color: #fff;
}

.motion-switch button:focus-visible {
  outline: 2px solid var(--ms-accent);
  outline-offset: 2px;
}

.motion-switch__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
