/* ═══════════════════════════════════════════════════════════
   SYSTEM MODAL — sistema unificado EffiSolver S189.2
   Paleta: solo morado (normal) + rojo (destructivo)
   Alineado al modal "¿Eliminar sesión?" en producción
   ═══════════════════════════════════════════════════════════ */

.sm-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.sm-overlay.active { opacity: 1; pointer-events: auto; }

.sm-box {
  background: white;
  border-radius: 24px;
  padding: 32px 28px 24px;
  max-width: 380px; width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  transform: scale(0.95); opacity: 0;
  transition: all 0.2s ease;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sm-overlay.active .sm-box { transform: scale(1); opacity: 1; }

.sm-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.sm-icon-wrap.purple { background: #EDE9FE; }
.sm-icon-wrap.red    { background: #FEE2E2; }

.sm-icon-wrap svg {
  width: 32px; height: 32px;
  stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.sm-icon-wrap.purple svg { stroke: #7C3AED; }
.sm-icon-wrap.red svg    { stroke: #DC2626; }

.sm-title {
  font-size: 19px; font-weight: 700;
  color: #111827; margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.sm-msg {
  font-size: 14px; color: #6B7280;
  margin: 0 0 22px; line-height: 1.55;
}

.sm-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px; margin-bottom: 16px;
  font-size: 14px; outline: none; box-sizing: border-box;
  font-family: inherit; color: #111827;
  transition: border .15s, box-shadow .15s;
  text-align: left;
}
.sm-input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.sm-actions { display: flex; flex-direction: column; gap: 10px; }
.sm-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: all 0.15s;
}
.sm-btn.primary { background: #7C3AED; color: white; }
.sm-btn.primary:hover { background: #6D28D9; }
.sm-btn.danger { background: #DC2626; color: white; }
.sm-btn.danger:hover { background: #B91C1C; }
.sm-btn.secondary { background: #F3F4F6; color: #374151; }
.sm-btn.secondary:hover { background: #E5E7EB; }

@media (max-width: 480px) {
  .sm-box { padding: 28px 22px 20px; }
  .sm-title { font-size: 18px; }
  .sm-msg { font-size: 13.5px; }
}
