/* Alertas modales Cupones ML */
#app-alert-overlay,
#app-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

#app-alert-overlay.is-open,
#app-confirm-overlay.is-open {
  display: flex;
}

.app-alert-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 1.35rem 1.25rem;
  text-align: center;
  animation: appAlertIn 0.22s ease-out;
}

.dark .app-alert-card {
  background: #0f172a;
  color: #e2e8f0;
}

.app-alert-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.app-alert-icon.success { background: #dcfce7; color: #16a34a; }
.app-alert-icon.error { background: #fee2e2; color: #dc2626; }
.app-alert-icon.warning { background: #fef3c7; color: #d97706; }
.app-alert-icon.info { background: #dbeafe; color: #2563eb; }

.app-alert-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.dark .app-alert-title { color: #f8fafc; }

.app-alert-message {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 1.15rem;
}

.dark .app-alert-message { color: #94a3b8; }

.app-alert-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-alert-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-alert-btn:active { transform: scale(0.96); }

.app-alert-btn.primary {
  background: #FFE600;
  color: #111;
}

.app-alert-btn.danger {
  background: #ef4444;
  color: #fff;
}

.app-alert-btn.ghost {
  background: #e2e8f0;
  color: #334155;
}

.dark .app-alert-btn.ghost {
  background: #1e293b;
  color: #e2e8f0;
}

@keyframes appAlertIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
