
/* ==================================================
   FOOTER GENERAL 2026
   ================================================== */

#footer{
    background:#0f382f !important;
    color:#dce8e4 !important;
    margin-top:0 !important;
}

#footer > .container:first-child{
    display:none !important;
}

#footer > .container:last-child{
    max-width:1180px !important;
    width:100% !important;
    padding:0 30px !important;
}

.ap-footer-2026{
    background:#0f382f !important;
    color:#dce8e4 !important;
    margin:0 !important;
    padding:0 !important;
}

.ap-footer-inner{
    max-width:1180px !important;
    margin:0 auto !important;
    padding:45px 0 40px !important;

    display:grid !important;
    grid-template-columns:1.2fr 1.4fr 1fr 1.4fr !important;
    gap:40px !important;
    align-items:start !important;
}

.ap-footer-brand img{
    width:190px !important;
    max-width:100% !important;
    height:auto !important;
    display:block !important;
    margin-bottom:18px !important;
}

.ap-footer-2026 h3{
    color:#ffffff !important;
    font-size:18px !important;
    margin:0 0 15px !important;
}

.ap-footer-2026 p{
    color:#dce8e4 !important;
    font-size:14px !important;
    line-height:1.55 !important;
    margin:0 0 8px !important;
}

.ap-footer-links a,
.ap-footer-2026 a{
    color:#d7ef35 !important;
    text-decoration:none !important;
}

.ap-footer-links a:hover,
.ap-footer-2026 a:hover{
    color:#ffffff !important;
}

.ap-footer-links{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
}

.ap-footer-2026 ul{
    list-style:none !important;
    padding:0 !important;
    margin:0 !important;
}

.ap-footer-2026 li{
    margin-bottom:8px !important;
}

.ap-footer-institutional a{
    display:block !important;
    padding:10px 12px !important;
    border:1px solid rgba(255,255,255,.16) !important;
    color:#ffffff !important;
}

.ap-footer-bottom{
    border-top:1px solid rgba(255,255,255,.16) !important;
    padding:18px 0 !important;
    color:#b9cbc5 !important;
    font-size:12px !important;
}

/* Tablet */
@media(max-width:991px){
    .ap-footer-inner{
        grid-template-columns:1fr 1fr !important;
        gap:30px !important;
    }
}

/* Movil */
@media(max-width:600px){
    #footer > .container:last-child{
        padding:0 20px !important;
    }

    .ap-footer-inner{
        grid-template-columns:1fr !important;
        padding:35px 0 !important;
    }
}


/* ==================================================
   GALERIA NOTICIA LA FERIA
   ================================================== */

.ap-article-gallery{
    width:100% !important;
    max-width:900px !important;
    margin:22px 0 28px !important;

    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:16px !important;
}

.ap-article-gallery a{
    display:block !important;
    width:100% !important;
    height:260px !important;

    overflow:hidden !important;
    border-radius:10px !important;

    background:#f2f4f3 !important;
    box-shadow:0 4px 14px rgba(0,0,0,.10) !important;
}

.ap-article-gallery img{
    display:block !important;
    width:100% !important;
    height:100% !important;

    object-fit:cover !important;
    object-position:center !important;

    margin:0 !important;
    padding:0 !important;

    transition:transform .25s ease !important;
}

.ap-article-gallery a:hover img{
    transform:scale(1.035) !important;
}

/* Tablet */
@media(max-width:850px){

    .ap-article-gallery a{
        height:220px !important;
    }
}

/* Movil */
@media(max-width:600px){

    .ap-article-gallery{
        grid-template-columns:1fr !important;
        gap:12px !important;
    }

    .ap-article-gallery a{
        height:240px !important;
    }
}


/* Ajuste fino galeria noticia */
.ap-article-gallery{
    max-width:100% !important;
    gap:12px !important;
}

.ap-article-gallery a{
    height:275px !important;
}


/* ==================================================
   GALERIA MISMO ANCHO QUE IMAGEN PRINCIPAL
   ================================================== */

.ap-article-gallery{
    width:100% !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
    margin:12px 0 22px !important;
    box-sizing:border-box !important;
}

.ap-article-gallery a{
    display:block !important;
    width:100% !important;
    height:240px !important;
    overflow:hidden !important;
    border-radius:7px !important;
    box-sizing:border-box !important;
}

.ap-article-gallery img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
    margin:0 !important;
    padding:0 !important;
}

/* Movil */
@media(max-width:600px){
    .ap-article-gallery{
        grid-template-columns:1fr !important;
    }

    .ap-article-gallery a{
        height:240px !important;
    }
}


/* AJUSTE DEFINITIVO: FOTO PRINCIPAL Y GALERIA MISMO ANCHO */

.ap-article-card > .ap-article-image{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
}

.ap-article-card > .ap-article-image > img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

.ap-article-card > .ap-article-gallery{
    display:grid !important;
    width:100% !important;
    max-width:100% !important;
    margin:10px 0 22px 0 !important;
    padding:0 !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px !important;
    box-sizing:border-box !important;
}

.ap-article-card > .ap-article-gallery > a{
    width:100% !important;
    min-width:0 !important;
    height:240px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

.ap-article-card > .ap-article-gallery > a > img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    margin:0 !important;
}

