/* Popup Promocional */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    max-width: 60vw;
    max-height: 90vh;
    background: white;
    border-radius: 2vh;
    box-shadow: 0 2vh 4vh rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2vh;
}

.popup-close {
    position: absolute;
    top: 2vh;
    right: 2vh;
    width: 5vh;
    height: 5vh;
    background: #ff475700;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 3vh;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #00000038;
    transform: scale(1.1);
}

.popup-close:active {
    transform: scale(0.95);
}

/* Animación de entrada */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-5vh);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-overlay.active .popup-container {
    animation: popupFadeIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95vw;
        margin: 2vh;
        border-radius: 1.5vh;
    }
    
    .popup-close {
        width: 4vh;
        height: 4vh;
        font-size: 2vh;
        border-width: 0.3vh;
    }
    
    .popup-image {
        border-radius: 1.5vh;
    }
}

@media (max-width: 480px) {
    .popup-container {
        max-width: 90vw;
        margin: 1vh;
        border-radius: 1vh;
    }
    
    .popup-close {
        top: 1vh;
        right: 1vh;
        width: 3.5vh;
        height: 3.5vh;
        font-size: 1.5vh;
        border-width: 0.25vh;
    }
    
    .popup-image {
        border-radius: 1vh;
    }
}

/* Prevenir scroll del body cuando el popup está activo */
body.popup-open {
    overflow: hidden;
} 