/* Equipos de hostelería dibujados con CSS (las «imágenes al estilo glop»): tablet de caja, pantalla de cocina,
   móvil del camarero e impresora de tickets. Dentro van capturas reales del TPV. */
.eq { position: relative; max-width: 100% }
.eq img { image-rendering: auto }
.eq picture, .eq img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left }

.tablet { aspect-ratio: 1440 / 900; padding: 2.2%; border-radius: 4.5% / 7%; background: var(--eq-cuerpo);
  box-shadow: 0 1px 0 1px rgb(255 255 255 / .06) inset, 0 30px 60px -20px rgb(0 0 0 / .45), 0 12px 24px -12px rgb(0 0 0 / .35) }
.tablet .pantalla { width: 100%; height: 100%; border-radius: 1.6% / 2.6%; overflow: hidden; background: #0d1110 }
.tablet::before { content: ""; position: absolute; left: 50%; top: 1%; width: .9%; aspect-ratio: 1; border-radius: 50%; background: #2a3130; transform: translateX(-50%) }

.monitor { aspect-ratio: 16 / 10; padding: 1.6%; border-radius: 10px; background: var(--eq-cuerpo); box-shadow: 0 24px 50px -18px rgb(0 0 0 / .5); margin-bottom: 12% }
.monitor .pantalla { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #0d1110 }
.monitor::after { content: ""; position: absolute; left: 44%; right: 44%; top: 100%; height: 14%; background: #2a3130 }
.monitor::before { content: ""; position: absolute; left: 32%; right: 32%; top: 113%; height: 3%; border-radius: 6px; background: #2a3130 }

.movil { aspect-ratio: 390 / 844; padding: 3.2%; border-radius: 14% / 6.5%; background: var(--eq-cuerpo); width: min(300px, 46%); margin-inline: auto;
  box-shadow: 0 1px 0 1px rgb(255 255 255 / .07) inset, 0 26px 50px -16px rgb(0 0 0 / .5) }
.movil .pantalla { width: 100%; height: 100%; border-radius: 11% / 5.2%; overflow: hidden; background: #0d1110; position: relative }
.movil .pantalla::before { content: ""; position: absolute; z-index: 2; top: 1.4%; left: 50%; width: 30%; height: 3.4%; border-radius: 99px; background: #000; transform: translateX(-50%) }

/* Impresora de tickets: el papel sale, se queda a la vista y se corta */
.impresora { width: 100%; max-width: 320px; aspect-ratio: 1 / .78; position: relative; margin-top: 46% }
.impresora .cuerpo { position: absolute; inset: 22% 0 0; border-radius: 16px 16px 12px 12px; background: linear-gradient(#f1f2f0, #d6d9d5);
  box-shadow: 0 18px 30px -14px rgb(0 0 0 / .45), 0 -2px 0 #fff inset; z-index: 1 }
.impresora .cuerpo::before { content: ""; position: absolute; left: 12%; right: 12%; top: 9%; height: 7%; border-radius: 99px; background: #3a403e; box-shadow: 0 2px 0 rgb(255 255 255 / .6) }
.impresora .cuerpo::after { content: ""; position: absolute; right: 10%; bottom: 14%; width: 7%; aspect-ratio: 1; border-radius: 50%;
  background: var(--eq-luz); box-shadow: 0 0 10px var(--eq-luz); animation: parpadeo 2.4s infinite }
.impresora .papel { position: absolute; left: 14%; right: 14%; bottom: 70%; overflow: hidden; clip-path: inset(0 0 0 0) }
.impresora .ticket { position: relative; animation: imprimir 7s cubic-bezier(.3, .6, .4, 1) infinite }
.ticket { background: #fbfaf5; color: #1c211f; font: 700 12px/1.5 var(--f-mono); padding: 12px 12px 18px; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .3);
  mask: linear-gradient(#000 calc(100% - 6px), transparent 0), conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 6px repeat-x }
.ticket .t-cab { text-align: center; letter-spacing: .06em }
.ticket .t-fila { display: flex; justify-content: space-between; gap: 8px; font-weight: 400 }
.ticket .t-fila b { font-weight: 700 }
.ticket .t-raya { border-top: 1px dashed #9aa19d; margin: 6px 0 }
.ticket .t-qr { width: 52px; aspect-ratio: 1; margin: 8px auto 2px; background: url("/img/qr-verifactu.svg") center / contain no-repeat } /* QR real: lleva a /verifactu */
@keyframes imprimir { 0%, 6% { transform: translateY(100%) } 45%, 90% { transform: translateY(0) } 100% { transform: translateY(0); opacity: 0 } }
@keyframes parpadeo { 0%, 60%, 100% { opacity: 1 } 70% { opacity: .35 } }

/* Comanda que vuela de un equipo a otro */
.vuela { position: absolute; z-index: 3; padding: 8px 12px; border-radius: 10px; background: var(--ambar); color: var(--tinta-boton); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6);
  font: 700 13px/1.2 var(--f-cuerpo); white-space: nowrap; animation: vuela 6s cubic-bezier(.55, 0, .3, 1) infinite; pointer-events: none }
@keyframes vuela { 0%, 15% { transform: translate(0, 0) scale(.6); opacity: 0 } 22% { opacity: 1; transform: translate(0, 0) scale(1) }
  60% { transform: translate(var(--dx, 200px), var(--dy, -100px)) scale(1); opacity: 1 } 70%, 100% { transform: translate(var(--dx, 200px), var(--dy, -100px)) scale(.4); opacity: 0 } }

@media (prefers-reduced-motion: reduce) { .impresora .ticket { transform: none } .vuela { display: none } }
