html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Mismo fondo que EsquemaDokukxClaro / EsquemaDokukxOscuro */
    background: #F4F6F9;
}

@media (prefers-color-scheme: dark) {
    html, body { background: #0E141F; }
}

#carga-dokukx {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    pointer-events: none;
}


/* Barra que recorre los colores de los procesos, anticipando el cambio dinámico de la app */
#carga-dokukx .barra {
    width: 160px;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(19, 49, 92, 0.15);
}

#carga-dokukx .barra span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 4px;
    animation: avance 1.4s ease-in-out infinite, tonos 4s linear infinite;
}


@keyframes avance {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

@keyframes tonos {
    0% { background: #1F5FAD; }
    25% { background: #5B3A8E; }
    50% { background: #1B7F79; }
    75% { background: #B8922E; }
    100% { background: #1F5FAD; }
}
