/* Popup de Anuncios */
.popup-anuncio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.popup-anuncio-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

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

.popup-anuncio-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-anuncio-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.popup-anuncio-imagen {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.popup-anuncio-imagen-link {
    display: block;
    cursor: pointer;
}

/* Navegación del carrusel */
.popup-anuncio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-anuncio-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.popup-anuncio-prev {
    left: 15px;
}

.popup-anuncio-next {
    right: 15px;
}

/* Indicadores de imagen */
.popup-anuncio-indicadores {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.popup-anuncio-indicador {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-anuncio-indicador.active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-anuncio-container {
        max-width: 95vw;
        border-radius: 8px;
    }

    .popup-anuncio-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }

    .popup-anuncio-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .popup-anuncio-prev {
        left: 10px;
    }

    .popup-anuncio-next {
        right: 10px;
    }

    .popup-anuncio-indicadores {
        bottom: 10px;
    }

    .popup-anuncio-indicador {
        width: 10px;
        height: 10px;
    }
}
