/* ============================================================
   Pirotecnia Navideña — estilos personalizados
   (Tailwind se carga por CDN; aquí solo lo que Tailwind no cubre)
   ============================================================ */

/* ---------- Placeholders de imagen (regla del proyecto: sin imágenes reales) ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  background-color: #E2E8F0;
  color: #64748B;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0.5rem;
  overflow: hidden;
}
.placeholder-night {
  background-color: #0B1120;
  color: #94A3B8;
  border: 1px solid #1E293B;
}
.dark .placeholder { background-color: #334155; color: #94A3B8; }

/* ---------- Carrusel de combos ---------- */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
#combos-track > article { scroll-snap-align: start; flex: 0 0 15rem; -webkit-flex: 0 0 15rem; }

/* ---------- Acordeón del catálogo ---------- */
details.cat-acc { border: 1px solid #E2E8F0; border-radius: 0.75rem; overflow: hidden; background: #fff; }
.dark details.cat-acc { border-color: #1E293B; background: #0F172A; }
details.cat-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  font-weight: 800;
  user-select: none;
}
details.cat-acc > summary::-webkit-details-marker { display: none; }
details.cat-acc > summary .chev { margin-left: auto; transition: transform 0.2s; }
details.cat-acc[open] > summary .chev { transform: rotate(180deg); }
details.cat-acc > summary:hover { background: rgba(148, 163, 184, 0.08); }

/* ---------- Selector de moneda ---------- */
.cur-btn {
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  color: #64748B;
  transition: all 0.15s;
}
.cur-btn.active { background: #fff; color: #0F4C81; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.dark .cur-btn { color: #94A3B8; }
.dark .cur-btn.active { background: #1E293B; color: #EFF6FF; }

/* ---------- Stepper de cantidad ---------- */
.qty-btn {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  background: #fff; color: #0F4C81;
  border: 1.5px solid #CBD5E1;
  transition: transform .1s;
}
.qty-btn:active { transform: scale(0.88); }
.dark .qty-btn { background: #1E293B; color: #93C5FD; border-color: #475569; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.6); backdrop-filter: blur(2px); }
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  color: #1E293B;
  border-radius: 1.25rem 1.25rem 0 0;
  animation: sheet-up 0.25s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.dark .modal-sheet { background: #0F172A; color: #F1F5F9; }
.modal-sheet--tall { max-height: 92vh; display: flex; flex-direction: column; }
@keyframes sheet-up { from { transform: translateY(40%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Spinner ---------- */
.spinner {
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  border: 5px solid #CBD5E1;
  border-top-color: #10B981;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Puntos animados ("Verificando...") */
.dots::after { content: ''; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---------- Toasts ---------- */
.toast {
  pointer-events: auto;
  background: #0F172A;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
  animation: toast-in 0.2s ease-out;
  max-width: 22rem;
  text-align: center;
}
.toast.toast-ok { background: #047857; }
.toast.toast-err { background: #B91C1C; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Inputs ---------- */
.inp {
  width: 100%;
  border: 1.5px solid #CBD5E1;
  background: #fff;
  color: #1E293B;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
}
.inp:focus { border-color: #1D4ED8; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
.dark .inp { background: #1E293B; border-color: #475569; color: #F1F5F9; }
.lbl { display: block; font-size: 0.8rem; font-weight: 800; margin-bottom: 0.3rem; }

/* ---------- Tarjeta de método de pago ---------- */
.pm-card { border: 1.5px solid #E2E8F0; border-radius: 0.9rem; padding: 0.8rem 1rem; cursor: pointer; transition: all .15s; }
.pm-card:hover { border-color: #94A3B8; }
.pm-card.selected { border-color: #10B981; background: rgba(16, 185, 129, 0.07); }
.dark .pm-card { border-color: #334155; }

/* ---------- Zona de subida de comprobante ---------- */
.drop-box {
  border: 2px dashed #94A3B8;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
}
.drop-box.has-file { border-color: #10B981; color: #047857; background: rgba(16, 185, 129, 0.06); }
.dark .drop-box { color: #94A3B8; }
