html,
body{
    overflow-x: hidden;
    background:#020617;
}
.timeline-xn{
    position: relative;

    min-height: 150vh;

    padding-top: 150px;
    padding-bottom: 320px;

    background: #020617;
    overflow: hidden;
}

.timeline-bg{
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at top right,
    rgba(37,99,235,.18),
    transparent 35%);
}

.timeline-header{
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.timeline-mini{
    display: inline-block;
    margin-bottom: 10px;
    color: #60a5fa;
    letter-spacing: 3px;
    font-size: .82rem;
    font-weight: 800;
}

.timeline-header h2{
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-header p{
    color: rgba(255,255,255,.7);
    font-size: 1.1rem;
}



/* WRAPPER */

.timeline-wrapper{
    position: relative;
    background: #020617;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;

    height: 900px;
    cursor: grab;
}

.timeline-wrapper::-webkit-scrollbar{
    display: none;
}

.timeline-wrapper{
    scrollbar-width: none;
}

.timeline-content{
    position: relative;
    display: flex;
    gap: 80px;
    width: max-content;
    padding: 0 50px;
    transform-origin: center;
}

/* LINEA */

.timeline-line{
    position: absolute;
    top: 40%;
    left:-5000px;
    width:20000px;
    height: 4px;
    background:
    linear-gradient(
    90deg,
    #2563eb,
    #60a5fa,
    #2563eb
    );
    transform: translateY(-50%);
    box-shadow: 0 0 25px rgba(37,99,235,.7);
}

/* ITEM */

.timeline-item{
    position: relative;
    padding-top: 30px;
    width: 250px;
    flex-shrink: 0;
}

.timeline-dot{
    position: absolute;
    top: 360px;
    left: 50%;
    width: 26px;
    height: 26px;
    background: #60a5fa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
    0 0 0 10px rgba(96,165,250,.12),
    0 0 30px rgba(96,165,250,.8);
    z-index: 3;
}

/* CARD */

.timeline-card{
    position: relative;
    padding: 40px;
    border-radius: 26px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    transition: .4s ease;
}

.timeline-item:nth-child(odd) .timeline-card{
    margin-bottom: 100px;
}

.timeline-item:nth-child(even) .timeline-card{
    margin-top: 380px;
}

.timeline-card:hover{
    transform: translateY(-12px);
    border-color: rgba(96,165,250,.4);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.timeline-card span{
    display: inline-block;
    margin-bottom: 12px;
    color: #60a5fa;
    font-weight: 600;
    font-size: .9rem;
}

.timeline-card h3{
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 700;
}

.timeline-card p{
    color: rgba(255,255,255,.7);
    line-height: 1.8;
}

/* =================
    MULTIPLES ITEMS
  ================== */
.multi-year{
    width: 320px;
    position: relative;
    flex-shrink: 0;
}

.multi-year .timeline-dot{
    position:absolute;
    top:360px;
    left:50%;
    transform:translate(-50%,-50%);
}

.multi-year .timeline-card{
    position:absolute;
    width:100%;
}

.multi-year .top-card{
    bottom:410px;
}

.multi-year .bottom-card{
    top:20px;
}

.multi-year .bottom-card2{
    top:280px;
}

/*UP*/

.multi-year-up{
    width: 320px;
    position: relative;
    flex-shrink: 0;
}

.multi-year-up .timeline-dot{
    position:absolute;
    top:360px;
    left:50%;
    transform:translate(-50%,-50%);
}

.multi-year-up .timeline-card{
    position:absolute;
    width:100%;
}

.multi-year-up .top-card{
    top:410px;
}

.multi-year-up .bottom-card{
    top:100px;
}

.multi-year-up .bottom-card2{
    top:200px;
}

  
/* RESPONSIVE */

/* ==========================
   TABLET
========================== */

@media (max-width: 992px){

    .timeline-header h2{
        font-size: 3rem;
    }

    .timeline-content{
        gap: 60px;
        padding: 0 40px;
    }

    .timeline-item{
        width: 250px;
    }

    .timeline-card{
        padding: 25px;
    }

    .timeline-card h3{
        font-size: 1.4rem;
    }

}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px){

    .timeline-xn{
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .timeline-header{
        margin-bottom: 50px;
    }

    .timeline-header h2{
        font-size: 2rem;
        line-height: 1.2;
    }

    .timeline-header p{
        font-size: .95rem;
        padding: 0 20px;
    }

    .timeline-content{
        gap: 40px;
        padding: 0 20px;
    }

    .timeline-item{
        width: 190px;
    }

    .timeline-card{
        padding: 18px;
        border-radius: 18px;
    }

    .timeline-card h3{
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .timeline-card p{
        font-size: .82rem;
        line-height: 1.5;
    }

    .timeline-item:nth-child(odd) .timeline-card{
        margin-bottom: 120px;
    }

    .timeline-item:nth-child(even) .timeline-card{
        margin-top: 120px;
    }

    .timeline-dot{
        width: 18px;
        height: 18px;

        box-shadow:
            0 0 0 6px rgba(96,165,250,.12),
            0 0 15px rgba(96,165,250,.8);
    }

}

/* ==========================
   CELULARES CHICOS
========================== */

@media (max-width: 480px){

    .timeline-header h2{
        font-size: 1.6rem;
    }

    .timeline-content{
        gap: 25px;
        padding: 0 10px;
    }

    .timeline-item{
        width: 160px;
    }

    .timeline-card{
        padding: 15px;
    }

    .timeline-card h3{
        font-size: .95rem;
    }

    .timeline-card p{
        font-size: .75rem;
    }

    .timeline-item:nth-child(odd) .timeline-card{
        margin-bottom: 90px;
    }

    .timeline-item:nth-child(even) .timeline-card{
        margin-top: 90px;
    }

}