/* ==========================================================================
   ESTILOS RESPONSIVOS PARA SERPERUANO.COM (Tablets y Móviles) - v1.2
   ========================================================================== */

/* Ocultar el botón móvil en escritorio */
#btn-menu-movil {
    display: none;
}

/* ==========================================================================
   1. PANTALLAS MEDIANAS / TABLETS (Hasta 1024px)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    * {
        box-sizing: border-box;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    img, iframe, embed, object, video {
        max-width: 100%;
        height: auto;
    }

    /* Ocultar banners laterales flotantes */
    #banner-izquierda,
    #banner-derecha {
        display: none !important;
    }

    /* Contenedores principales fluidos */
    .container,
    .topnav,
    footer,
    .boxes,
    .publicidad-portada,
    .mundial-est,
    .espacios,
    .single-content,
    .comments-extended,
    #container-list-news,
    #modulo-galeria,
    #modulo-videos,
    #modulo-coberturas,
    #modulo-cine-conciertos,
    #modulo-chica,
    #modulo-eventos,
    #big-eventos,
    #small-eventos ul,
    #modulo-turismo,
    #modulo-mi-peru,
    #tablas-futbol,
    #equipos-2013,
    #equipos-2013 ul,
    #futbol-extra {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        height: auto !important;
    }

    .container {
        border-left: none;
        border-right: none;
        overflow: hidden;
    }

    /* Barra superior (Topnav) */
    .topnav {
        height: auto !important;
        padding: 8px 10px !important;
        overflow: hidden;
    }

    .top-last-news {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #EEE;
        height: auto !important;
        padding-bottom: 6px;
        margin-bottom: 8px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .top-last-news img {
        max-width: 220px;
        height: auto !important;
    }

    .buscador {
        width: 65% !important;
        border-right: none !important;
        height: auto !important;
    }

    .box-sch {
        width: 72% !important;
        padding-top: 0 !important;
        margin-left: 0 !important;
    }

    .btn-sch {
        padding: 5px 10px !important;
        background: #b5060a !important;
        color: #FFF !important;
        border-radius: 3px;
    }

    .social-users {
        width: 35% !important;
        height: auto !important;
        float: right !important;
        padding-top: 5px !important;
        display: flex;
        justify-content: flex-end;
    }

    .social-users ul {
        width: auto !important;
    }

    /* Reordenar Header en Tablet/Móvil: Logo y Menú arriba, Topnews abajo */
    header {
        display: flex;
        flex-direction: column;
    }

    .nav {
        order: 1;
        height: auto !important;
        padding: 10px 0 !important;
        border-top: none !important;
    }

    .topnews {
        order: 2;
        height: auto !important;
        margin: 10px 0 !important;
        padding-top: 5px !important;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Logo y Menú principal */
    .logo {
        width: 100% !important;
        padding-left: 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .logo a {
        margin: 0 !important;
        background-size: contain !important;
        background-position: left center !important;
        width: 240px !important;
        height: 55px !important;
    }

    .menus,
    #menu {
        width: 100% !important;
        height: auto !important;
    }

    #menu li a {
        font-size: 20px;
        padding: 4px 8px;
    }

    #submenu {
        height: auto !important;
        width: 100%;
        padding-top: 6px !important;
    }

    #submenu li h1,
    .titulo-principal-sp {
        font-size: 15px !important;
        height: auto !important;
        padding-left: 0 !important;
    }

    #submenu li a {
        font-size: 14px !important;
        height: auto !important;
        padding: 2px 6px !important;
    }

    /* Publicidad superior (.adstop) */
    .adstop {
        margin: 10px 0 !important;
        text-align: center;
    }

    .adstop img {
        float: none !important;
        margin: 5px auto !important;
        display: inline-block;
    }

    /* Topnews (4 noticias destacadas) */
    .topnews .column {
        width: calc(50% - 5px) !important;
        float: none !important;
    }

    .topnews .column a {
        width: 100% !important;
        height: 165px !important;
        margin: 0 !important;
        overflow: hidden;
    }

    .topnews .column a img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .topnews .column h3 {
        width: 100%;
        font-size: 13px !important;
    }

    /* Bloques de Portada (Boxes) en Tablet */
    .box-big,
    .box-big a {
        width: 100% !important;
        height: 300px !important;
        border-left: none !important;
        overflow: hidden;
    }

    .box-small,
    .box-tall,
    .box-tall1,
    .box-tall-box {
        width: 50% !important;
        height: 200px !important;
        margin-left: 0 !important;
        border: 4px solid #FFF !important;
        overflow: hidden;
    }

    .box-small a,
    .box-tall a,
    .box-tall1 a,
    .box-tall-box a {
        width: 100% !important;
        height: 100% !important;
    }

    .box-tiny,
    .box-mini-four {
        width: 50% !important;
        height: 180px !important;
        border: 4px solid #FFF !important;
        overflow: hidden;
    }

    .box-tiny a,
    .box-mini-four a {
        width: 100% !important;
        height: 100% !important;
    }

    /* Asegurar que las fotos llenen toda la caja sin deformarse */
    .box-big img,
    .box-small img,
    .box-tall img,
    .box-tall1 img,
    .box-tall-box img,
    .box-tiny img,
    .box-gallery-1 img,
    .box-gallery-2 img,
    .box-gallery-3 img,
    .box-gallery-4 img,
    .box-gallery-5 img,
    .box-gallery-6 img,
    .box-gallery-7 img,
    .box-gallery-8 img,
    .box-videos img,
    .box-coberturas img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .box-inside,
    .box-inside1 {
        width: 100%;
    }

    .box-inside h2,
    .box-inside1 h2 {
        width: 100%;
    }

    /* Galería, Videos y Coberturas */
    .box-gallery-left,
    .box-gallery-right {
        width: 100% !important;
        height: auto !important;
        float: none !important;
    }

    .box-gallery-1, .box-gallery-1 a {
        width: 100% !important;
        height: 240px !important;
    }

    .box-gallery-2, .box-gallery-3,
    .box-gallery-4, .box-gallery-5,
    .box-gallery-6, .box-gallery-7, .box-gallery-8 {
        width: 50% !important;
        height: 170px !important;
        padding: 3px;
    }

    .box-gallery-2 a, .box-gallery-3 a,
    .box-gallery-4 a, .box-gallery-5 a,
    .box-gallery-6 a, .box-gallery-7 a, .box-gallery-8 a {
        width: 100% !important;
        height: 100% !important;
    }

    .box-gallery-1 .box-content h2,
    .box-gallery-2 .box-content h2,
    .box-gallery-3 .box-content h2,
    .box-gallery-4 .box-content h2,
    .box-gallery-5 .box-content h2,
    .box-gallery-6 .box-content h2,
    .box-gallery-7 .box-content h2,
    .box-gallery-8 .box-content h2 {
        width: 100% !important;
    }

    .box-videos,
    .box-coberturas {
        width: 50% !important;
        height: 160px !important;
        padding: 4px;
    }

    .box-videos a,
    .box-coberturas a,
    .box-videos h2 {
        width: 100% !important;
        height: 100% !important;
    }

    /* Cine y Conciertos */
    #modulo-cine,
    #modulo-conciertos {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }

    #modulo-cine ul li {
        width: 33.33% !important;
        margin-right: 0 !important;
        padding: 0 5px;
    }

    #modulo-cine ul li a,
    #modulo-conciertos ul li a {
        width: 100% !important;
    }

    /* Chica y Eventos */
    #big-chica {
        width: 100% !important;
        height: auto !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    #small-chica {
        width: 100% !important;
        display: flex;
        gap: 10px;
    }

    #small-chica a {
        width: 50% !important;
    }

    #big-eventos a {
        width: 50% !important;
        height: 200px !important;
        padding: 4px;
    }

    #small-eventos ul li {
        width: 50% !important;
        padding: 4px;
    }

    #small-eventos ul li a {
        width: 100% !important;
    }

    /* Turismo y Mi Perú */
    #ul-list-90, #ul-list-100, #ul-list-140, #ul-list-150, #ul-list-290, #ul-list-190,
    #home-geografia, #home-areas-naturales, #home-sitios-arqueologicos,
    #home-isaac-bigio, #home-extranjeros, #home-etnia {
        width: 48% !important;
        margin-right: 2% !important;
        margin-bottom: 15px;
    }

    /* Notas Internas (Single) y Categorías (Archive) */
    .single-compact,
    .archive-list,
    .archive-article,
    .menu-single {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 10px !important;
    }

    .single-compact-sidebar {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        padding: 15px 10px !important;
        border-top: 2px solid #CCC;
        margin-top: 20px;
    }

    .sidebar-news h2,
    .sidebar-news ul li a {
        width: 100% !important;
    }

    .sidebar-news h3 {
        width: calc(100% - 135px) !important;
    }

    .single-title h1 {
        width: 100% !important;
        font-size: 32px !important;
    }

    .single-content p {
        padding-right: 0 !important;
    }

    /* Listado de noticias inferior y Fútbol */
    .modulo-list-news {
        width: 48% !important;
        margin: 0 1% 15px 1% !important;
    }

    .modulo-list-news h2 {
        width: 100% !important;
    }

    .modulo-list-news h4 {
        width: calc(100% - 95px) !important;
    }

    #tabla-posiciones,
    #tabla-resultados,
    #tabla-proxima-fecha,
    .tabla2014 {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
        overflow-x: auto;
    }

    .tabla-v2013 {
        width: 100% !important;
    }

    /* Publicidad y Footer */
    .pub1, .pub2, .pub3 {
        float: none !important;
        margin: 10px auto !important;
        text-align: center;
    }

    .img-publi, .img-andrea {
        margin: 0 auto !important;
    }

    .footer-list {
        margin: 0 0 15px 0 !important;
        padding: 0 0 0 15px !important;
        width: 50%;
        float: left;
    }
}

/* ==========================================================================
   2. CELULARES (Hasta 767px)
   ========================================================================== */
@media only screen and (max-width: 767px) {

    /* Mostrar botón menú móvil */
    #btn-menu-movil {
        display: inline-block !important;
        background: #b5060a;
        color: #FFF;
        border: none;
        padding: 8px 14px;
        font-family: 'Yanone Kaffeesatz', sans-serif;
        font-size: 20px;
        letter-spacing: 0.5px;
        border-radius: 4px;
        cursor: pointer;
    }

    .logo a {
        width: 200px !important;
        height: 48px !important;
    }

    /* Buscador y Redes en columna */
    .buscador,
    .social-users {
        width: 100% !important;
        float: none !important;
        text-align: center;
        justify-content: center;
        margin-bottom: 6px;
    }

    /* Menú vertical colapsable */
    #menu {
        display: none;
        border-bottom: none !important;
        background: #FFF;
        border-top: 2px solid #b5060a;
        margin-top: 8px !important;
    }

    #menu.menu-abierto {
        display: block !important;
    }

    #menu li {
        float: none !important;
        width: 100%;
        border-bottom: 1px solid #EEE;
    }

    #menu li a {
        display: block !important;
        width: 100%;
        height: auto !important;
        padding: 10px 8px !important;
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    /* Subcategorías visibles en bloques compactos dentro del menú móvil */
    #menu li ul {
        display: flex !important;
        flex-wrap: wrap;
        position: static !important;
        width: 100%;
        border-top: none !important;
        padding: 5px 8px 10px 8px !important;
        background: #F7F7F7 !important;
        gap: 4px;
    }

    #menu li ul li {
        width: auto !important;
        border-bottom: none !important;
        background: #FFF !important;
        border: 1px solid #E0E0E0;
        border-radius: 3px;
    }

    #menu li ul li a {
        font-size: 15px !important;
        font-weight: 400 !important;
        padding: 4px 8px !important;
    }

    #submenu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding-top: 8px !important;
        border-top: 1px solid #EEE;
    }

    #submenu li {
        float: none !important;
    }

    /* Topnews en 1 columna en móviles */
    .topnews .column {
        width: 100% !important;
    }

    .topnews .column a {
        height: 190px !important;
    }

    /* Todos los bloques de noticias de portada a 1 sola columna cómoda */
    .box-big,
    .box-small,
    .box-tall,
    .box-tall1,
    .box-tall-box,
    .box-tiny,
    .box-mini-four,
    .box-videos,
    .box-coberturas,
    #big-eventos a,
    #small-eventos ul li {
        width: 100% !important;
        float: none !important;
        border-left: none !important;
        border-right: none !important;
        margin-bottom: 10px !important;
    }

    .box-big, .box-big a {
        height: 220px !important;
    }

    .box-small, .box-small a,
    .box-tall, .box-tall a,
    .box-tall1, .box-tall1 a,
    .box-tall-box, .box-tall-box a,
    .box-tiny, .box-tiny a {
        height: 195px !important;
    }

    .box-big .box-content h2 {
        font-size: 17px !important;
    }

    /* Galería en móvil */
    .box-gallery-1, .box-gallery-1 a,
    .box-gallery-2, .box-gallery-3,
    .box-gallery-4, .box-gallery-5,
    .box-gallery-6, .box-gallery-7, .box-gallery-8 {
        width: 100% !important;
        height: 190px !important;
        float: none !important;
        margin-bottom: 8px !important;
    }

    /* Cine y Conciertos en 1 columna */
    #modulo-cine ul li {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px;
    }

    #modulo-conciertos ul li a img {
        width: 110px !important;
        margin-right: 10px !important;
    }

    #modulo-conciertos ul li a h2,
    #modulo-conciertos ul li a p {
        width: calc(100% - 125px) !important;
        font-size: 18px !important;
    }

    /* Turismo, Mi Perú y Listados inferiores en 1 columna */
    #ul-list-90, #ul-list-100, #ul-list-140, #ul-list-150, #ul-list-290, #ul-list-190,
    #home-geografia, #home-areas-naturales, #home-sitios-arqueologicos,
    #home-isaac-bigio, #home-extranjeros, #home-etnia,
    .modulo-list-news {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    /* Single (Artículo) en móvil */
    .single-compact h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .single-title {
        position: static !important;
        background: #222;
        padding: 10px;
    }

    .single-title h1 {
        font-size: 24px !important;
        padding: 0 !important;
    }

    .single-title-social {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 10px;
    }

    .archive-article a img {
        width: 110px !important;
        margin-right: 10px !important;
    }

    /* Marcador en vivo */
    .marcador-envivo {
        width: 100% !important;
        height: auto !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .marcador-envivo h3 {
        width: auto !important;
        font-size: 22px !important;
        height: auto !important;
        line-height: 1.4 !important;
    }

    .marcador-envivo span {
        width: 40px !important;
        height: 40px !important;
        font-size: 30px !important;
        line-height: 40px !important;
    }

    /* Footer en 1 columna */
    .footer-list {
        width: 100% !important;
        float: none !important;
        border-left: none !important;
        border-bottom: 1px solid #EEE;
        padding-left: 0 !important;
        padding-bottom: 10px;
    }
}

/* ==========================================================================
   3. AJUSTES FINOS DE PORTADA v1.3 (Historia del Día, Clima/Monedas, Galerías)
   ========================================================================== */
@media only screen and (max-width: 767px) {

    /* 1. HISTORIA DEL DÍA (.box-large) - Ajustado al HTML exacto */
    .box-large {
        width: 100% !important;
        height: auto !important;
        background: #141414 !important;
        border-radius: 4px;
        margin-bottom: 12px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .box-large a.box-content {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        background: #141414 !important;
        text-decoration: none !important;
        position: relative !important;
        padding: 18px 20px !important; /* Aire arriba, abajo, izquierda y derecha */
        box-sizing: border-box !important;
    }

    /* Ocultar la imagen horizontal de 1020x90 en móvil */
    .box-large a.box-content > img,
    .box-large .box-overlay {
        display: none !important;
    }

    /* Bloque de texto normal, centrado y con márgenes cómodos */
    .box-large .box-inside {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 24px 0 0 !important; /* 24px a la derecha para no chocar con el ícono de calendario */
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .box-large .box-inside p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        color: #FFF !important;
        word-wrap: break-word !important;
    }

    .box-large .box-inside p:first-child {
        font-weight: bold !important;
        font-size: 16px !important;
        color: #FFF !important; /* Título resaltado */
    }

    .box-large .box-inside p:last-child {
        margin-bottom: 0 !important;
    }

    /* 2. CLIMA, MONEDAS Y FRASES (.box-mini-four) */
    .box-mini-four,
    .box-mini-four a {
        width: 100% !important;
        height: auto !important;
        min-height: 148px !important;
    }

    .modulo-monedas,
    .modulo-clima,
    .modulo-frases-home {
        width: 100% !important;
        min-height: 148px !important;
        height: auto !important;
        background-size: cover !important;
        background-position: center !important;
        border-radius: 4px;
        overflow: hidden;
    }

    /* Ajuste interno de Frases */
    .modulo-frases-home {
        padding: 15px 15px 40px 15px !important;
    }

    .modulo-frases-home em,
    .modulo-frases-home em a {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.35 !important;
        width: 100% !important;
    }

    .modulo-frases-home span {
        font-size: 18px !important;
        right: 15px !important;
        bottom: 10px !important;
    }

    /* Ajuste interno de Clima y Monedas */
    .modulo-clima .clima-ahora {
        right: 25px !important;
    }

    .modulo-clima .clima-min {
        right: 95px !important;
    }

    .modulo-clima .clima-max {
        right: 20px !important;
    }

    .monedas-dolar {
        right: 95px !important;
    }

    .monedas-euro {
        right: 20px !important;
    }

    /* 3. GALERÍAS Y TEXTOS SOBRE IMAGEN (Evitar corte a la derecha) */
    #modulo-galeria,
    #modulo-videos,
    #modulo-coberturas {
        padding-top: 45px !important;
    }

    .box-inside,
    .box-inside1 {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    .box-inside h2,
    .box-inside1 h2,
    .box-gallery-1 .box-content h2,
    .box-gallery-2 .box-content h2,
    .box-gallery-3 .box-content h2,
    .box-gallery-4 .box-content h2,
    .box-gallery-5 .box-content h2,
    .box-gallery-6 .box-content h2,
    .box-gallery-7 .box-content h2,
    .box-gallery-8 .box-content h2,
    .box-videos h2,
    .box-coberturas h2 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        padding: 6px 8px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

/* ==========================================================================
   4. CINE, CONCIERTOS Y BANNERS FESTIVALES (v1.5)
   ========================================================================== */

/* Estilos base para escritorio (idénticos a los originales) */
.banners-festivales {
    width: 1020px;
    margin: 3px auto;
    padding: 2px;
    overflow: hidden;
    clear: both;
}

.banner-festival-item {
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-left: 25px;
    float: left;
}

/* Adaptación en Tablets y Celulares */
@media only screen and (max-width: 1024px) {

    .modulo-notas-cine {
        width: 100% !important;
        float: none !important;
        margin: 10px 0 15px 0 !important;
    }

    .modulo-notas-cine a,
    .modulo-notas-cine h4 {
        width: 100% !important;
        float: none !important;
    }

    .banners-festivales {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    .banner-festival-item {
        width: calc(50% - 5px) !important;
        margin-left: 0 !important;
        margin-bottom: 10px !important;
        float: none !important;
        text-align: center;
    }

    .banner-festival-item img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    /* En celular: 1 banner por fila a ancho completo para que se lean bien */
    .banner-festival-item {
        width: 100% !important;
    }
}

/* ==========================================================================
   5. FOOTER RESPONSIVO CENTRADO AL MILÍMETRO (v1.7)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    footer {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 20px 15px !important;
        text-align: center !important;
    }

    /* 1. Logo superior del footer centrado */
    footer > .column:first-child {
        width: 100% !important;
        float: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 15px auto !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #EEE;
    }

    footer > .column:first-child img {
        display: block !important;
        margin: 0 auto !important;
        float: none !important;
    }

    /* 2. Las 3 columnas de enlaces en 3 columnas iguales en tablet */
    footer > .column:nth-child(2),
    footer > .column:nth-child(3),
    footer > .column:nth-child(4) {
        width: 32% !important;
        float: none !important;
        text-align: center !important;
    }

    footer > .column:nth-child(2) .footer-list,
    footer > .column:nth-child(3) .footer-list,
    footer > .column:nth-child(4) .footer-list {
        width: 100% !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border-left: none !important;
        text-align: center !important;
    }

    /* 3. Bloque final de Marca Perú (Cómprale al Perú) debajo de todo y centrado */
    footer > .column:last-child {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
        padding-top: 15px !important;
        border-top: 1px solid #EEE;
    }

    footer > .column:last-child .footer-list {
        width: 100% !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border-left: none !important;
        text-align: center !important;
    }

    footer > .column:last-child img {
        display: block !important;
        margin: 0 auto !important;
    }
}

@media only screen and (max-width: 767px) {

    /* En celulares: cada lista de enlaces ocupa el 100% de ancho y centrada */
    footer > .column:nth-child(2),
    footer > .column:nth-child(3),
    footer > .column:nth-child(4) {
        width: 100% !important;
        float: none !important;
        margin: 0 auto 12px auto !important;
        padding: 0 0 12px 0 !important;
        border-bottom: 1px solid #EEE;
        text-align: center !important;
    }

    footer .footer-list {
        width: 100% !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border-left: none !important;
        text-align: center !important;
    }

    footer .footer-list li {
        width: 100% !important;
        text-align: center !important;
        margin: 4px 0 !important;
        padding: 0 !important;
    }

    /* Marca Perú abajo de todo */
    footer > .column:last-child {
        margin-top: 5px !important;
        padding-top: 10px !important;
        border-top: none !important;
    }
}

/* ==========================================================================
   6. CENTRADO EXACTO DE REDES SOCIALES EN CABECERA (v1.8)
   ========================================================================== */
@media only screen and (max-width: 767px) {

    .social-users {
        width: 100% !important;
        padding: 5px 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .social-users ul {
        width: auto !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .social-users ul li {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   7. CORRECCIÓN DE CONTENEDORES CON MÚLTIPLES BLOQUES (cinco4, cinco5, etc.) - v2.3
   ========================================================================== */
@media only screen and (max-width: 1024px) {
    .box-tall-box {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* En tablet, los dos box-small dentro de box-tall-box ocupan el 100% de su columna */
    .box-tall-box .box-small {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}

@media only screen and (max-width: 767px) {
    .box-tall-box {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
    }

    .box-tall-box .box-small {
        width: 100% !important;
        height: 195px !important;
        margin-bottom: 10px !important;
    }
}

/* ==========================================================================
   8. SECCIÓN MI PERÚ EN 2 COLUMNAS ORDENADAS (v2.4)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    /* Contenedor principal de ambos bloques Mi Perú */
    #modulo-mi-peru {
        width: 100% !important;
        padding: 15px 10px 10px 10px !important;
        margin: 10px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 12px 0 !important;
        box-sizing: border-box !important;
    }

    /* Título superior "MI PERÚ" ocupa todo el ancho arriba */
    #modulo-mi-peru > h3 {
        width: 100% !important;
        float: none !important;
        margin: 0 0 10px 0 !important;
        position: static !important;
    }

    /* Cada tarjeta en 2 columnas limpias (48.5% cada una) */
    #modulo-mi-peru .column,
    #modulo-mi-peru .column.margin {
        width: 48.5% !important;
        float: none !important;
        margin: 0 0 12px 0 !important;
        padding: 8px !important;
        background: #FAFAFA;
        border: 1px solid #E5E5E5;
        border-radius: 4px;
        box-sizing: border-box !important;
        display: flex;
        flex-direction: column;
    }

    /* Subtítulos de cada columna */
    #modulo-mi-peru .column > h2 {
        width: 100% !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        margin: 0 0 8px 0 !important;
        padding-bottom: 5px !important;
        border-bottom: 1px solid #DDD;
    }

    /* Quitar anchos y altos fijos de los contenedores internos */
    #home-geografia,
    #home-areas-naturales,
    #home-sitios-arqueologicos,
    #home-isaac-bigio,
    #home-extranjeros,
    #home-etnia,
    #ul-list-190,
    #ul-list-140 {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Imágenes dentro de Mi Perú adaptadas al ancho de su columna */
    #modulo-mi-peru .column img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 8px auto !important;
    }

    /* Ajuste específico de Geografía */
    #home-geografia h4 {
        margin: 4px 0 !important;
        font-size: 14px !important;
    }

    #home-geografia p,
    #home-geografia b {
        font-size: 12px !important;
        line-height: 1.35 !important;
        width: 100% !important;
    }

    /* Ajuste de listas (Áreas Naturales, Links de Interés, Etnia) */
    #ul-list-190 li,
    #ul-list-140 li {
        width: 100% !important;
        float: none !important;
        padding: 3px 0 !important;
        font-size: 12.5px !important;
        line-height: 1.3 !important;
    }

    /* Sitios Arqueológicos: enlaces bien alineados sobre cada foto */
    #home-sitios-arqueologicos p {
        width: 100% !important;
        margin: 0 !important;
    }

    #home-sitios-arqueologicos a {
        display: block !important;
        width: 100% !important;
        font-size: 12px !important;
        padding: 4px 0 !important;
        text-align: center !important;
    }

    /* Peruano en el Extranjero: grilla interna de 2 banderas por fila */
    #home-extranjeros {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-content: flex-start !important;
        gap: 6px 0 !important;
    }

    #home-extranjeros > h2 {
        width: 100% !important;
    }

    #home-extranjeros a,
    #home-extranjeros a#extra1,
    #home-extranjeros a#extra2 {
        width: 48% !important;
        float: none !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    #home-extranjeros a img {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    /* Tarjetas con foto y título superpuesto (Isaac Bigio e Historia del Día) */
    #modulo-mi-peru .box-content {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
    }

    #modulo-mi-peru .box-inside {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
    }

    #modulo-mi-peru .box-inside h2 {
        width: 100% !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        padding: 6px !important;
        box-sizing: border-box !important;
    }

    /* Banner intermedio "El Barril y El Cilindro" responsivo */
    center img {
        max-width: 100% !important;
        height: auto !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   9. SECCIÓN TURISMO EN 2 COLUMNAS + DEPARTAMENTOS A ANCHO COMPLETO (v2.5)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    #modulo-turismo {
        width: 100% !important;
        padding: 15px 10px 10px 10px !important;
        margin: 10px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 12px 0 !important;
        box-sizing: border-box !important;
    }

    /* Título superior "TURISMO" */
    #modulo-turismo > h3 {
        width: 100% !important;
        float: none !important;
        margin: 0 0 10px 0 !important;
        position: static !important;
    }

    /* Las 4 primeras tarjetas en cuadrícula de 2x2 */
    #modulo-turismo .column.margin {
        width: 48.5% !important;
        float: none !important;
        margin: 0 0 12px 0 !important;
        padding: 8px !important;
        background: #FAFAFA;
        border: 1px solid #E5E5E5;
        border-radius: 4px;
        box-sizing: border-box !important;
    }

    /* Subtítulos de tarjetas */
    #modulo-turismo .column > h2 {
        width: 100% !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        margin: 0 0 8px 0 !important;
        padding-bottom: 5px !important;
        border-bottom: 1px solid #DDD;
    }

    /* Imágenes adaptadas al ancho de su tarjeta */
    #modulo-turismo .column img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* La tarjeta final "Departamentos" ocupa todo el ancho abajo */
    #modulo-turismo > .column:last-child {
        width: 100% !important;
        float: none !important;
        margin: 0 0 10px 0 !important;
        padding: 10px !important;
        background: #FAFAFA;
        border: 1px solid #E5E5E5;
        border-radius: 4px;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    #modulo-turismo > .column:last-child > h2 {
        width: 100% !important;
    }

    /* Las 3 listas de departamentos repartidas en 3 columnas internas */
    #modulo-turismo #ul-list-90,
    #modulo-turismo #ul-list-100 {
        width: 32% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-right: none !important;
    }

    #modulo-turismo #ul-list-90 li,
    #modulo-turismo #ul-list-100 li {
        width: 100% !important;
        float: none !important;
        padding: 3px 0 !important;
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }
}

/* ==========================================================================
   10. ÍTEMS PRINCIPALES DE #menu CON FONDO ROJO Y LETRAS BLANCAS (v2.8)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    /* Todos los padres principales de #menu (Noticias, Mi Perú, Turismo, etc.) */
    nav.nav #menu > li > a,
    #contenedor-menus #menu > li > a,
    #menu > li > a {
        background: #C8102E !important;
        background-color: #C8102E !important;
        color: #FFFFFF !important;
        font-weight: bold !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
        display: block !important;
        padding: 12px 15px !important;
    }

    /* Mantener rojo oscuro al tocar o pasar el dedo */
    nav.nav #menu > li > a:hover,
    nav.nav #menu > li > a:active,
    nav.nav #menu > li:hover > a,
    #menu > li > a:hover,
    #menu > li:hover > a {
        background: #A00D24 !important;
        background-color: #A00D24 !important;
        color: #FFFFFF !important;
    }

    /* Submenús desplegados debajo de cada padre (fondo claro y letra oscura) */
    nav.nav #menu > li > ul > li > a,
    #menu > li > ul > li > a {
        background: #F4F4F4 !important;
        background-color: #F4F4F4 !important;
        color: #222222 !important;
        font-weight: normal !important;
        padding: 10px 15px 10px 28px !important;
        border-bottom: 1px solid #E0E0E0 !important;
    }

    nav.nav #menu > li > ul > li > a:hover,
    nav.nav #menu > li > ul > li > a:active,
    #menu > li > ul > li > a:hover {
        background: #E2E2E2 !important;
        background-color: #E2E2E2 !important;
        color: #C8102E !important;
    }
}

/* ==========================================================================
   11. CABECERA SUPERIOR (.topnav) EN 2 COLUMNAS MÓVIL / TABLET (v2.9)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    .topnav {
        width: 100% !important;
        height: auto !important;
        padding: 8px 10px !important;
        display: grid !important;
        grid-template-columns: 52% 46% !important;
        grid-template-rows: auto auto !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px 2% !important;
        box-sizing: border-box !important;
    }

    /* COLUMNA 1 (IZQUIERDA): Fecha + Banner San Martín de Porres */
    .topnav .top-last-news,
    .topnav .top-last-news.column {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 100% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .topnav .top-last-news a {
        display: block !important;
        width: 100% !important;
    }

    .topnav .top-last-news img {
        width: 100% !important;
        max-width: 210px !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
    }

    /* COLUMNA 2 - FILA 1 (DERECHA ARRIBA): Formulario de Búsqueda compacto */
    .topnav .buscador,
    .topnav .buscador.column {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .topnav #googlesearch {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .topnav #googlesearch input.box-sch {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        height: 26px !important;
        font-size: 12px !important;
        padding: 2px 6px !important;
        box-sizing: border-box !important;
    }

    .topnav #googlesearch input.btn-sch {
        width: auto !important;
        flex-shrink: 0 !important;
        height: 26px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        cursor: pointer !important;
    }

    /* COLUMNA 2 - FILA 2 (DERECHA ABAJO): Los 5 botones de redes sociales */
    .topnav .social-users {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .topnav .social-users ul {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .topnav .social-users ul li {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   12. LOGO A ANCHO COMPLETO + BLOQUE 2 COLUMNAS AL RAS (v3.3)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    nav.nav {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px 0 !important; /* Sin relleno a izquierda ni derecha para alinear al ras */
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        gap: 8px 0 !important;
        box-sizing: border-box !important;
    }

    nav.nav .logo,
    nav.nav #contenedor-menus {
        display: contents !important;
    }

    /* FILA 1 (ARRIBA 100%): Logo de Serperuano más grande y ancho */
    nav.nav .logo > a {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 85px !important; /* Al darle más altura, crece a lo ancho manteniendo su proporción */
        float: none !important;
        display: block !important;
        margin: 0 auto 4px auto !important;
        background-position: center center !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
    }

    /* FILA 2 - COLUMNA IZQUIERDA: Botón MENÚ más grande y perfectamente centrado */
    nav.nav #btn-menu-movil {
        order: 2 !important;
        width: 35.5% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 6px 0 !important; /* Cero relleno lateral para que no lo empuje */
        text-indent: 0 !important;
        background: #C8102E !important;
        color: #FFFFFF !important;
        border: none !important;
        border-radius: 4px !important;
        font-size: 23px !important; /* Más grande tanto las 3 rayas como MENÚ */
        line-height: 1 !important;
        letter-spacing: 0 !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    /* FILA 2 - COLUMNA DERECHA: Temas bien compactos arriba y abajo */
    nav.nav #submenu {
        order: 3 !important;
        width: 63% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 4px 7px !important;
        background: #F7F7F7 !important;
        border: 1px solid #E5E5E5 !important;
        border-radius: 4px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        align-content: center !important;
        gap: 0px 5px !important;
        box-sizing: border-box !important;
    }

    nav.nav #submenu li {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.05 !important;
    }

    nav.nav #submenu li:first-child {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    nav.nav #submenu h1.titulo-principal-sp {
        font-size: 11px !important;
        line-height: 1.05 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #111111 !important;
    }

    nav.nav #submenu li a {
        font-size: 10.5px !important;
        line-height: 1.05 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-block !important;
    }

    /* FILA 3 (DESPLEGABLE AL TOCAR MENÚ): Lista #menu ocupa el 100% debajo */
    nav.nav #menu {
        order: 4 !important;
        width: 100% !important;
        margin-top: 6px !important;
    }
}

/* ==========================================================================
   13. IMAGEN img-sp.jpg A ANCHO COMPLETO (v3.6)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    img[src*="img-sp.jpg"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   14. PERUANO EN EL EXTRANJERO: 2 COLUMNAS EXACTAMENTE IGUALES (v4.0)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    #home-extranjeros {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Fuerza 50% exacto por columna */
        align-content: start !important;
        gap: 3px 4px !important;
        height: auto !important;
    }

    #home-extranjeros > h2 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        height: auto !important;
        line-height: 1.25 !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
    }

    #home-extranjeros > h2 a {
        width: 100% !important;
        height: auto !important;
        line-height: 1.25 !important;
        display: block !important;
    }

    /* Sobreescribimos directamente #extra1 y #extra2 con doble ID para ganar especificidad */
    #home-extranjeros > a,
    #home-extranjeros > a#extra1,
    #home-extranjeros > a#extra2 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        display: block !important;
    }

    #home-extranjeros > a img,
    #home-extranjeros > a#extra1 img,
    #home-extranjeros > a#extra2 img {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        object-fit: cover !important;
        object-position: center center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
}

/* ==========================================================================
   15. GALERÍAS (#modulo-galeria #small-eventos): FOTOS AL 100% DE LA TARJETA (v4.1)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    #modulo-galeria #small-eventos,
    #modulo-galeria #small-eventos ul {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #modulo-galeria #small-eventos ul li,
    #modulo-galeria #small-eventos ul li a.box-content {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Sobreescribimos el width='233' fijo de 'galerias-eve-2' */
    #modulo-galeria #small-eventos ul li a.box-content img,
    #modulo-galeria #small-eventos img.wp-post-image {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 165px !important; /* Proporción panorámica uniforme para las 4 tarjetas */
        object-fit: cover !important; /* Rellena todo el ancho sin deformar la foto */
        object-position: center center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Aseguramos que el overlay y la caja de texto coincidan exactamente al ras */
    #modulo-galeria #small-eventos ul li a.box-content .box-overlay,
    #modulo-galeria #small-eventos ul li a.box-content .box-inside {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   15B. GALERÍAS ARRIBA (#modulo-galeria #big-eventos): FOTO AL RAS DEL TEXTO (v4.2)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    #modulo-galeria #big-eventos {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    #modulo-galeria #big-eventos a.box-content {
        position: relative !important;
        width: 100% !important;
        height: 215px !important; /* Misma altura exacta para la tarjeta y la foto */
        display: block !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #modulo-galeria #big-eventos a.box-content img,
    #modulo-galeria #big-eventos img.wp-post-image {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important; /* Llena el 100% de los 215px sin dejar huecos */
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #modulo-galeria #big-eventos a.box-content .box-overlay {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }

    #modulo-galeria #big-eventos a.box-content .box-inside {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   16. EVENTOS (#modulo-eventos): FOTOS AL RAS ARRIBA (2) Y ABAJO (4) (v4.3)
   ========================================================================== */
@media only screen and (max-width: 1024px) {

    /* --- LAS 2 DE ARRIBA EN EVENTOS (alto completo al ras del texto) --- */
    #modulo-eventos #big-eventos,
    #modulo-eventos > div:nth-of-type(2) {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    #modulo-eventos #big-eventos a.box-content,
    #modulo-eventos a.box-content {
        position: relative !important;
        width: 100% !important;
        height: 215px !important;
        display: block !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #modulo-eventos #big-eventos a.box-content img,
    #modulo-eventos a.box-content img.wp-post-image {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #modulo-eventos a.box-content .box-overlay {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }

    #modulo-eventos a.box-content .box-inside {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- LAS 4 DE ABAJO EN EVENTOS (ancho al 100% de cada tarjeta) --- */
    #modulo-eventos #small-eventos,
    #modulo-eventos #small-eventos ul,
    #modulo-eventos ul {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #modulo-eventos #small-eventos ul li,
    #modulo-eventos #small-eventos ul li a.box-content,
    #modulo-eventos ul li,
    #modulo-eventos ul li a.box-content {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    #modulo-eventos #small-eventos ul li a.box-content img,
    #modulo-eventos ul li a.box-content img,
    #modulo-eventos ul li img.wp-post-image {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 165px !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #modulo-eventos ul li a.box-content .box-overlay,
    #modulo-eventos ul li a.box-content .box-inside {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }
}