
.slider-caja{
    margin-top: 50px;
    display: grid;
    grid-template-columns: 500px 1fr;
    align-items: center;
    margin-left: 2%;
}

.vacia{
    position: relative;
    width: 500px;
    background: #ffffff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacia{
    border-right: 3px solid #9e9d9d;
}

.vacia h2{
    position: relative;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0;
    text-transform: capitalize;
}

.slider_title{
    text-align: center;
    justify-content: center;
    margin-bottom: 100px;
}


/* Slider 2  */

.slider{
    overflow: hidden;
    white-space: nowrap ;
    padding: 60px 0 ;
    background-color: #fff;
    position: relative;
    margin: 30px 80px 30px 0px;
}

.slider .slider-track{
    display: flex;
    animation: scroll 25s linear infinite;
    width: calc( 300px * 20);
}



/* .slider:hover .slider-track{
    animation-play-state: paused;
} */


.slider .slide img{
    height: 50px;
    min-width: 100px;
    margin: 0 40px;
}

.slider:after{
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    content: '';
    z-index: 2;
    background: linear-gradient(to right, rgba(255, 255, 255, 0),white);

}

.slider:before{
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0),white);
    content: '';
    z-index: 2;
}



@keyframes scroll{
    0%{
        -webkit-transform:trasnlateX(0);
        transform: translateX(0);
    }

    100%{
        -webkit-transform:trasnlateX (calc(-300px * 10));
        transform: translateX(calc(-300px * 10));
    }
}

@media screen and (max-width:1500px) 
{
        
    .slider .slide img{
        height: 35px;
        margin: 0 30px;
        min-width: 100px;

    }

}


@media (max-width:470px) {

    
    .slider-caja{
        grid-template-columns: 1fr;
    }

    .vacia {
        width: 100%;
        padding: 0 30px;
        border-right: none;
    }


    .vacia h2{
        font-size: 24px;
        border-bottom: 3px solid #9e9d9d;
    }

    .slider{
        margin: 30px 20px;
    }
    .slider::before{
        width: 80px;
    }

    .slider::after{
        width: 80px;
    }


    .slider .slider-track{
        animation: scroll 25s linear infinite;
    }

    
}


