/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul {
    padding: 20px 0;
}

.timeline ul li {
    list-style-type: none;
    position: relative;
    width: 5px;
    color: #C21015;
    margin: 0 auto;
    padding-top: 50px;
    background: #F0D427;
}

.timeline ul li>div {
    position: relative;
    display: table;
    vertical-align: middle;
    width: 652px;
    z-index: 2;
}

.img-elemento-r5 {
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-table;
    height: 110px;
    width: 110px;
    border: 5px solid #C21015;
    background-color: #ffffff;
}

.timeline ul li:nth-child(even) div.texto-elemento-r5 {
    transform: translate3d(200px, 0, 0);
    border: 2px dashed #fff;
}

.timeline ul li:nth-child(odd) div.texto-elemento-r5 {
    transform: translate3d(-200px, 0, 0);
    border: 2px dashed #fff;
    left: -520px;
}


/* primer elemento */

#img-elemento1-r5 {
    background-image: url(../img/elemento1.png);
}


/* segundo elemento */

#img-elemento2-r5 {
    background-image: url(../img/elemento2.png);
}


/* tercer elemento */

#img-elemento3-r5 {
    background-image: url(../img/elemento3.png);
}


/* cuarto elemento */

#img-elemento4-r5 {
    background-image: url(../img/elemento4.png);
}


/* quinto elemento */

#img-elemento5-r5 {
    background-image: url(../img/elemento5.png);
}


/* sexto elemento */

#img-elemento6-r5 {
    background-image: url(../img/elemento6.png);
}


/* septimo elemento */

#img-elemento7-r5 {
    background-image: url(../img/elemento7.png);
}


/* octavo elemento */

#img-elemento8-r5 {
    background-image: url(../img/elemento8.png);
}


/* noveno elemento */

#img-elemento9-r5 {
    background-image: url(../img/elemento9.png);
}


/* decimo elemento */

#img-elemento10-r5 {
    background-image: url(../img/elemento10.png);
}


/* definicion general para los textos */

.timeline ul li div.texto-elemento-r5 {
    text-align: justify;
    display: inline-table;
    margin: 0 40px;
    vertical-align: middle;
    position: relative;
    color: #ffffff;
    left: -60px;
    width: 280px;
    visibility: hidden;
    opacity: 0;
    padding: 24px;
    transition: all .5s ease-in-out;
}

.timeline ul li.in-view div.texto-elemento-r5 {
    text-align: center;
    transform: none;
    visibility: visible;
    opacity: 1;
    border: dashed #ffffff 1px;
}

.timeline ul li div.texto-elemento-r5::before {
    top: 50%;
    margin-top: -14px;
    content: '';
    position: absolute;
    bottom: 4px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline ul li:nth-child(even) div::before {
    left: -26px;
    border-width: 15px 20px 15px 0;
    border-color: transparent #000 transparent transparent;
}

.timeline ul li:nth-child(odd) div::before {
    right: -26px;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent #000;
}


/* las flechas en los textos */

.timeline ul li:nth-child(3n+1) div.texto-elemento-r5::before {
    border-left-color: #49aa71 !important;
    border-right-color: #49aa71 !important;
}

.timeline ul li:nth-child(3n+2) div.texto-elemento-r5::before {
    border-right-color: #C21015 !important;
    border-left-color: #C21015 !important;
}

.timeline ul li:nth-child(3n+3) div.texto-elemento-r5::before {
    border-left-color: hsl(52, 87%, 50%) !important;
    border-right-color: hsl(52, 87%, 50%) !important;
}

.timeline ul li:nth-child(3n+1) div.texto-elemento-r5 {
    background: #49aa71;
    box-shadow: 0 0 0 5px #49aa71;
}

.timeline ul li:nth-child(3n+2) div.texto-elemento-r5 {
    background: #C21015;
    box-shadow: 0 0 0 5px #C21015;
}

.timeline ul li:nth-child(3n+3) div.texto-elemento-r5 {
    background: hsl(52, 87%, 50%);
    box-shadow: 0 0 0 5px hsl(52, 87%, 50%);
}


/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
    .timeline ul li div.texto-elemento-r5 {
        left: -64px;
        width: 300px;
        padding: 22px;
    }

    .timeline ul li:nth-child(n) div.texto-elemento-r5 {
        border: 2px dashed #fff;
        left: -64px;
    }

    .timeline ul li:nth-child(n) div::before {
        left: -26px;
        border-width: 15px 20px 15px 0;
    }

    .timeline ul li:nth-child(n) div::before {
        left: -16px;
        border-width: 10px 14px 10px 0;
    }

    .timeline ul li:nth-child(3n+1) div.texto-elemento-r5::before {
        border-right-color: #49aa71
    }

    .timeline ul li:nth-child(3n+2) div.texto-elemento-r5::before {
        border-right-color: #C21015
    }

    .timeline ul li:nth-child(3n+3) div.texto-elemento-r5::before {
        border-right-color: hsl(52, 87%, 50%)
    }

    .timeline ul {
        margin-left: -280px;
        padding: 50px -79px 0px 50px;
    }
}

@media screen and (max-width: 600px) {
    .timeline ul {
        margin-left: -203px;
        padding: 50px -100px 0px 50px;
    }

    .timeline ul li:nth-child(n) div.texto-elemento-r5 {
        left: -70px;
    }

    .timeline ul li div.texto-elemento-r5 {
        width: 200px;
        font-size: 18px;
        padding: 22px;
    }

    .img-elemento-r5 {
        height: 90px;
        width: 90px;
    }

    .timeline ul li:nth-child(n) div::before {
        left: -16px;
        border-width: 10px 14px 10px 0;
    }
}