/* ═══════════════════════════════════════════════════════════════════
   SOBERANÍA DIGITAL — CSS Global v1.0.0
   Semáforo unificado 1-7 con azul en excelente
═══════════════════════════════════════════════════════════════════ */

/* Variables semáforo */
:root {
  --sd-1: #dc2626;
  --sd-2: #ef4444;
  --sd-3: #ea580c;
  --sd-4: #ca8a04;
  --sd-5: #16a34a;
  --sd-6: #15803d;
  --sd-7: #2563eb;
  --sd-0: #9ca3af;
}

/* Acceso / login */
.sd-acceso {
  max-width: 480px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.sd-acceso-icon { font-size: 36px; margin-bottom: 16px; }
.sd-acceso h2   { font-size: 22px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }
.sd-acceso p    { font-size: 14px; color: #6b7280; margin-bottom: 24px; }

/* Botones */
.sd-btn-prim {
  display: inline-block;
  background: #1f2937;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.sd-btn-prim:hover { background: #374151; }

.sd-btn-sec {
  display: inline-block;
  background: transparent;
  color: #6b7280 !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s;
}
.sd-btn-sec:hover { border-color: #9ca3af; }

/* Barra progreso */
.sd-prog-bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
}
.sd-prog-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Spinner */
.sd-loading {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #6b7280;
}
.sd-loading.activo { display: flex; }
.sd-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: sd-spin 0.8s linear infinite;
}
@keyframes sd-spin { to { transform: rotate(360deg); } }
@keyframes sd-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes sd-fade-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
