* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-image: url(../img/fondo.png);
}





/* Carrusel  de inicio*/
.slider {
    scroll-snap-align: start;
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
    z-index: 0;
}

.slider-container {
    display: flex;
    transition: transform 1s ease;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    display: block;
}

.btn {
    background-color: rgb(255, 255, 255);
    border: none;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    color: #76225e;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transform: scale(1.2);
    font-size: 24px;
    z-index: 10;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Sección historias de exito */
.histories {

    margin-top: 20px;
    height: 85vh;
    background-color: #471d0116;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 70%;
    height: auto
}

.text-content {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30%;
}

.histories-btn {
    text-decoration: none;
    color: white;
    border-radius: 30px;
    padding: 15px 30px;
    width: fit-content;
    font-weight: bold;
    background-color: #f04f48;
}

.other-content {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    max-width: 65%;
    position: relative; 
}

.other-content .bg-img{
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: absolute; 
    bottom:-60px; 
    left: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel {
    display: flex;
    transition: transform 0.4s ease-in-out;
    overflow: hidden;
    width: 380px;
    height: 600px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.card-car {
    min-width: fit-content;
    height: auto;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    font-size: 24px;
    border-radius: 10px;
}

.bubble{
    height: 500px;
    width: 375px;
    background-image: url(../img/pensamiento.png);
    background-size: cover;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.carousel-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}




/* Slider infinito */

.infinite-carousel {
    margin: 0 auto;
    padding: 20px 0;
    max-width: 65%;
    overflow: hidden;
    display: flex;
    height: 15vh;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    justify-content: space-between;
    padding-right: 20px;
    will-change: transform;
    animation: scrolling 30s linear infinite;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-left: 100px;



    /* &:nth-child(1) {
        background: #7958ff;
    }

    &:nth-child(2) {
        background: #5d34f2;
    }

    &:nth-child(3) {
        background: #4300da;
    } */
}

.card img {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to left, #dd9494 0%, #d62525 100%, #dd9494 0%) 1;
    height: 90px;
    width: 150px;
}





@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}





@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}