/* NLAP Posts Slider Styles - Basado en template-page-custom.css */

.nlap-posts-slider-wrapper.mas_visitados {
    padding: 40px 0;
    background: #fff;
}

.nlap-posts-slider-wrapper.mas_visitados .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nlap-posts-slider-wrapper .cattitle h3 {
    font-family: Apis;
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    text-align: left;
    color: #001859;
    text-decoration: none;
    margin: 0 0 30px;
}

.nlap-posts-slider-wrapper .cont_masv {
    overflow: hidden;
    padding-left: 5px;
    position: relative;
}

.nlap-posts-slider-wrapper .carousel {
    position: relative;
}

.nlap-posts-slider-wrapper .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-left: 0px;
}

.nlap-posts-slider-wrapper .masvisitadosv2-class {
    display: flex;
    gap: 20px;
}

/* Post Item */
.nlap-posts-slider-wrapper .post-item-masvisitados {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.nlap-posts-slider-wrapper .linkmasv {
    /* flex-direction: row; */
    height: 120px;
    width: 100%;
    align-content: space-between;
    justify-content: space-evenly;
}

.nlap-posts-slider-wrapper .boxtitle {
    background: #fff;
    padding: 0 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nlap-posts-slider-wrapper .post-category {
    font-family: Apis;
    font-size: 11px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.1em;
    text-align: left;
    color: #8BB7FA;
    text-transform: uppercase;
    margin: 0px 0 8px;
    height: auto;
    min-height: auto;
    display: none;
}

.nlap-posts-slider-wrapper .boxtitlenumber {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.nlap-posts-slider-wrapper .number {
    display: none;
}

.nlap-posts-slider-wrapper .title-slide-mv {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    margin: 0;
    color: #001859;
    word-break: break-word;
}

.nlap-posts-slider-wrapper .post-metadata {
    display: flex;
    gap: 15px;
    margin-top: auto;
    align-items: center;
    font-size: 12px;
    color: #8BB7FA;
}

.nlap-posts-slider-wrapper .post-metadata span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
}

.nlap-posts-slider-wrapper .post-metadata svg {
    width: 11px;
    height: 16px;
    stroke: #8BB7FA;
    stroke-width: 2;
    fill: none;
}

/* Post Thumbnail */
.nlap-posts-slider-wrapper .post-thumbnail {
    width: 50%;
    flex: 0 0 50%;
    height: 120px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlap-posts-slider-wrapper .post-thumbnail.video::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nlap-posts-slider-wrapper img.playpause {
    display: none;
    max-width: 60px;
    width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.nlap-posts-slider-wrapper .video img.playpause {
    display: block;
}

.nlap-posts-slider-wrapper .post-item-masvisitados:hover img.playpause {
    opacity: 1;
}

/* Slick Track */
.nlap-posts-slider-wrapper .masvisitadosv2-class .slick-track {
    height: auto;
    zoom: 127%;
}

/* Slick Slider Controls */
.nlap-posts-slider-wrapper .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nlap-posts-slider-wrapper .cont_masv:hover .carousel-control {
    opacity: 1;
}

.nlap-posts-slider-wrapper .carousel-control.rmasv {
    right: 0px;
    background: linear-gradient(270deg, #F9FAFC 0%, transparent 20%);
}

.nlap-posts-slider-wrapper .carousel-control.left {
    left: 0px;
    background: linear-gradient(90deg, #F9FAFC 0%, transparent 40%);
    background: transparent;
}

.nlap-posts-slider-wrapper .carousel-control svg {
    width: 24px;
    height: 24px;
    stroke: #001859;
    stroke-width: 2;
    fill: none;
}

.nlap-posts-slider-wrapper .arrow-next {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nlap-posts-slider-wrapper .carousel-control.rmasv:hover {
    opacity: 0.7;
}

/* Slick List */
.nlap-posts-slider-wrapper .slick-list {
    padding: 0 !important;
}


/* ========================================
   MEDIA QUERIES - RESPONSIVE LAYOUTS
   ======================================== */

/* Tablet layout - max-width: 768px */
@media (max-width: 768px) {
    .nlap-posts-slider-wrapper.mas_visitados {
        padding: 30px 0;
    }

    .nlap-posts-slider-wrapper .cattitle h3 {
        font-size: 22px;
    }

    .nlap-posts-slider-wrapper .post-thumbnail {
        width: 45%;
        min-width: 45%;
    }

    .nlap-posts-slider-wrapper .boxtitle {
        padding: 12px;
    }

    .nlap-posts-slider-wrapper .title-slide-mv {
        font-size: 10px !important;
    }
}

/* Mobile layout - max-width: 480px */
@media (max-width: 480px) {
    a.left.carousel-control {
        display: none;
    }
    
    .slick-initialized .slick-slide {
        display: block;
        margin-right: 10px;
    }
    
    .nlap-posts-slider-wrapper.mas_visitados {
        padding: 30px 0;
    }

    .nlap-posts-slider-wrapper.mas_visitados .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0px;
    }

    .nlap-posts-slider-wrapper .cattitle h3 {
        font-size: 18px;
    }
    
    .nlap-posts-slider-wrapper .post-item-masvisitados {
        flex-direction: column;
        height: auto;
    }
    
    .nlap-posts-slider-wrapper .post-thumbnail {
        width: 40%;
        min-width: 40%;
    }
    
    .nlap-posts-slider-wrapper .boxtitle {
        padding: 10px 0;
    }
    
    .nlap-posts-slider-wrapper .linkmasv {
        height: auto;
    }
    
    .nlap-posts-slider-wrapper .title-slide-mv {
        display: block;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: visible;
        text-overflow: unset !important;
        font-size: 12px;
        font-weight: normal;
        line-height: 1.4;
        margin: 0;
        color: #001859;
        word-break: break-word;
    }
    
    .nlap-posts-slider-wrapper img.playpause {
        display: none;
        max-width: 40px;
        width: 100%;
        opacity: 0.7;
        transition: opacity 0.3s ease;
        z-index: 2;
        background: transparent;
    }
    
    .nlap-posts-slider-wrapper .post-thumbnail.video::after {
        content: '';
        position: absolute;
        width: 50px;
        height: 50px;
        background: none;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .nlap-posts-slider-wrapper .post-metadata {
        display: none !important;
        flex-direction: column;
        gap: 5px;
        font-size: 11px;
    }

    .nlap-posts-slider-wrapper .post-thumbnail {
        width: 100%;
        min-width: 40%;

        }
    .nlap-posts-slider-wrapper img.playpause {
        display: none;
        max-width: 40%;
        width: 100%;
        opacity: 0.7;
        transition: opacity 0.3s ease;
        z-index: 2;
        background: transparent;
    }
.nlap-posts-slider-wrapper .post-thumbnail {
    width: 50%;
    height: 60px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none !important;
}
    .nlap-posts-slider-wrapper .post-thumbnail {
        width: 100%;
        min-width: 40%;
        min-height: 60px;
    }
.nlap-posts-slider-wrapper .arrow-next {
    width: 35px;
    height: 48px;
    object-fit: contain;
}
    .nlap-posts-slider-wrapper .carousel-control {
        position: absolute;
        top: 20%;
        transform: translateY(-50%);
        width: 90px;
        height: 100%;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        opacity: 1;
        transition: opacity 0.3s ease;
        width: 70px;
    }

        }
@media (max-width: 700px) {
    .site-header .site-branding img {
        filter: saturate(0) brightness(100) !important;
    }
}