﻿.section-landingBlog {
    margin: 260px 55px 0;
}

    .section-landingBlog .title-blog {
        color: var(--texto-primario);
        font-family: Lexend;
        font-size: 40px;
        font-style: normal;
        font-weight: 900;
        line-height: 40px; /* 100% */
        text-align: center;
        margin: 0 0 56px 0;
    }

    .section-landingBlog .ctn-btn {
        display: flex;
        flex-direction: column;
        gap: 26px;
    }

.ctn-btn p {
    color: var(--title-1);
    font-family: Lexend;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 109.091% */
    margin:0;
}

.blog-buttons {
    display: flex;
    gap: 8px;
    /*width: 100%;*/
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    /*flex-wrap: wrap;*/
    /***/
    overflow-y: hidden;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Deslizamiento suave */
    -webkit-overflow-scrolling: touch; /* para iOS */
}

    .blog-buttons::-webkit-scrollbar {
        display: none;
    }
/*    .blog-buttons::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .blog-buttons::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .blog-buttons::-webkit-scrollbar-thumb:hover {
            background: #555;
        }*/

.blog-buttons {
    scrollbar-width: none;
}

    .blog-buttons.dragging {
        cursor: grabbing;
        user-select: none;
    }


.blog-btn {
    display: inline-flex;
    background: #F5F5F5;
    cursor: pointer;
    color: var(--texto-primario);
    font-feature-settings: 'liga' off, 'calt' off;
    /* Body 2 */
    font-family: var(--lexend);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    border: none;
    border: 1px solid var(--color-outline);
    border-radius: 8px;
    padding: 8px var(--spacing-12px);
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease-in-out;
    position: relative;
    /***/
    flex: 0 0 auto;
    scroll-snap-align: start;
}
    .blog-btn h2 {
        margin: 0;
        color: var(--texto-primario);
        font-feature-settings: 'liga' off, 'calt' off;
        font-family: var(--lexend);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 18px; /* 150% */
    }

    .blog-btn.activo {
        border: 1px solid var(--primario-variante-1);
        background: var(--primario-variante-3);
        /* elevation / theme_light / e2 */
        box-shadow: 0px 3px 4px -2px rgba(17, 12, 34, 0.10);
        outline: none;
    }

    .blog-btn:hover{
        transform:scale(1.05);
    }

    .blog-btn:active {
        outline: none;
    }

    .blog-btn:focus-within {
        outline: none;
    }

    .blog-btn:focus {
        outline: none;
    }

    .blog-btn:focus-visible {
        outline: none;
    }

/*.close-icon {
    margin-left: 8px;
    color: var(--texto-primario);
    font-weight: bold;
    cursor: pointer;
    display: none;
}

.blog-btn.activo .close-icon {
    display: inline-block;
}

.close-icon:hover {
    color: red;
}*/

.ctn-blog-posts {
    margin: 70px 0;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

    .blog-posts .titulo {
        color: var(--title-1);
        font-family: var(--lexend);
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 24px; /* 100% */
    }

.blog-posts {
    display: flex;
    flex-direction: column;
    gap:60px;
}

#blog-posts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap:20px;
    row-gap:86px
}

.card-blog-post {
    display: flex;
    width: 377px;
    height: auto;
    max-height: 518px;
    min-height: 518px;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 20px 12px 35px 0px rgba(0, 0, 0, 0.03), 0px -10px 20px 0px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease-in-out;
}

.card-blog-post:hover{
    transform:scale(1.05);
}

    .card-blog-post div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        align-self: stretch;
        height:100%;
        justify-content:center;
    }

    .card-blog-post div div p{
        margin:0;
    }


div .categoria-articulo {
    display: flex;
    width: auto;
    height: auto;
    min-width: 64px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--states-info-background);
    flex: 1 0 0;
    color: var(--states-info-primary);
    font-feature-settings: 'liga' off, 'calt' off;
    font-family: var(--lexend);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}

div .fecha-articulo {
    color: var(--texto-disabled);
    font-feature-settings: 'liga' off, 'calt' off;
    font-family: var(--lexend);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

div .titulo-articulo {
    flex-shrink: 0;
    align-self: stretch;
    color: var(--texto-secundario);
    /* H3 */
    font-family: var(--lexend);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 140% */
    max-height: 68px;
    min-height: 68px;
}

div .contenido-articulo {
    flex-shrink: 0;
    align-self: stretch;
    color: var(--texto-secundario);
    font-feature-settings: 'liga' off, 'calt' off;
    /* Body 1 */
    font-family: var(--lexend);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    max-height: 72px;
    min-height: 72px;
}

.ctn-suscrpcion {
    width: 100%;
    background: var(--primario-variante-5);
    padding: 50px 125px
}


.img-articulo-post {
    border-radius: 8px;
}

.pagination {
    display: flex;
    flex-wrap:nowrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: row;
    gap: 20px;
}

.pagination > button {
    font-family: var(--lexend);
    background: transparent;
    cursor:pointer;
    transition: transform 0.3s ease-in-out;
}

.pagination > button[disabled] {
    cursor:not-allowed;
}
    .pagination > button:hover {
        transform:scale(1.05);
    }

    .pagination > span {
        font-family: var(--lexend);
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

#pageInfo button {
    margin: 0px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    color: var(--texto-disabled);
    text-align: center;
    font-family: var(--lexend);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

    #pageInfo button.active-page {
        color: var(--primario-primario-dark);
        font-feature-settings: 'liga' off, 'calt' off;
        font-size: 16px;
        font-weight: 400;
    }

.pagination-dots {
    margin: 0px;
    font-size: 16px;
    color: var(--texto-disabled);
}



@media screen and (max-width:730px) {
    .section-landingBlog {
        margin: 140px 24px 0;
    }

        .section-landingBlog .title-blog {
            font-size: 18px;
            margin: 0 0 20px 0;
        }

        .section-landingBlog .ctn-btn {
            gap: 10px;
        }

    .ctn-blog-posts {
        margin: 30px 0;
    }

    .card-blog-post {
        width: 100%;
    }

    #blog-posts {
        row-gap: 40px;
    }

    .blog-btn {
        font-size: 12px;
        line-height: 18px; /* 150% */
    }

    .blog-posts {
        gap: 20px;
    }

    .ctn-btn p {
        font-size: 14px;
    }


    div .categoria-articulo {
        font-size: 14px;
    }

    div .titulo-articulo {
        font-size: 14px;
        line-height: 22px;
        max-height: 64px;
        min-height: 64px;
    }

    div .contenido-articulo {
        font-size: 14px;
        line-height: 21px;
    }

    .ctn-suscrpcion {
        padding: 50px 24px
    }

}

@media screen and (max-width: 425px){
    .img-articulo-post {
        width: 100%;
        height: auto;
    }
}