html, body { margin: 0; background: #F7F5EF; overscroll-behavior: none; }
/* Sin el destello azul del navegador del teléfono al tocar un botón */
* { -webkit-tap-highlight-color: transparent; }
#carga { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: #F7F5EF; font-family: system-ui, sans-serif; color: #1E6B45; z-index: 10; transition: opacity .3s; }
#carga.listo { opacity: 0; pointer-events: none; }
#carga img { border-radius: 22px; }
#carga .marca { font-size: 28px; font-weight: 800; }
#carga-texto { font-size: 15px; color: #5F5E58; font-weight: 600; text-align: center; padding: 0 24px; }
.girando { width: 34px; height: 34px; border: 4px solid #E3F1E8; border-top-color: #1E6B45; border-radius: 50%; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
#aviso-navegador { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: #FFF3D6; color: #4D3300;
  font-family: system-ui, sans-serif; font-size: 15px; padding: 12px 40px 12px 14px; box-shadow: 0 2px 8px #0003;
  display: flex; flex-direction: column; gap: 6px; }
#aviso-navegador[hidden] { display: none; }
#aviso-navegador button { font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #1E6B45; background: #fff; color: #1E6B45; padding: 6px 10px; align-self: flex-start; }
#cerrar-aviso { position: absolute; top: 6px; right: 6px; border: 0 !important; background: transparent !important; font-size: 20px; }

/* Botón "Instalar Axel Market" (encima de la app, abajo en el centro) */
#instalar { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 6px; background: #1E6B45; border-radius: 999px;
  padding: 6px 6px 6px 8px; box-shadow: 0 4px 0 #134A2F, 0 8px 20px rgba(0,0,0,.25); font-family: sans-serif; }
#instalar[hidden] { display: none; }
#instalar-si { background: none; border: 0; color: #fff; font-size: 18px; font-weight: 800; padding: 8px 10px; cursor: pointer; }
#instalar-no { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; }

/* Impresora normal: al imprimir solo sale el ticket (lo pone impresora.js). */
#ticket-impresion { display: none; }
@media print {
  body.imprimiendo > *:not(#ticket-impresion) { display: none !important; }
  html, body.imprimiendo { background: #fff !important; overflow: visible !important; }
  body.imprimiendo #ticket-impresion { display: block; color: #000; font-family: 'Nunito', Arial, sans-serif; }
  #ticket-impresion .r { display: flex; justify-content: space-between; gap: 6px; margin: 1px 0; }
  #ticket-impresion .r span:last-child { white-space: nowrap; }
  #ticket-impresion .c { text-align: center; margin: 1px 0; }
  #ticket-impresion .g { font-size: 1.5em; font-weight: 800; }
  #ticket-impresion .n { font-weight: 800; }
  #ticket-impresion hr { border: 0; border-top: 1px solid #000; margin: 4px 0; }
  #ticket-impresion .b { height: 0.6em; }
}
