/**
 * CSS para Blog Trending Posts (Temas en tendencia)
 * ID único: #lb-trending-posts
 */

/* ===========================
   SECCIÓN PRINCIPAL
   =========================== */
#lb-trending-posts.section-tendencia {
    background-color: #f5f5f5;
    padding: 30px 0;
    overflow: hidden;
}

/* ===========================
   CONTENEDOR DE LISTA
   =========================== */
#lb-trending-posts .blog-card_list__content {
    position: relative;
}

@media (min-width: 900px) {
    #lb-trending-posts .blog-card_list__content {
        max-width: 1110px;
        margin: 0 auto;
        padding-left: 50px;
    }
}

#lb-trending-posts .blog-card_list {
    overflow: hidden;
    padding: 10px 0 20px 20px;
}

@media (min-width: 900px) {
    #lb-trending-posts .blog-card_list {
        max-width: 1240px;
        padding: 0 40px;
        margin: 0 auto;
        margin-left: -20px;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
    #lb-trending-posts .blog-card_list {
        margin-left: -35px;
    }
}

/* ===========================
   SWIPER CAROUSEL
   =========================== */
#lb-trending-posts .tendencia-swiper {
    position: relative;
}

#lb-trending-posts .tendencia-swiper .swiper-wrapper {
    padding: 20px 10px;
    margin-left: -10px;
}

/* ===========================
   PAGINACIÓN (BULLETS)
   =========================== */
#lb-trending-posts .swiper-pagination {
    bottom: -5px;
    left: calc(50% - 30px);
}

#lb-trending-posts .swiper-pagination-bullet {
    margin: 4px;
    width: 10px;
    height: 10px;
}

@media (min-width: 900px) {
    #lb-trending-posts .swiper-pagination {
        bottom: -10px;
    }
}

@media (min-width: 1200px) {
    #lb-trending-posts .swiper-pagination {
        display: none;
    }
}

/* ===========================
   FLECHAS DE NAVEGACIÓN (OCULTAS)
   =========================== */
#lb-trending-posts .swiper-button-prev {
    left: -40px;
    display: none;
}

@media (min-width: 1200px) {
    #lb-trending-posts .swiper-button-prev {
        display: block;
    }
}

#lb-trending-posts .swiper-button-next {
    right: -50px;
    display: none;
}

@media (min-width: 1200px) {
    #lb-trending-posts .swiper-button-next {
        display: block;
    }
}

/* ===========================
   TARJETAS TIPO 2 (.blog-card__2)
   =========================== */
#lb-trending-posts .blog-card.blog-card__2 {
    width: 250px;
    box-shadow: 0 6px 15px rgba(55, 63, 65, 0.1);
    border-radius: 16px;
    padding: 20px;
    background-color: #fff;
}

@media (min-width: 900px) {
    #lb-trending-posts .blog-card.blog-card__2 {
        width: 320px;
    }
}

/* ===========================
   IMAGEN DE TARJETA
   =========================== */
#lb-trending-posts .blog-card__2 .blog-card_image {
    height: 148px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

#lb-trending-posts .blog-card__2 .blog-card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#lb-trending-posts .blog-card__2 .blog-card_image:hover img {
    transform: scale(1.05);
}

/* ===========================
   TÍTULO DE TARJETA
   Máx. 2 líneas (line-clamp). Tamaño propio (18px), distinto al de latest (24px).
   =========================== */
#lb-trending-posts .blog-card__2 .blog-card_title {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 10px;
    min-height: 44px;
    font-weight: 700;
    color: #313131;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#lb-trending-posts .blog-card__2 .blog-card_title a {
    color: #313131;
    text-decoration: none;
    transition: color 0.3s ease;
}

#lb-trending-posts .blog-card__2:hover .blog-card_title a {
    color: #019df4;
}

/* ===========================
   INFORMACIÓN/EXCERPT
   =========================== */
#lb-trending-posts .blog-card__2 .blog-card_info {
    min-height: 110px;
    margin-bottom: 15px;
}

@media (min-width: 1200px) {
    #lb-trending-posts .blog-card__2 .blog-card_info {
        min-height: 66px;
    }
}

#lb-trending-posts .blog-card__2 .blog-card_info p {
    font-size: 14px;
    line-height: 20px;
    color: #6b6b6b;
}

/* ===========================
   CATEGORÍAS
   =========================== */
#lb-trending-posts .blog-card__2 .blog-card_categorias {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #d3d4d3;
}

#lb-trending-posts .blog-card__2 .blog-card_categoria {
    color: #019df4;
    font-size: 12px;
    line-height: 15px;
    padding: 3px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-decoration: none;
}

#lb-trending-posts .blog-card__2 .blog-card_categoria:hover {
    opacity: 1;
}

#lb-trending-posts .blog-card__2 span.blog-card_categoria {
    cursor: default;
}

/* ===========================
   SUBTÍTULO (H2)
   =========================== */
#lb-trending-posts .blog_subtitle {
    padding-bottom: 10px;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: #019df4;
    width: 320px;
    margin: 0 auto;
    border-bottom: 1px solid #d3d4d3;
    margin-bottom: 20px;
}

@media (min-width: 900px) {
    #lb-trending-posts .blog_subtitle {
        font-size: 40px;
        line-height: 50px;
        width: 100%;
        padding-bottom: 20px;
    }
}

/* ===========================
   CONTAINER GENERAL
   =========================== */
#lb-trending-posts .container-general {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 900px) {
    #lb-trending-posts .container-general {
        padding: 0 40px;
    }
}
