/* ==============================
   POPUP OVERLAY
============================== */

.popup-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.45);

    backdrop-filter: blur(8px);

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 999999;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.3s ease;
}

/* visible */

.popup-overlay.active {

    opacity: 1;

    pointer-events: all;
}

/* ==============================
   BOX
============================== */

.popup-box {

    position: relative;

    width: 90%;
    max-width: 420px;

    background: white;

    border-radius: 24px;

    padding: 40px 30px;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.25);

    animation: popupEnter 0.35s ease;
}

.popup-box p{
    margin-bottom: 15px;
}

/* ==============================
   LOGO
============================== */

.popup-logo {

    width: 120px;

    margin-bottom: 10px;
}

/* ==============================
   CLOSE BUTTON
============================== */

.popup-close {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.08);

    cursor: pointer;

    font-size: 1rem;

    transition: all 0.2s ease;
}

.popup-close:hover {

    background: rgba(0,0,0,0.15);

    transform: scale(1.05);
}

/* ==============================
   ANIMACIÓN
============================== */

@keyframes popupEnter {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(0.95);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

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

@media (max-width: 768px) {

    .popup-box {

        padding: 35px 22px;
    }

    .popup-logo {

        width: 90px;
    }
}