.ad-gallery-wrapper {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background-color: #efefef;
    border-radius: 12px;
    box-sizing: border-box;
}

.ad-gallery-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de desplazamiento */
.ad-gallery-row::-webkit-scrollbar {
    display: none;
}

.ad-gallery-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ad-gallery-item {
    flex: 0 0 calc(50% - 7.5px);
    /* En móviles muestra exactamente 2 items */
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ad-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ad-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ad-gallery-item:hover::after {
    opacity: 1;
}

.ad-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ad-gallery-item:hover .ad-gallery-img {
    transform: scale(1.05);
}

/* Adaptación en tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .ad-gallery-item {
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* Adaptación en escritorio: 4 anuncios fijos */
@media (min-width: 992px) {
    .ad-gallery-row {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .ad-gallery-item {
        flex: 0 0 calc(25% - 11.25px);
    }
}

/* Variante Oscura (seccion = 2) */
.ad-gallery-wrapper.ad-gallery-dark {
    background-color: #1a1a1a;
}

.ad-gallery-wrapper.ad-gallery-dark .ad-gallery-item {
    background-color: #2b2b2b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ad-gallery-wrapper.ad-gallery-dark .ad-gallery-item::after {
    background: rgba(255, 255, 255, 0.05);
}

.ad-gallery-wrapper.ad-gallery-dark .ad-gallery-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Uniformidad de tamaño para la grilla de Últimas Subidas (3 columnas por fila) */
.cols-full .grid-item {
    width: 33.333% !important;
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .cols-full .grid-item {
        width: 50% !important;
        /* 2 columnas en tablet */
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .cols-full .grid-item {
        width: 100% !important;
        /* 1 columna en móvil */
        padding: 5px;
    }
}

.cols-full .news-item-big {
    display: flex;
    flex-direction: column;
    height: 440px;
    /* Altura fija para todo el bloque */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    padding: 0;
    box-shadow: none !important;
    transition: none !important;
}

.cols-full .news-item-big:hover {
    transform: none !important;
    box-shadow: none !important;
}

.cols-full .news-item-big .post-thumb {
    margin: 0;
    overflow: hidden;
    border-radius: 4px !important;
    /* Esquinas redondeadas sutiles en la imagen */
}

.cols-full .news-item-big .post-thumb div {
    height: 220px !important;
    /* Altura de imagen fija */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cols-full .news-item-big:hover .post-thumb div {
    transform: scale(1.03);
    /* Zoom muy sutil para seriedad */
}

.cols-full .news-item-big .post-title {
    font-size: 18px;
    /* Tamaño del título más editorial */
    line-height: 1.35;
    font-weight: 700;
    height: 48px;
    /* Altura fija para el título (2 líneas) */
    overflow: hidden;
    margin: 12px 0 8px 0 !important;
    /* Alineado sin margen lateral */
}

.cols-full .news-item-big .post-meta {
    margin: 0 0 10px 0 !important;
    /* Alineado sin margen lateral */
    font-size: 12px;
    color: #777777;
}

.cols-full .news-item-big .post-des {
    display: block !important;
    visibility: visible !important;
    font-size: 13.5px;
    line-height: 1.5;
    color: #555555 !important;
    height: 60px;
    /* Altura fija para el encabezado/descripción (3 líneas) */
    overflow: hidden;
    margin: 0 0 15px 0 !important;
    /* Alineado sin margen lateral */
}

.cols-full .news-item-big .post-des a {
    color: #555555 !important;
    text-decoration: none;
}

.cols-full .news-item-big .post-des a:hover {
    text-decoration: underline;
}

/* Ajuste de espacio para la columna derecha de Deportes en móvil/tablet */
@media (max-width: 991px) {
    .deportes-right-col {
        margin-top: 30px;
    }
}

/* Controles de navegación y posicionamiento para el carrusel de videos */
.owl-videos-wrap .owl-next,
.owl-videos-wrap .owl-prev {
    height: 35px;
    width: 35px;
    position: absolute;
    top: -60px;
    text-align: center;
    line-height: 35px;
    font-size: 15px;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.owl-videos-wrap .owl-next:hover,
.owl-videos-wrap .owl-prev:hover {
    background-color: #32CA96;
    color: #fff;
}

.owl-videos-wrap .owl-next {
    right: 0;
}

.owl-videos-wrap .owl-prev {
    right: 37px;
}

/* Agranda fecha y visualizaciones */
.post-meta,
.post-meta span,
.post-meta a,
.post-meta i {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #666666 !important;
}

/* Estilos para etiquetas de categorías */
.post-category {
    margin: 10px 0 5px 0;
}

.post-category a {
    font-size: 11px !important;
    text-transform: uppercase;
    font-weight: 700;
    color: #32CA96 !important;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.post-category a:hover {
    color: #222 !important;
}

.list-news-category {
    margin-top: 5px;
    display: block;
}

.list-news-category a {
    font-size: 10.5px !important;
    text-transform: uppercase;
    font-weight: 700;
    color: #32CA96 !important;
    text-decoration: none;
}

.list-news-category a:hover {
    color: #222 !important;
}

/* Regulariza espacio de post-des en news-item-big */
.news-item-big .post-des {
    height: auto !important;
    max-height: 60px;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Mejora de los listados de noticias pequeñas (.list-news) */
.list-news li {
    position: relative !important;
    padding: 10px 0 !important;
    min-height: 65px !important;
    border-top: 1px solid #eaeaea !important;
    display: block !important;
    clear: both !important;
}

.list-news li:first-child {
    border-top: none !important;
}

.list-news li .post-thumb {
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 80px !important;
    height: 55px !important;
    margin: 0 !important;
    float: none !important;
}

.list-news li .post-thumb a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.list-news li .post-thumb div {
    width: 100% !important;
    height: 100% !important;
    border-radius: 4px !important;
}

.list-news li .list-news-category,
.list-news li h3,
.list-news li .post-meta,
.list-news li p {
    margin-left: 95px !important;
    /* 80px thumb + 15px space */
}

.list-news li .list-news-category {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
}

.list-news li h3 {
    min-height: auto !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.list-news li h3 a {
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.list-news li h3 a:hover {
    color: #32CA96 !important;
}

.list-news li p {
    margin: 4px 0 0 0 !important;
    font-size: 12px !important;
    color: #666666 !important;
    line-height: 1.4 !important;
}

.list-news li p a {
    color: #666666 !important;
    text-decoration: none !important;
}

.list-news li .post-meta,
.list-news li .post-meta span,
.list-news li .post-meta a,
.list-news li .post-meta i {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #888888 !important;
}

/* Panel de Filtros de Búsqueda */
.search-filter-card {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-filter-card form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.search-filter-card .filter-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-filter-card .filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-filter-card .filter-group input,
.search-filter-card .filter-group select {
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3748;
    background-color: #fff;
    transition: all 0.2s ease;
    width: 100%;
}

.search-filter-card .filter-group input:focus,
.search-filter-card .filter-group select:focus {
    outline: none;
    border-color: #32CA96;
    box-shadow: 0 0 0 3px rgba(50, 202, 150, 0.15);
}

.search-filter-card .filter-btn-group {
    flex: 0 0 auto;
}

.search-filter-card .filter-btn {
    height: 40px;
    padding: 0 20px;
    background-color: #32CA96;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.search-filter-card .filter-btn:hover {
    background-color: #28a779;
    box-shadow: 0 4px 6px rgba(50, 202, 150, 0.2);
}

.search-filter-card .filter-clear-btn {
    height: 40px;
    width: 40px;
    background-color: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-filter-card .filter-clear-btn:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

/* Mejora Responsive para el Logo en Cabecera */
@media (max-width: 991px) {
    .header .logo-wrap {
        width: 55% !important;
        max-width: 220px !important;
        height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #32CA96 !important;
        left: 0px !important;
        padding: 10px !important;
        box-shadow: 3px 1px 5px 0 rgba(0, 0, 0, .3) !important;
    }

    .header .logo-wrap .logo {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .header .logo-wrap img {
        max-width: 95% !important;
        width: auto !important;
        max-height: 60px !important;
        display: inline-block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .header .logo-wrap {
        width: 70% !important;
        max-width: 190px !important;
    }
}

/* Fecha y hora en el topbar */
.topbar {
    background-color: #fff;
    height: 35px !important;
    margin-top: 15px !important;
    border-bottom: 1px solid #edf2f7;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.topbar .social {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.topbar-date {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    text-transform: capitalize;
    margin-left: 250px !important; /* Desplaza la fecha a la derecha del logo colgante en desktop */
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 100% !important;
}

.topbar-date i {
    font-size: 16px !important;
    color: #32CA96 !important;
}

.topbar .social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 35px !important;
    line-height: 35px !important;
    margin: 0 0 0 18px !important;
    font-size: 19px !important;
    transition: color 0.2s ease !important;
}

.topbar .social a:hover {
    color: #28a779 !important;
}

@media (max-width: 991px) {
    .topbar {
        height: auto !important;
        padding: 10px 15px !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .topbar-date {
        margin-left: 0 !important;
        font-size: 15px !important;
        justify-content: center !important;
        text-align: center !important;
        height: auto !important;
    }

    .topbar .social {
        height: auto !important;
        justify-content: center !important;
        flex-direction: row !important; /* Mantiene los iconos sociales en fila horizontal */
        width: auto !important;
        gap: 12px !important;
    }

    .topbar .social a {
        float: none !important;
        margin: 0 !important;
    }
}