/*componente card*/
.cards-que-consiste {
    padding: 90px 0;

    @media (max-width:900px) {
        padding: 50px $padd-mob;
    }
}
.cards-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;

    @media(max-width:900px) {
        justify-content: center;
    }
}
/*crear sass componente card*/
.card {
    width: 100%;
    max-width: 569px;
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    margin-right: 30px;
    margin-bottom: 30px;
    cursor: pointer;
    &:nth-child(2n) {
        margin-right: 0;
    }
    &.card3 {
        max-width: 370px;
        &:nth-child(2n) {
            margin-right: 30px;
            @media (max-width: 900px) {
                margin-right: 0;
            }
        }
        &:nth-child(3n) {
            margin-right: 0;
        }
    }
    
    .info-card {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 3;
        @media (max-width: 900px) {
            width: 60%;
        }
        .wysiwyg {
            column-count: unset;

            p {
                color: #fff;
            }
        }
        &.bottom-info {
            max-width: 330px;
            bottom: 45px;
            left: 0;
            right: 0;

            @media(max-width:900px) {
                max-width: 240px;
            }
        }

        .wysiwyg {
            color: #fff;
        }
    }
    .layer {
        display: block;
        opacity: 0;
        transition: all .5s;
        background: rgba(59, 72, 74, 0.9);
    }
    @media (max-width:900px) {
        max-width: 295px;
        height: 300px;
        margin-right: 0;
        margin-bottom: 40px;
    }
    .link {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
    }

    &:hover {

        .layer {
            opacity: .5;
        }
    }
}



.news {
    max-width: 370px;
    min-height: 540px;
    position: relative;
    &__url{
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .thumb-news {
        position: relative;
        height: 284px;
        display: block;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        @media (max-width:900px) {
            //height: 85px;
        }
        .link-news {
            width: 100%;
            height: 100%;
            display: block;
            position: relative;
            z-index: 2;
        }

        .layer {
            width: 100%;
            height: 100%;
            display: block;
            opacity: 0;
            position: absolute;
            top:0;
            left: 0;    
            transition: all 0.5s;
            background:rgba(35,82,78,0.8);   
            z-index: 1;             
        }
    }
    .info-news {
        padding: 10px 0;

        h3 {
            margin-top: 20px;
            margin-bottom: 20px;
        }

        h2 {
            font-size: 20px;
            line-height: 1.5;

            a{ 
                color: $paragraph-color-3;
                transition: all 0.5s;
            } 

        }
        .wysiwyg {
            column-count: unset;
        }
    }
    &:hover {

        .thumb-news {
            

            .layer {
                opacity: 1;
                display: block;
            }
        }
        .info-news {

            h2 {

                a {
                    color: $color-2;
                }
            }
        }
    }
    @media (max-width:900px) {
        margin: 0 auto;
        min-height: 260px;
    }
}
