/* Botón trabajando: spinner + texto de la acción */
.gx-working {
  position: relative !important;
  overflow: hidden;
  cursor: progress !important;
  pointer-events: none;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
.gx-working > :not(.gx-busy):not([class*="glow"]) { visibility: hidden; }
.gx-working { color: transparent !important; }
.gx-working::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 45%, transparent 65%);
  background-size: 250% 100%;
  animation: gxSweep 1.4s linear infinite;
  pointer-events: none;
}
.gx-busy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0 0.6em;
  white-space: nowrap;
  font-weight: inherit;
  letter-spacing: 0.01em;
  color: var(--gx-busy-color);
  visibility: visible;
  animation: gxIn 0.25s ease both;
}
.gx-spin {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.95;
  animation: gxSpin 0.7s linear infinite;
}
.gx-busy-txt { overflow: hidden; text-overflow: ellipsis; }
@keyframes gxSpin { to { transform: rotate(360deg); } }
@keyframes gxSweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes gxIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gx-working::after, .gx-busy { animation: none; }
  .gx-spin { animation-duration: 1.4s; }
}
