/* =========================================================
   PANTALLA DE LANZAMIENTO
   ========================================================= */

body.launch-locked {
    overflow: hidden;
}

.launch-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: grid;
    place-items: center;

    min-height: 100dvh;
    padding: 2rem 1rem;

    overflow: hidden;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #702a91 0%,
            #9b108a 45%,
            #aa0788 100%
        );
}

.launch-gate[hidden] {
    display: none;
}

.launch-gate__background {
    position: absolute;
    inset: -20%;
    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgb(255 121 0 / 28%) 0,
            transparent 18%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgb(118 213 0 / 22%) 0,
            transparent 20%
        ),
        radial-gradient(
            circle at 70% 85%,
            rgb(255 208 0 / 18%) 0,
            transparent 22%
        );

    transform: rotate(-8deg);

    pointer-events: none;
}

.launch-gate__content {
    position: relative;
    z-index: 1;

    width: min(100%, 52rem);

    text-align: center;
}

.launch-gate__merco {
    width: clamp(5rem, 18vw, 7.5rem);
    height: auto;
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.launch-gate__eyebrow {
    margin-bottom: 0.25rem;

    color: #76d500;

    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4.5vw, 2rem);
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.launch-gate__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 13vw, 8rem);
    font-style: italic;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.launch-gate__title span {
    display: block;

    color: #ffffff;

    text-shadow:
        0.04em 0.04em 0 #ff7900,
        0.08em 0.08em 0 #76d500;
}

.launch-gate__description {
    width: min(100%, 37rem);
    margin: 1.75rem auto 0;

    font-size: clamp(1rem, 3.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
}

.launch-countdown {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: start;
    gap: clamp(0.25rem, 1.5vw, 0.8rem);

    width: min(100%, 43rem);
    margin: 2.5rem auto 0;
}

.launch-countdown__item {
    display: grid;
    gap: 0.35rem;
}

.launch-countdown__item strong {
    display: grid;
    place-items: center;

    min-height: clamp(4rem, 16vw, 7rem);
    padding-inline: 0.4rem;

    color: #702a91;
    background: #ffffff;
    border: 0.2rem solid #76d500;
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2rem rgb(54 7 63 / 28%);

    font-family: var(--font-display);
    font-size: clamp(2.1rem, 8vw, 4.5rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
}

.launch-countdown__item span {
    font-size: clamp(0.65rem, 2.6vw, 0.95rem);
    font-weight: 800;
    text-transform: uppercase;
}

.launch-countdown__separator {
    padding-top: clamp(0.9rem, 4vw, 2rem);

    color: #ffcf00;

    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
}

.launch-gate__date {
    margin-top: 1.75rem;

    color: #ffcf00;

    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.launch-gate__content,
.launch-countdown,
.launch-countdown__item {
    min-width: 0;
}

/* =========================================================
   LANZAMIENTO MOBILE
   ========================================================= */

@media (max-width: 40rem) {
    .launch-gate {
        place-items: center;

        padding:
            max(1.25rem, env(safe-area-inset-top))
            1rem
            max(1.25rem, env(safe-area-inset-bottom));

        overflow-y: auto;
    }

    .launch-gate__content {
        width: 100%;
        max-width: 24rem;
        margin: 0 auto;
    }

    .launch-gate__merco {
        width: clamp(4.5rem, 20vw, 5.5rem);
        margin-bottom: 1.25rem;
    }

    .launch-gate__eyebrow {
        margin-bottom: 0.4rem;

        font-size: clamp(0.95rem, 4.5vw, 1.2rem);
        line-height: 1;
    }

    .launch-gate__title {
        font-size: clamp(3rem, 14vw, 4.2rem);
        line-height: 0.84;
        letter-spacing: -0.035em;
    }

    .launch-gate__title span {
        margin-top: 0.25rem;

        line-height: 0.9;
        text-shadow:
            0.035em 0.035em 0 #ff7900,
            0.07em 0.07em 0 #76d500;
    }

    .launch-gate__description {
        width: 100%;
        max-width: 21rem;
        margin-top: 1.5rem;
        padding-inline: 0.5rem;

        font-size: clamp(0.9rem, 3.8vw, 1.05rem);
        line-height: 1.35;
    }

    /*
     * En móvil distribuimos:
     *
     * Días       Horas
     * Minutos    Segundos
     */
    .launch-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;

        width: 100%;
        max-width: 20rem;
        margin-top: 1.75rem;
    }

    .launch-countdown__separator {
        display: none;
    }

    .launch-countdown__item {
        min-width: 0;
        gap: 0.35rem;
    }

    .launch-countdown__item strong {
        min-width: 0;
        min-height: 4.5rem;
        padding: 0.4rem;

        border-width: 0.15rem;
        border-radius: 0.8rem;

        font-size: clamp(2.25rem, 11vw, 3rem);
    }

    .launch-countdown__item span {
        font-size: 0.7rem;
        line-height: 1;
    }

    .launch-gate__date {
        margin-top: 1.5rem;

        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.2;
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .launch-gate__content {
        animation: launch-content-enter 700ms ease-out both;
    }

    @keyframes launch-content-enter {
        from {
            opacity: 0;
            transform: translateY(1.5rem) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 40rem) and (max-height: 42rem) {
    .launch-gate {
        align-items: start;
    }

    .launch-gate__content {
        padding-block: 1rem;
    }

    .launch-gate__merco {
        width: 4rem;
        margin-bottom: 0.75rem;
    }

    .launch-gate__description {
        margin-top: 1rem;
    }

    .launch-countdown {
        margin-top: 1.25rem;
    }

    .launch-gate__date {
        margin-top: 1rem;
    }
}