/* ============================================
   BASE — Variables globales, animaciones, toasts
   ============================================ */

:root {
  /* Colores principales */
  --color-primary: #0d2b1d;
  --color-primary-light: #1a4a2e;
  --color-success: #30c96b;
  --color-success-hover: #28b35e;
  --color-success-light: #dcfce7;
  --color-success-border: #bbf7d0;
  --color-success-bg: #f8fff9;
  --color-danger: #dc2626;
  --color-danger-hover: #b91c1c;
  --color-link: #2563eb;
  --color-link-hover: #1d4ed8;

  /* Texto */
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-text-placeholder: #9ca3af;

  /* Bordes & fondos */
  --color-border: #e5e7eb;
  --color-border-input: #d8d8d8;
  --color-border-dark: #d1d5db;
  --color-bg-light: #f9fafb;
  --color-bg-card: #f3f4f6;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 16px;

  /* Sombras */
  --shadow-card: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-dropdown: 0 12px 32px rgba(0,0,0,.15);
}

/* ── Transición de pasos ── */
.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast notifications ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  font-size: .875rem;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: toastSlideIn .3s ease-out;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast--error   { background: var(--color-danger); }
.toast--success { background: #16a34a; }

/* ============================================
   PANTALLA DE ESPERA / APROBACIÓN
   ============================================ */
.pa-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 44px 34px 34px;
  text-align: center;
}

.pa-spinner-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa-spinner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 5px solid var(--color-success-light);
  border-top-color: var(--color-success);
  animation: paSpin 0.9s linear infinite;
}
.pa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(13,43,29,.18);
  animation: paSpin 6s linear infinite reverse;
}
@keyframes paSpin { to { transform: rotate(360deg); } }

.pa-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
}
.pa-icon--ok  { background: var(--color-success-light); color: var(--color-success); }
.pa-icon--err { background: #fee2e2; color: var(--color-danger); }

.pa-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.pa-text {
  font-size: .9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 380px;
}

.pa-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.pa-chip {
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.pa-btn-primary {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-bottom: 14px;
}
.pa-btn-primary:hover { background: var(--color-primary-light); transform: translateY(-1px); }

.pa-link-btn {
  background: none;
  border: none;
  color: var(--color-link);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.pa-link-btn:hover { color: var(--color-link-hover); }
