/* ═══════════════════════════════════════════════════════════════
   SURIAPP — assets/css/demo-sistema.css
   Sólo lo que agrega la demo (demo-sistema.html) sobre los estilos
   reales del sistema: cursor, resaltados y apariciones.
   ═══════════════════════════════════════════════════════════════ */
html, body.demo-sistema { overflow: hidden; scrollbar-width: none; }
body.demo-sistema::-webkit-scrollbar { display: none; }
body.demo-sistema { cursor: default; user-select: none; }
body.demo-sistema * { pointer-events: none !important; }
.demo-sistema .page { animation: none !important; }

/* Cursor */
.demo-cursor {
  position: fixed; left: 0; top: 0; z-index: 99999; width: 22px; height: 22px; opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.6L9.6 19z' fill='%230F172A' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .3s;
}
.demo-cursor.visible { opacity: 1; }
.demo-cursor.clic::after { content: ''; position: absolute; left: -9px; top: -9px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #7B3FE4; animation: demo-onda .5s ease-out both; }
@keyframes demo-onda { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.7); } }

/* Filas que entran (importación, movimientos, taller) */
.demo-oculta { opacity: 0 !important; }
.demo-entra { animation: demo-entra .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes demo-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Lo que se acaba de tocar o agregar */
.demo-pulso { animation: demo-pulso 1.1s ease-out; border-radius: inherit; }
@keyframes demo-pulso { from { box-shadow: 0 0 0 0 rgba(123, 63, 228, .55); } to { box-shadow: 0 0 0 12px rgba(123, 63, 228, 0); } }
.demo-presion { animation: demo-presion .3s ease; }
@keyframes demo-presion { 50% { transform: scale(.95); filter: brightness(.92); } }
.demo-brillo { animation: demo-brillo 1.6s ease-out; }
@keyframes demo-brillo { from { background-color: rgba(34, 197, 94, .18); } to { background-color: transparent; } }

/* El ticket aparece como en el sistema */
.demo-sistema #modal-pos-ticket.show .modal-box { animation: demo-entra .35s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .demo-cursor { display: none; }
  .demo-entra, .demo-pulso, .demo-presion, .demo-brillo { animation: none !important; }
}
