/* Banner Publicitario papa */
.banner-publicitario {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.banner-publicitario.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideIn 0.5s ease-in-out;
}

.banner-publicitario.hide {
    animation: slideOut 0.5s ease-in-out;
}

.banner-imagen {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.banner-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-texto {
    background: linear-gradient(135deg, #c41e3a 0%, #d63d4a 100%);
    color: white;
    padding: 20px 40px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10000;
}

.banner-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Modal overlay */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.banner-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-publicitario {
        width: 90%;
        max-width: 100%;
    }

    .banner-texto {
        font-size: 18px;
        padding: 15px 25px;
    }

    .banner-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
