/* Estilos para los avisos flotantes */
.ba-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ba-lightbox-backdrop.visible-lightbox {
    display: block;
    opacity: 1;
}

.ba-lightbox-backdrop .ba-lightbox {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    padding: 25px;
    overflow: auto;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-lightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.premium-close {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.premium-close i {
    font-size: 18px;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
}

.premium-close:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.premium-close:hover i {
    transform: rotate(90deg);
    color: #333;
}



.ba-lightbox-backdrop.lightbox-center .ba-lightbox {
    display: block;
}

body.lightbox-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Estilos para la imagen del aviso */
.ba-image-wrapper.ba-fade {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.ba-image-wrapper.ba-fade img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.ba-image-wrapper.ba-fade:hover img {
    transform: scale(1.02);
}

/* Estilos para el nombre del aviso */
.aviso-name {
    font-size: 26px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-align: center !important;
    margin: 0 0 25px !important;
    padding: 0 10px !important;
    line-height: 1.4 !important;
    font-family: 'Archivo', sans-serif !important;
    position: relative;
    display: inline-block;
}

.aviso-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Animación para los avisos */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9) translateY(-50%); }
    100% { opacity: 1; transform: scale(1) translateY(-50%); }
}

.visible-lightbox {
    animation: fadeIn 0.5s ease-in-out;
}

.visible-lightbox .ba-lightbox {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .ba-lightbox-backdrop .ba-lightbox {
        width: 95%;
        padding: 15px;
    }

    .aviso-name {
        font-size: 20px !important;
    }

    .ba-image-wrapper.ba-fade img {
        max-height: 60vh;
    }
}

/* Arreglo para el problema de scroll */
html, body {
    height: auto !important;
    overflow: auto !important;
}

body.lightbox-open {
    overflow: hidden !important;
}
