
/* =========================================
   PUBLICIDAD EMERGENTE
========================================= */

.publicidad-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.78);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* Contenedor de la imagen */
.publicidad-contenedor {
    position: relative;
    max-width: 650px;
    max-height: 92vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Imagen original sin deformaciones */
.publicidad-imagen {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Botón X */
.publicidad-cerrar {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: 2px solid white;
    border-radius: 50%;
    background: #082c59;
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.publicidad-cerrar:hover {
    background: #d6a51d;
    color: #082c59;
}

/* Adaptación a celulares */
@media (max-width: 600px) {
    .publicidad-contenedor {
        max-width: 95vw;
    }

    .publicidad-imagen {
        max-height: 85vh;
        max-width: 100%;
    }

    .publicidad-cerrar {
        right: 0;
        top: -18px;
    }
}
