/*PopUp promotions*/
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.promo-popup.active {
    opacity: 1;
    visibility: visible;
}

/*Fondo oscuro*/
.promo-popup .promo-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

/*Contenedor*/
.promo-popup .promo-popup__content {
    position: relative;
    z-index: 2;
    width: min(900px, 92vw);
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.promo-popup.active .promo-popup__content {
    transform: scale(1);
}

/*Link*/
.promo-popup .promo-popup__content .promo-popup__link {
    display: block;
    cursor: default;
}

/*Imagen*/
.promo-popup .promo-popup__content .promo-popup__link .promo-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: fill;
    background-color: darkred;
}

/*Cerrar*/
.promo-popup .promo-popup__content .promo-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0px;
    overflow: hidden;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 255);
    color: #000;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.promo-popup .promo-popup__content .promo-popup__close:hover {
    opacity: 0.6;
    transform: scale(1.05);
}

/*Evita scroll mientras está abierto*/
body.popup-open {
    overflow: hidden;
}

/*Móvil*/
@media (max-width: 768px) {

    /*PopUp promotions*/
    .promo-popup {
        padding: 15px;
    }

    .promo-popup .promo-popup__content {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px;
    }

    .promo-popup .promo-popup__content .promo-popup__link .promo-popup__image {
        max-height: 92vh;
    }

    .promo-popup .promo-popup__content .promo-popup__close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 27px;
    }
}