/* Pantalla de carga del asistente de firma (/asistente/...). Está en index.html, así se ve desde el
   primer instante, antes de que llegue la aplicación: quien viene de otro sistema nunca ve la página
   en blanco. La aplicación la desvanece cuando la solicitud está lista (src/utils/splashAsistente.js).
   Siempre en fondo blanco, también en modo nocturno, como la identidad del Ministerio. Fuera del
   asistente no se muestra. */
.splash-asistente {
  display: none;
}

html.con-splash-asistente .splash-asistente {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #ffffff;
  color: #1e293b;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: center;
  transition: opacity 0.45s ease, visibility 0.45s;
}

html.con-splash-asistente .splash-asistente.splash-asistente--oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-asistente__logo {
  display: block;
  width: 168px;
  height: auto;
  animation: splash-asistente-aparece 0.6s ease both;
}

/* La franja de Gobierno de Chile: azul hasta el 41 %, rojo el resto, como en la barra de FirmaMOP. */
.splash-asistente__franja {
  width: 132px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0f69b4 0 41%, #eb3c46 41% 100%);
}

.splash-asistente__titulo {
  margin: 0.25rem 0 0;
  color: #1e40af;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.splash-asistente__subtitulo {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.splash-asistente__spinner {
  width: 40px;
  height: 40px;
  margin-top: 0.5rem;
  border: 3px solid #dbe5f3;
  border-top-color: #0f69b4;
  border-right-color: #2563eb;
  border-radius: 50%;
  animation: splash-asistente-gira 0.85s linear infinite;
}

.splash-asistente__texto {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

@keyframes splash-asistente-gira {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splash-asistente-aparece {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.con-splash-asistente .splash-asistente,
  .splash-asistente__logo {
    transition: none;
    animation: none;
  }

  .splash-asistente__spinner {
    animation-duration: 2.5s;
  }
}
