/* Utilidades propias de Recargas sobre DaisyUI (sin build, sin estilos en línea: el CSP es default-src 'self'). */

/* ---- CSP: DaisyUI define --fx-noise como un data:image/svg+xml, que `default-src 'self'` bloquea (error en consola).
   Los temas light y dark traen --noise: 0, así que anularlo no cambia nada visible. El archivo vendorizado queda intacto. ---- */
:root { --fx-noise: none; }

/* ---- Estructura ---- */
body { display: flex; flex-direction: column; min-height: 100vh; }
.app-main { flex: 1 0 auto; }
.app-center { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.app-container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.app-section { padding-block: 2.5rem; }
.app-card-narrow { width: 100%; max-width: 28rem; }
.app-error-code { font-size: 4rem; font-weight: 800; line-height: 1; }

/* ---- Rejilla responsiva: 1 columna en celular, N columnas desde tablet ---- */
.app-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .app-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .app-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .app-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Espaciados ---- */
.app-stack > * + * { margin-top: 1rem; }
.app-gap-sm { gap: 0.5rem; }
.app-gap-md { gap: 1rem; }
.app-mt-md { margin-top: 1rem; }
.app-mt-lg { margin-top: 2rem; }

/* ---- Barra de navegación ---- */
.app-navbar { padding: 0; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* ---- Portada ---- */
.app-hero { padding-block: 4rem; }
.app-hero-text { max-width: 40rem; }
.app-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---- Botón de tema: muestra luna en claro y sol en oscuro ---- */
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }

/* ---- Impresión (tickets): solo el contenido marcado con .ticket, sin navegación ni pie ---- */
.ticket { max-width: 80mm; margin-inline: auto; }
@media print {
  @page { margin: 4mm; }
  body { background: #fff !important; color: #000 !important; display: block; min-height: 0; }
  .app-navbar, .app-footer, .no-print, button, .btn { display: none !important; }
  .app-main { padding: 0 !important; }
  .ticket { max-width: none; width: 80mm; margin: 0; box-shadow: none !important; border: 0 !important; }
  .ticket * { color: #000 !important; background: transparent !important; }
}

/* ---- Tipografía y sombras (DaisyUI no trae utilidades sueltas) ---- */
.app-text-center { text-align: center; }
.app-card-center { align-items: center; text-align: center; }
.app-brand { font-size: 1.25rem; font-weight: 700; }
.app-hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.15; }
.app-hero-lead { padding-block: 1.5rem; }
.app-shadow { box-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 1px 2px rgb(0 0 0 / 0.08); }
.app-footer { padding: 1.5rem; opacity: 0.75; }
@media (max-width: 480px) { .app-hero-title { font-size: 1.75rem; } }
