@charset "utf-8";
/* CSS Document */

/*TIMELINE ENTRENAMIENTOS*/

.training-timeline-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 35px 30px;
}

.training-timeline {
    display: flex;
    gap: 0;
    transition: transform .5s ease;
    will-change: transform;
}

.training-item {
    position: relative;
    flex: 0 0 25%;
    padding: 0 10px;
}

/* Línea horizontal */

.training-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
    border-top: 2px dotted #b8c5e8;
    z-index: 0;
}

/* Nodo */

.training-node {
    position: relative;
    z-index: 2;

    width: 36px;
    height: 36px;
    margin: 0 auto 15px;

    border: 2px solid #4d7ff0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    color: #315fca;
    font-weight: 700;
}

/* Card */

.training-card {
    padding: 20px;
    border: 1px solid #e2e7f2;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .06);
}

.training-date {
    margin-bottom: 10px;
    color: #e33d63;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.training-card h3 {
    line-height: 1.2;
}

.training-card p {
    color: #34446a;
    line-height: 1.4;
}

.training-distance {
    display: inline-block;
    margin-top: auto;
    padding: .25rem .6rem;
    border: 1px solid #9bb2f5;
    border-radius: 50px;
    color: #315fca;
    font-size: .75rem;
    font-weight: 700;
}

/* Flechas */

.training-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: #122b6b;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 .125rem .4rem rgba(0, 0, 0, .15);
}

.training-arrow:hover {
    background: #e33d63;
}

.training-arrow-prev {
    left: 0;
}

.training-arrow-next {
    right: 0;
}

/*mobile*/
@media (max-width: 767px) {

    .training-timeline-wrapper {
        padding: 10px 0;
        overflow: visible;
    }

    .training-timeline {
        display: block;
        overflow: visible;
        transform: none !important;
    }

    .training-item {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 15px;

        flex: none;
        padding: 0 0 25px;
    }

    .training-node {
        width: 36px;
        height: 36px;
        margin: 0;
    }

    /* Línea vertical */

    .training-item:not(:last-child)::after {
        top: 36px;
        left: 17px;

        width: 0;
        height: calc(100% - 36px);

        border-top: 0;
        border-left: 2px dotted #b8c5e8;
    }

    .training-card {
        padding: 18px;
    }

    /* En mobile no necesitamos flechas */

    .training-arrow {
        display: none;
    }
}
