/* carousel */
.carousel{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 800px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.carousel h1{
    margin-top: 100px;
    font-size: 4.5em;
    padding: 10px;
    margin-bottom: 100px;
}


.carousel .list{
    position: absolute;
    top: 100px;
    left: 50%;
    width: 1140px;
    max-width: 90%;
   height: 80%;
    transform: translateX(-50%);
}

.carousel .list .item{
    position: absolute;
    left: 0;
    top: 0;
    
    width: 70%;
    height: 100%;
    font-size: 15px;
}

.carousel .list .item img{
    width: 60%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.carousel .list .item .detail{
    opacity: 0;
    pointer-events: none;
}


/* decripcion responsive */
.desc_movil{
    display: none;
}

.carousel .list .item .intro{
    position: absolute;
    top: 45%;
    transform: translateY(-50px);
    width: 400px;
    
    opacity: 0;
    pointer-events: none;
}

.intro{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro .topic{
    text-transform: capitalize;
}

.intro .des{
    width: 300px;
}



.carousel .list .item:nth-child(2) .intro{
    opacity: 1;   
    pointer-events: auto;
    transition: opacity 0.5s;
}

.carousel .list .item:nth-child(n + 5){
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(2){
    transform: translate(0, 0);
    filter: blur(0);
    z-index:10 ;
    opacity: 1;
}

.carousel .list .item:nth-child(1){
    transform: translate(-100%, -5%) scale(1.5);
    filter: blur(30px);
    z-index:11 ;
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(3){
    transform: translate(50%, 10%) scale(0.8);
    filter: blur(10px);
    z-index:9 ;
    opacity: 1;
}

.carousel .list .item:nth-child(4){
    transform: translate(90%, 20%) scale(0.5);
    filter: blur(30px);
    z-index: 8 ;
    opacity: 1;
}

.carousel .list .item:nth-child(5){
    transform: translate(120%, 30%) scale(0.3);
    filter: blur(40px);
    z-index: 7;
    opacity: 0;
}


/* arrows */

.arrows{
    position: absolute;
    bottom: 150px;
    width: 1140px;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.arrows #next{
    
    background-color: var(--color_primary);
    color: #fff;
    padding: 10px;
    border: none;
    font-weight: bold;
    text-transform: capitalize;
    margin-top: 1.2em;
    cursor: pointer;
    transition: 0.5s;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: large;
    font-weight: bold;
    
}

.arrows #next:hover{
    box-shadow: none;
    background-color: #282828;
    color: #fff;
}
.arrows #prev{
    display: none;;
}

.arrows #back{
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    background-color: #282828;
    color: #fff;
    padding: 10px;
    border: none;
    font-weight: bold;
    text-transform: capitalize;
    margin-top: 1.2em;
    cursor: pointer;
    transition: 0.5s;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item .intro .title{
    font-size: 2em;
    line-height: 0.8em;
}

.carousel .list .item .intro .topic{
    font-size: 4em;
    font-weight: 500;
}

.carousel .list .item .intro .des{
    font-size: small;
}

.carousel .list .item .intro .see_more{
    background-color: rgb(201, 198, 198);
    padding: 10px;
    border: none;
    font-weight: bold;
    text-transform: capitalize;
    margin-top: 1.2em;
    cursor: pointer;
    transition: 0.5s;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.carousel .list .item .intro .see_more:hover{
    box-shadow: none;
    background: #222222;
    color: var(--color_head);
    transform:translateY(2xp);
    
}

.carousel .list .item:nth-child(2) .intro .title,
.carousel .list .item:nth-child(2) .intro .topic,
.carousel .list .item:nth-child(2) .intro .des,
.carousel .list .item:nth-child(2) .intro .see_more{
    opacity: 0;
    animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}

@keyframes showContent{
    from{
        transform: translateY(50px);
        filter: blur(30px);
    }
    to{
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

carousel .list .item:nth-child(2) .intro .topic{
    animation-delay: 0.9s;
}

carousel .list .item:nth-child(2) .intro .des{
    animation-delay: 1.1s;
}

carousel .list .item:nth-child(2) .intro .see_more{
    animation-delay: 1.3s;
}

/* next click effect*/

.carousel.next .list .item:nth-child(1){
    animation: positionItem2 0.5s ease-in-out 1 forwards;
}

@keyframes positionItem2{
    from{
        transform: translate(0, 0);
        filter: blur(0);
        z-index:10 ;
        opacity: 1;
    }
}

.carousel.next .list .item:nth-child(2){
    animation: positionItem3 0.7s ease-in-out 1 forwards;
}

@keyframes positionItem3{
    from{
        transform: translate(50%, 10%) scale(0.8);
    filter: blur(10px);
    z-index:9 ;
    opacity: 1;
    }
}

.carousel.next .list .item:nth-child(3){
    animation: positionItem4 0.7s ease-in-out 1 forwards;
}

@keyframes positionItem4{
    from{
        transform: translate(90%, 20%) scale(0.5);
    filter: blur(30px);
    z-index: 8 ;
    opacity: 1;
    }
}

.carousel.next .list .item:nth-child(4){
    animation: positionItem5 0.7s ease-in-out 1 forwards;
}

@keyframes positionItem5{
    from{
        transform: translate(120%, 30%) scale(0.3);
        filter: blur(40px);
        z-index: 7;
        opacity: 0;
    }
}


/* show detail efect*/
.carousel .list .item{
    transition: left;
}

.carousel.showDetail .list .item:nth-child(3),
.carousel.showDetail .list .item:nth-child(4){
    left: 100%;
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2){
    width: 100%;
}

.carousel.showDetail .list .item:nth-child(2) .intro{
   opacity: 0;
   pointer-events: none;
}

.carousel .list .item:nth-child(2) img{
    transition: right 0.5s;
}

.carousel.showDetail .list .item:nth-child(2) img{
   right: 50%;
}

.carousel.showDetail .list .item:nth-child(2) .detail{
    opacity: 1;
    pointer-events: auto;
    width: 50%;
    position: absolute;
    right: -60px;
    
    top: 400px;
    transform: translateY(-50%);
}

.carousel.showDetail .list .item .detail{
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.carousel.showDetail .list .item .detail .title{
    font-size: 4.5em;
    font-weight: bolder;
    display: flex;
    text-align: center;
    gap: 10px;
    width: 900px;
    text-transform: uppercase;

}



.carousel.showDetail .list .item:nth-child(2) .detail .title,
.carousel.showDetail .list .item:nth-child(2) .detail .des{
    opacity: 0;
    animation:  showContent 0.5s 1s ease-in-out 1 forwards;

}

.carousel.showDetail .list .item:nth-child(2) .detail .des{
    animation-delay: 1.2s;
}

.carousel.showDetail #next,
.carousel.showDetail #back{
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail #back{
    opacity: 1;
    pointer-events: auto;
}



.carousel.showDetail::before{
    transform: translate(-100%, -50%) rotate(70deg);
}








@media screen and (max-width: 991px){

    
    .carousel .list .item{
        width: 90%;
    }

    .carousel .list .detail{
        overflow: auto;
    }

}

@media screen and (max-width: 767px){


    body {
        height: 100vh;

     }

    .carousel .list .item{
        width: 100%;
        font-size: 8px;
    }

    .carousel .list .item .intro .topic{
        font-size: 2em;
        font-weight: 500;
    }

    .carousel{
        height: 600px;
    }
    .carousel h1{
        font-size: 1.5em;
    }
    .carousel .list{
        height: 100%;
    }

    .carousel .list .item .intro{
        width: 40%;
    }

    .carousel .list .item .intro .des{
        display: none;
    }

    .desc_movil{
        display: block;
    }

    .carousel .list .item img{
        width: 40%;
    }

    .see_more{
        display: none;
    }

    .carousel::before{
        width: 500px;
        height: 500px;
        content: '';
        background-image: none;
       
    }
    
    
}

