/* ==============================
        RESET GENERAL
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==============================
        CONFIGURACIÓN BASE
============================== */

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Arial", sans-serif;
    background: #000;
}


/* ==============================
        TODAS LAS PANTALLAS
============================== */

section {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}


/* ==============================
        LOADER INICIAL
============================== */

.loader-screen {
    background: #000;
    z-index: 10;
    justify-content: flex-start;
    padding-left: 5vw;
}


.counter {
    color: #ffffff;
    font-size: clamp(5rem, 22vw, 18rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;

    /* Mejor rendimiento en animaciones */
    will-change: transform, opacity;
}


/* ==============================
        TEXTO PRÓXIMAMENTE
============================== */

.coming-soon {
    background: #000;
    z-index: 9;
    opacity: 0;
    visibility: hidden;
}


.coming-soon h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 8vw, 8rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.03em;
    width: 90%;
    line-height: 1.1;
    will-change: transform, opacity;
}


/* ==============================
        GALERÍA DE EVENTOS
============================== */

.gallery {
    background: #000;
    z-index: 8;
    opacity: 0;
    visibility: hidden;
}


/* Cada escena ocupa toda la pantalla */
.gallery-item {

    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
}


/* Fondo cinematográfico */
.gallery-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(25px) brightness(0.35);
    transform: scale(1.2);
}


/* Foto principal */
.gallery-image {

    position: relative;

    width: auto;
    height: 100vh;

    object-fit: contain;

    z-index: 2;

    will-change: transform, opacity;
}

/* ==============================
        PANTALLA FINAL
============================== */

.final-screen {
    background: #ffffff;
    z-index: 7;

    opacity: 0;
    visibility: hidden;
}


/* Contenedor de los dos elementos del logo */
.logo-container {
    position: relative;

    width: min(90vw, 700px);
    height: min(60vh, 450px);

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: visible;
}


/* Estilo común de ambos logos */
.logo {
    position: absolute;
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    will-change: transform, opacity;
}


/*
    El logo superior comienza fuera de la pantalla
    y GSAP lo bajará hasta su posición final
*/
.logo-top {
    transform: translateY(-150vh);
}


/*
    El logo inferior comienza fuera de la pantalla
    y GSAP lo subirá hasta su posición final
*/
.logo-bottom {
    transform: translateY(150vh);
}


/* ==============================
        RESPONSIVE TABLET
============================== */

@media (max-width: 768px) {

    .counter {
        font-size: clamp(4rem, 28vw, 9rem);
    }


    .coming-soon h2 {
        font-size: 8vw;
        width: 80%;
        letter-spacing: 0.02em;
        line-height: 0.9;
    }


    .logo-container {
        width: 90vw;
        height: 40vh;
    }

}


/* ==============================
        RESPONSIVE MÓVIL PEQUEÑO
============================== */

@media (max-width: 480px) {

    .counter {
        font-size: 32vw;
    }

    .logo-container {
        width: 95vw;
        height: 35vh;
    }

}