/* Pantalla de carga: isotipo, wordmark y barra inferior */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.is-loading {
    overflow: hidden;
}

.page-loader__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(40px, 7vh, 78px);
    margin-top: -6vh;
    padding: 0 1.5rem;
}

.page-loader__mark {
    width: min(240px, 46vw);
    height: auto;
    display: block;
}

.page-loader__word {
    width: min(210px, 40vw);
    height: auto;
    display: block;
}

.page-loader__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background: #e3e3e3;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
}

.page-loader__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #00b8f2;
}

.page-loader__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .page-loader__bar {
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader {
        transition: none;
    }
}
