/* Fondo oscuro con desenfoque suave */
#mbp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#mbp-overlay.mbp-hidden {
    display: none;
    opacity: 0;
}

/* Contenedor del banner */
#mbp-modal {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: visible;
    transform: scale(1);
    animation: mbp-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#mbp-modal img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    height: auto;
}

/* Botón de cierre "X" */
#mbp-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ffffff;
    color: #111111;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#mbp-close:hover {
    background: #ff4d4d;
    color: #ffffff;
    transform: scale(1.1);
}

/* Animación de apertura */
@keyframes mbp-pop-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}