* {
    margin: 0;
    padding: 0;
}



.container--div-anuncio {
    position: fixed;
    inset: 0;
    z-index: 99999999 !important; /* Extremely high z-index to stay on top */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.75);
    animation: show 0.35s ease-in forwards;
}

.container--div-anuncio-show {
    display: flex !important; /* Al mostrar el modal */
    animation: show 0.5s ease-in forwards; /* Animación de entrada */
}

.container--div-anuncio-hide {
    animation: hidden 1s ease-in forwards; /* Animación de salida */
}

#popup-anuncio {
    width: min(420px, 92vw);
    max-height: 85vh;
    border-radius: 16px;
    text-align: center;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.container--img {
    width: 100%;
    overflow: hidden;
}


.close-btn {
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    border-radius: 999px;
    right: 10px;
    top: 10px;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 28px;
    text-align: center;
    line-height: 34px;
    cursor: pointer;
    color: #e11d48;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}



.container--img > img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    background: #ffffff;
}

.container--div-anuncio h2 {
    padding: 14px 18px 4px 18px;
    font-size: 18px;
    font-weight: 800;
}

.container--div-anuncio p {
    padding: 0 18px 14px 18px;
    font-size: 14px;
    color: #475569;
}

.link {
    color: rgb(255, 255, 255);
    font-weight: 700;
    background-color: #E30702;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0px 0px 20px rgba(227, 7, 2, 0.45);
    margin: 0 18px 18px 18px;
    display: inline-block;
}

.link:hover{
text-decoration: none;

}

@keyframes show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes hidden {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
