/* Alertas modales Lu Oferton */
#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(9, 9, 11, 0.58);
  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: 1rem;
  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: #18181b;
  color: #e4e4e7;
}

.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: #fce7f3; color: #FF2EA6; }

.app-alert-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #111111;
}

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

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

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

.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: 0.6rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.app-alert-btn.primary {
  background: #111111;
  color: #FFE500;
}

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

.app-alert-btn.ghost {
  background: #e4e4e7;
  color: #3f3f46;
}

.dark .app-alert-btn.ghost {
  background: #27272a;
  color: #e4e4e7;
}

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