/* Recepta · Botones con movimiento: se elevan al pasar el mouse, se hunden al tocarlos y los principales tienen un brillo que
   los recorre. Va al final (después de estilo.css) para valer en toda la app. Sin movimiento si la persona lo pidió en su sistema. */
button, .boton, a.boton {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}
button:not(:disabled):not(.enlace):not(.cerrar):hover, .boton:hover { transform: translateY(-1px); }
button:not(:disabled):not(.enlace):active, .boton:active { transform: translateY(1px) scale(0.97); transition-duration: 0.06s; }
button.primario, .boton.primario { position: relative; overflow: hidden; isolation: isolate; }
button.primario::after, .boton.primario::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.65s ease;
}
button.primario:not(:disabled):hover::after, .boton.primario:hover::after { transform: translateX(120%); }
button.primario:not(:disabled):hover, .boton.primario:hover { box-shadow: 0 10px 24px -10px rgba(43, 75, 255, 0.6); }
button.peligro:not(:disabled):hover { box-shadow: 0 8px 20px -12px rgba(220, 38, 38, 0.6); }
button.grande, .boton.grande { min-height: 48px; padding: 12px 22px; font-size: 1.04rem; border-radius: 14px; }
button:focus-visible, .boton:focus-visible { outline: none; box-shadow: var(--foco, 0 0 0 3px rgba(43, 75, 255, 0.4)); }
button:disabled { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  button, .boton, a.boton { transition: none; }
  button:hover, button:active, .boton:hover, .boton:active { transform: none !important; }
  button.primario::after, .boton.primario::after { display: none; }
}
