/* --- PUBLICIDAD: TEXTOS Y ESTILOS --- */
#ads-home:before,
#b-x6:before,
#b-n-t:before,
#b-n-b:before {
    content: "Publicidad";
    font-family: 'Public Sans', sans-serif;
    font-size: 0.6em !important;
    font-weight: normal;
    text-transform: uppercase;
}

.alcoi23 #ads-home:before,
.alcoi23 #b-x6:before,
.alcoi23 #b-n-t:before,
.alcoi23 #b-n-b:before {
    content: "Publicitat";
}

.widget.adrotate_widgets h2,
.widget .adrotate_widgets h4,
body.linares28 #secondary #block-4 h4,
body.jaen28 #secondary #block-12 h4,
body.andujar28 #secondary #block-10 h4,
body.ubeda28 #secondary #block-10 h4,
body.lacarolina28 #secondary #block-10 h4,
body.martos28 #secondary #block-10 h4 {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.6em !important;
    font-weight: normal;
    text-transform: uppercase;
}

/* --- ESTRUCTURA DE BANNERS --- */
#secondary .adrotate_widgets p {
    margin: 0;
}

#secondary .adrotate_widgets {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
}

#ads-home {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

#ads-home > div {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 100%;
}

#top-banners {
    display: flex;
    margin: 5px 0;
    gap: 5px;
}

#top-banners *,
#toppest-banners * {
    width: 100%;
    max-width: 100vw;
}

#top-banners img {
    aspect-ratio: 747 / 121;
    -o-object-fit: cover;
    object-fit: cover;
}

#b-n-t > div,
#b-n-b > div,
#b-n-t img,
#b-n-b img {
    width: 100%;
    max-width: 100%;
}

#b-pp {
    margin-bottom: 22px;
}

#b-pp > div,
#b-pp .g {
    display: flex;
    gap: 10px;
}

#b-pp > div {
    flex-direction: column;
}

#b-pp .g {
    justify-content: center;
}

#b-x6 > div {
    margin-bottom: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
}

/* --- BANNERS DESLIZANTES (TOP/BOTTOM) --- */
#banner-slide-top,
#banner-slide-bottom {
    position: fixed;
    left: calc(50% - 400px);
    transition: all 0.5s ease;
    z-index: 99999;
}

#banner-slide-top {
    top: -550px;
    width: 800px;
    height: 300px;
}

#banner-slide-bottom {
    bottom: -550px;
}

#banner-slide-top img,
#banner-slide-top iframe,
#banner-slide-bottom img,
#banner-slide-bottom iframe {
    display: block;
    max-height: calc(50vh - 36px);
}

#banner-slide-top img,
#banner-slide-top iframe {
    border-bottom: 1px solid #1c2f4a;
}

#banner-slide-bottom img,
#banner-slide-bottom iframe {
    border-top: 1px solid #1c2f4a;
}

#banner-slide-top > iframe,
#banner-slide-bottom > iframe {
    width: 750px !important;
}

#banner-slide-top > iframe {
    height: 245px !important;
}

#banner-slide-bottom > iframe {
    height: 315px !important;
}

#banner-slide-top.active {
    top: 0;
}

#banner-slide-bottom.active {
    bottom: 0;
}

#banner-slide-top-cerrar span,
#banner-slide-bottom-cerrar span {
    padding: 0 20px;
    background: #1c2f4a;
    line-height: 32px;
    display: inline-block;
    color: #fff;
    cursor: pointer;
}

/* --- ROBAPAGINAS FULLSCREEN --- */
#banner-robapaginas {
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: rgb(255 255 255 / .8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#banner-robapaginas.active {
    left: 0;
}

#banner-robapaginas-cerrar {
    background: var(--ast-global-color-8);
    text-align: right;
    color: #fff;
    padding: 10px;
}

#banner-robapaginas-cerrar > span {
    cursor: pointer;
}

#banner-robapaginas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 34px);
}

/* --- BANNERS LATERALES (FONDO) --- */
@media (min-width: 922px) {

    .has-banner-fondo .ast-container,
    .has-banner-fondo .site-below-footer-wrap > div,
    .has-banner-fondo .site-primary-footer-wrap > div {
        max-width: 1480px;
        margin: 0 auto;
        width: 100%;
        padding: 0 140px;
    }
}

.banner-fondo {
    width: 120px;
    height: 600px;
    position: fixed;
    z-index: 2000;
    bottom: 10px;
    left: calc(50% + 610px);
    display: flex;
    align-items: flex-end;
}

#banner-fondo-izquierda {
    left: calc(50% - 730px);
}

@media (max-width: 1500px) {
    .banner-fondo {
        left: auto;
        right: 0;
    }

    #banner-fondo-izquierda {
        left: 0;
        right: auto;
    }
}

/* --- RESPONSIVE GENERAL --- */
@media only screen and (max-width: 1024px) {
    #ads-home > div {
        flex-wrap: wrap;
    }

    #top-header {
        display: block;
    }

    #top-banners {
        flex-direction: column;
    }

    #top-banners > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .banner-fondo {
        display: none;
    }
}

@media (max-width: 767px) {
    #b-pp .g {
        flex-direction: column;
    }

    #b-x6 > div {
        grid-template-columns: 1fr;
    }

    #banner-slide-top,
    #banner-slide-bottom {
        left: -2px;
    }

    #banner-slide-top,
    #banner-slide-top iframe,
    #banner-slide-top img,
    #banner-slide-bottom,
    #banner-slide-bottom iframe,
    #banner-slide-bottom img {
        max-width: 100% !important;
    }
}

/* --- LIMPIEZA FINAL --- */
.widget_polls-widget > .wp-polls {
    padding-top: 20px;
}

#custom_html-2 > div {
    overflow: hidden;
    margin: 10px 0 20px;
}

#custom_html-2 > div > div {
    margin-top: -70px;
    margin-bottom: -41px;
}

.jp-carousel-info,
.grecaptcha-badge {
    display: none !important;
    visibility: hidden !important;
}