@font-face {
    font-family: 'DMSans';
    src: url('/assets/fonts/tigo/DMSans-Medium.woff2') format('woff2'),
        url('/assets/fonts/tigo/DMSans-Medium.woff') format('woff'),
        url('/assets/fonts/tigo/DMSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DMSans';
    src: url('/assets/fonts/tigo/DMSans-MediumItalic.woff2') format('woff2'),
        url('/assets/fonts/tigo/DMSans-MediumItalic.woff') format('woff'),
        url('/assets/fonts/tigo/DMSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'DMSans';
    src: url('/assets/fonts/tigo/DMSans-Bold.woff2') format('woff2'),
        url('/assets/fonts/tigo/DMSans-Bold.woff') format('woff'),
        url('/assets/fonts/tigo/DMSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DMSans';
    src: url('/assets/fonts/tigo/DMSans-Black.woff2') format('woff2'),
        url('/assets/fonts/tigo/DMSans-Black.woff') format('woff'),
        url('/assets/fonts/tigo/DMSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #05061c;
    --text-light: #f4f5ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: radial-gradient(ellipse at center, #0c1550 0%, #05061c 70%);
    transition: opacity .6s ease, visibility .6s ease;
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bar {
    width: 220px;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, .15);
}

.loader-bar__fill {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: width .15s linear;
}

.loader-text {
    margin: 0;
    font-size: .85rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .75);
    font-weight: 500;
}

/* ---------- Sequence (pinned) section ---------- */
.sequence-section {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
}

/* El contenido siguiente se solapa (margin-top negativo aplicado por JS) para
   poder hacer crossfade con el whiteout antes de que termine el pin, en vez
   de esperar a que termine el scroll del pin para recién empezar a aparecer. */
#contenido {
    position: relative;
    z-index: 2;
}

.sequence-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.sequence-icon {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    opacity: 0;
    will-change: opacity;
}

.sequence-scrolling {
    position: absolute;
    top: calc(100svh - 65px - 1rem);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'DMSans', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
    opacity: 0;
}

.sequence-scrolling p {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.sequence-scrolling__arrow {
    animation: arrow-bounce-jump 2.8s ease-out infinite;
}

@keyframes arrow-bounce-jump {
    0% {
        transform: translateY(0);
    }
    8% {
        transform: translateY(-16px);
    }
    16% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-7px);
    }
    24% {
        transform: translateY(0);
    }
    27% {
        transform: translateY(-3px);
    }
    29%,
    100% {
        transform: translateY(0);
    }
}

.sequence-text {
    position: absolute;
    top: 50dvh;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    padding: 0 24px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.sequence-text h2 {
    margin: 0;
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    line-height: 1.05;
    color: var(--text-light);
    font-family: 'DMSans', Arial, sans-serif;
    white-space: nowrap;
}

.sequence-text__sub {
    margin: 0 0 .1em;
    font-weight: 700;
    font-size: clamp(1.2rem, 3.4vw, 3rem);
    color: var(--text-light);
    font-family: 'DMSans', Arial, sans-serif;
}

.sequence-text__mega {
    margin: 0;
    font-weight: 900;
    line-height: 1;
    font-size: clamp(2.4rem, 9vw, 7.5rem);
    color: var(--text-light);
    font-family: 'DMSans', Arial, sans-serif;
    white-space: nowrap;
}

.whiteout {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Content section ---------- */
.content-section {
    min-height: 100vh;
    background: #fff;
    color: #05061c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px;
}

.content-section__inner p {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 700;
    text-align: center;
}