/* =================================================
   VARIABLES DE COLOR / TEMA GLOBAL
   Paleta principal basada en azules (modo claro)
================================================= */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-soft: #e5e7eb;
}

/* =================================================
   KPIs / TARJETAS DE MÉTRICAS (DASHBOARD)
================================================= */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi strong {
  font-size: 26px;
}

/* =================================================
   MODALES (GENÉRICO)
================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal__content {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  min-width: 320px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal__header h3 {
  font-size: 16px;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* =================================================
   LOADER / SPINNER
================================================= */
.loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.loader::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-soft);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =================================================
   TOASTS / NOTIFICACIONES
================================================= */
.toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.toast--success {
  background: #047857;
}

.toast--error {
  background: #b91c1c;
}

/* =================================================
   ACCIONES RÁPIDAS (BOTONES PEQUEÑOS)
================================================= */
.actions {
  display: flex;
  gap: 8px;
}

.actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

/* =================================================
   INDICADORES DE ESTADO (PUNTOS)
================================================= */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot--ok::before {
  background: #22c55e;
}

.status-dot--warn::before {
  background: #f59e0b;
}

.status-dot--error::before {
  background: #ef4444;
}

/* =================================================
   DIVISORES VISUALES
================================================= */
.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 14px 0;
}
