/* ======= Banner Promocional Flutuante ======= */

/* Overlay claro de fundo */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9997;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-overlay.active {
    display: block;
    opacity: 1;
}

/* Container do banner */
.promo-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    max-width: 1000px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.promo-banner.active {
    opacity: 1;
    visibility: visible;
}

/* Wrapper interno */
.promo-banner-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

/* Imagem do banner */
.promo-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Botão de fechar */
.promo-banner-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 45px;
    height: 45px;
    background: #e4a853;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.promo-banner-close:hover {
    background: #222;
    transform: rotate(90deg) scale(1.1);
}

.promo-banner-close::before,
.promo-banner-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 50%;
}

.promo-banner-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.promo-banner-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .promo-banner {
        width: 95%;
        max-width: 500px;
    }
    
    .promo-banner-close {
        top: -15px;
        right: -15px;
        width: 38px;
        height: 38px;
    }
    
    .promo-banner-close::before,
    .promo-banner-close::after {
        width: 16px;
    }
}

@media screen and (max-width: 480px) {
    .promo-banner {
        width: 90%;
    }
}

.promo-banner.closing {
    opacity: 0;
    visibility: hidden;
}
