:root {
    --bg: #103663;
    --fg: #fff;
    --accent: #5b9cff;
    --font: Roboto, Segoe UI, Noto Sans, Helvetica, Arial;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: var(--bg);
}

body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("img/portadaECD.png") no-repeat center center/contain;
    font-family: var(--font);
}

.overlay {
    padding: 20px 40px;
    border-radius: 12px;
}

.loader {
    display: inline-flex;
    gap: 0.1em;
    font-weight: 800;
    text-shadow: 0 0 0 var(--accent);
    font-size: clamp(28px, 6vw, 68px);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--fg);
    user-select: none;
}

.loader span {
    display: inline-block;
    transform-origin: 50% 80%;
    animation: bounce 1.1s cubic-bezier(.25, .7, .3, 1.4) infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 0 var(--accent);
    }

    35% {
        transform: translateY(-0.35em) scale(1.02);
        text-shadow: 0 6px 18px var(--accent);
    }

    60% {
        transform: translateY(0.12em) scale(0.98);
    }
}

/* Escalonamos el retardo para el efecto ola */
.loader span:nth-child(1) {
    animation-delay: 0s
}

.loader span:nth-child(2) {
    animation-delay: 0.05s
}

.loader span:nth-child(3) {
    animation-delay: 0.1s
}

.loader span:nth-child(4) {
    animation-delay: 0.15s
}

.loader span:nth-child(5) {
    animation-delay: 0.2s
}

.loader span:nth-child(6) {
    animation-delay: 0.25s
}

.loader span:nth-child(7) {
    animation-delay: 0.3s
}

.loader span:nth-child(8) {
    animation-delay: 0.35s
}

.loader span:nth-child(9) {
    animation-delay: 0.4s
}

.loader span:nth-child(10) {
    animation-delay: 0.45s
}

.loader span:nth-child(11) {
    animation-delay: 0.5s
}

.loader span:nth-child(12) {
    animation-delay: 0.55s
}

@media (prefers-reduced-motion: reduce) {
    .loader span {
        animation: none
    }
}