.backdrop .contenido {
    overflow: hidden;
}

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

.timeline ul {
    padding: 20px 0;
}

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

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

.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: 100px;
    width: 110px;
}

.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: -510px;
}


/* primer elemento */

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


/* segundo elemento */

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


/* tercer elemento */

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


/* cuarto elemento */

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


/* quinto elemento */

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


/* sexto elemento */

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


/* septimo elemento */

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


/* octavo elemento */

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


/* noveno elemento */

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


/* decimo elemento */

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


/* decimoprimer elemento */

#img-elemento11-r5 {
    background-image: url(../img/recurso-5-11.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;
    border-radius: 10px;
    position: relative;
    color: #ffffff;
    left: -70px;
    width: 280px;
    font-size: 18px;
    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;
    font-family: 'Roboto Condensed', sans-serif;

}

.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(4n+1) div.texto-elemento-r5::before {
    border-left-color: hsl(153, 100%, 34%)
}

.timeline ul li:nth-child(4n+2) div.texto-elemento-r5::before {
    border-right-color: hsl(45, 100%, 54%)
}

.timeline ul li:nth-child(4n+3) div.texto-elemento-r5::before {
    border-left-color: hsl(24, 100%, 54%)
}

.timeline ul li:nth-child(4n+4) div.texto-elemento-r5::before {
    border-right-color: hsl(338, 100%, 38%)
}

.timeline ul li:nth-child(4n+1) div.texto-elemento-r5 {
    background: hsl(153, 100%, 34%);
    box-shadow: 0 0 0 5px hsl(153, 100%, 34%);
}

.timeline ul li:nth-child(4n+2) div.texto-elemento-r5 {
    background: hsl(45, 100%, 54%);
    box-shadow: 0 0 0 5px hsl(45, 100%, 54%);
}

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

.timeline ul li:nth-child(4n+4) div.texto-elemento-r5 {
    background: hsl(338, 100%, 38%);
    box-shadow: 0 0 0 5px hsl(338, 100%, 38%);
}


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

@media screen and (max-width: 900px) {
    .timeline ul li div.texto-elemento-r5 {
        left: -64px;
        width: 300px;
        font-size: 22px;
        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;
        border-color: transparent transparent transparent #000;
    }
    .timeline ul li:nth-child(n) div::before {
        left: -16px;
        border-width: 10px 14px 10px 0;
        border-color: transparent #000 transparent transparent;
    }
    .timeline ul li:nth-child(4n+1) div.texto-elemento-r5::before {
        border-right-color: hsl(153, 100%, 34%)
    }
    .timeline ul li:nth-child(4n+2) div.texto-elemento-r5::before {
        border-right-color: hsl(45, 100%, 54%)
    }
    .timeline ul li:nth-child(4n+3) div.texto-elemento-r5::before {
        border-right-color: hsl(24, 100%, 54%)
    }
    .timeline ul li:nth-child(4n+4) div.texto-elemento-r5::before {
        border-right-color: hsl(338, 100%, 38%)
    }
    .timeline ul {
        margin-left: -280px;
        padding: 50px -79px 0px 50px;
    }
}

@media screen and (max-width: 600px) {
    .timeline ul {
        margin-left: -203px;
        padding: 50px -79px 0px 50px;
    }
    .timeline ul li:nth-child(n) div.texto-elemento-r5 {
        left: -92px;
    }
    .timeline ul li div.texto-elemento-r5 {
        width: 200px;
        font-size: 16px;
        padding: 22px;
    }
    .img-elemento-r5 {
        height: 70px;
        width: 110px;
    }
    .timeline ul li:nth-child(n) div::before {
        left: -16px;
        border-width: 10px 14px 10px 0;
        border-color: transparent #000 transparent transparent;
    }
}