/* Popup Overlay - Fondo semitransparente */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
}

/* Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenedor del popup */
.popup-container {
    position: relative;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

/* Animación de deslizamiento */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Imagen del popup */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Botón de cerrar */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

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

/* Responsive para móviles */
@media (max-width: 600px) {
    .popup-container {
        max-width: 95%;
        width: 95%;
    }
    
    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
}

