

.container{
    position: relative; /* Cambiar de absolute a relative */
    margin-top: 20px; /* Espaciado entre el <section> y el slider */
    left: 50%; /* Centrado horizontalmente */
    transform: translateX(-50%); /* Solo ajusta horizontalmente */
    width: 380px;
    height: 600px;
    background: #000000cf;
    box-shadow: 11px 13px 8px 0px #000000af;
    border-radius: 20px;
    z-index: 1;
}
@media (min-width: 400px)  {
    .container{
        width: 400px;
        height: 600px;
       
    }
}
@media (min-width: 500px)  {
    .container{
        width: 1000px;
        height: 600px;
       
    }
}


.container .slide .item{
    width: 100px;
    height: 250px;
    position: absolute;
    top: 27%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 4px 5px 0px #4f2727;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

@media (min-width: 500px)  {
    .container .slide .item{
        top: 50%;
        width: 140px;
    }
}


.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 2;
    width: 100%;
    height: 100%;
}


.slide .item:nth-child(3){
    left: 70%;
}
.slide .item:nth-child(4){
    left: calc(10% + 220px);
}
.slide .item:nth-child(5){
    left: calc(20% + 240px);
}
.slide .item:nth-child(n + 6){
    top: 20%;
    opacity: 0;
}
@media (min-width: 500px)  {

    .slide .item:nth-child(4){
        left: calc(60% + 220px);
    }
    .slide .item:nth-child(5){
        left: calc(50% + 420px);
    }

    /* here n = 0, 1, 2, 3,... */
    
}

.item .content{
    position: absolute;
    top: 70%;
    left: 55px;
    width: 300px;
    text-align: center;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}
@media (min-width: 500px)  {
    .item .content{
        top: 50%;
        left: 100px;
        width: 300px;
        text-align: left;
    }
}

.slide .item:nth-child(2) .content{
    display: block;
}


.content .name{
    font-size: 33px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des{
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}
@media (min-width: 500px)  {
    .content .name {
        font-size: 40px;
    }
    .content .des {
        font-size: 16px;
    }
}



.content button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    color: rgb(255, 255, 255);
    background-color: #e00000;
}



@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}



.button{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.button button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000000;
    
}

.button button:hover{
    background: #ababab;
    color: #fff;
    opacity: 1;
}

.content button:hover{
    opacity: 1;
}

.span {
    font-size: 20px;
}