
/* Estilos para el Popup de Campaña */
.popup-cartel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-cartel.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: popupScale 0.3s ease;
}

@keyframes popupScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    cursor: pointer; /* Indica que es clickable */
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.2s ease, background-color 0.2s;
}

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

/* Ajustes responsive */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
    }
    
    .popup-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 18px;
    }
}
