/* --------------------------------

Primary style

-------------------------------- */

html * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

.timelinediv {
    position: relative;
}

.leyendaColores {
    position: absolute;
    top: 0;
    left: 0;
}

.leyendaColores li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    font-weight: 400;
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.leyendaColores li::before {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    background: #eee;
    border-radius: 50%;
    margin-right: 20px;
}

.leyendaColores li.tecnologia::before {
    background: #E80C76;
}

.leyendaColores li.producto::before {
    background: #436EBD;
}

.leyendaColores li.comercial::before {
    background: #1CA0C7;
}

.leyendaColores li.reconocimientos::before {
    background: #ec7533;
}

/* --------------------------------

Modules - reusable parts of our design

-------------------------------- */

.cd-container {
    /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
    max-width: 1280px;
    margin: 0 auto;
}

.cd-container::after {
    /* clearfix */
    content: '';
    display: table;
    clear: both;
}

/* --------------------------------

Main components

-------------------------------- */

.cd-container {
    position: relative;
    overflow: hidden;
    padding: 3em 0;
    margin: 40px 0;
    padding-top: 50px;
}

.cd-container::before {
    /* this is the vertical line */
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    height: 100%;
    width: 8px;
    background: #eee;
}

@media only screen and (min-width: 1170px) {
    .cd-container::before {
        left: 50%;
        margin-left: -4px;
    }
}

.cd-timeline-block {
    position: relative;
    margin: 0;
}

.cd-timeline-block:nth-child(1) {
    top: 0;
}

.cd-timeline-block:nth-child(2) {
    top: -100px;
}

.cd-timeline-block:nth-child(3) {
    top: -150px;
}

.cd-timeline-block:nth-child(4) {
    top: -200px;
}

.cd-timeline-block:nth-child(5) {
    top: -250px;
}

.cd-timeline-block:nth-child(6) {
    top: -300px;
}

.cd-timeline-block:nth-child(7) {
    top: -350px;
}

.cd-timeline-block:nth-child(8) {
    top: -400px;
}

.cd-timeline-block:nth-child(9) {
    top: -450px;
}

.cd-timeline-block:nth-child(10) {
    top: -500px;
}

.cd-timeline-block:nth-child(11) {
    top: -550px;
}

.cd-timeline-block:nth-child(12) {
    top: -600px;
}

.cd-timeline-block:nth-child(13) {
    top: -650px;
}

.cd-timeline-block:nth-child(14) {
    top: -700px;
}

.cd-timeline-block:nth-child(15) {
    top: -750px;
}

.cd-timeline-block:nth-child(16) {
    top: -800px;
}

.cd-timeline-block:nth-child(17) {
    top: -850px;
}

.cd-timeline-block:nth-child(18) {
    top: -900px;
}

.cd-timeline-block:nth-child(19) {
    top: -960px;
}

.cd-timeline-block:after {
    content: "";
    display: table;
    clear: both;
}

.cd-timeline-img {
    position: absolute;
    top: 80px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 13px solid #000;
    background: #FFF;
    z-index: 1;
}

.producto .cd-timeline-img,
.producto .cd-timeline-content::before {
    border-color: #436EBD;
}

.producto .cd-timeline-content .fecha,
.producto .cd-timeline-content strong {
    color: #436EBD;
}

.producto .cd-timeline-content:after {
    background: #436EBD;
}

.tecnologia .cd-timeline-img,
.tecnologia .cd-timeline-content::before {
    border-color: #E80C76;
}

.tecnologia .cd-timeline-content .fecha,
.tecnologia .cd-timeline-content strong {
    color: #E80C76;
}

.tecnologia .cd-timeline-content:after {
    background: #E80C76;
}

.comercial .cd-timeline-img,
.comercial .cd-timeline-content::before {
    border-color: #1CA0C7;
}

.comercial .cd-timeline-content .fecha,
.comercial .cd-timeline-content strong {
    color: #1CA0C7;
}

.comercial .cd-timeline-content:after {
    background: #1CA0C7;
}

.reconocimiento .cd-timeline-img,
.reconocimiento .cd-timeline-content::before {
    border-color: #EC7533;
}

.reconocimiento .cd-timeline-content .fecha,
.reconocimiento .cd-timeline-content strong {
    color: #EC7533;
}

.reconocimiento .cd-timeline-content:after {
    background: #EC7533;
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-img {
        width: 26px;
        height: 26px;
        left: 50%;
        top: 20%;
        margin-left: -13px;
        /* Force Hardware Acceleration in WebKit */
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
    .cssanimations .cd-timeline-img.is-hidden {
        visibility: hidden;
    }
    .cssanimations .cd-timeline-img.bounce-in {
        visibility: visible;
        -webkit-animation: cd-bounce-1 0.6s;
        -moz-animation: cd-bounce-1 0.6s;
        animation: cd-bounce-1 0.6s;
    }
}

@-webkit-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

@-moz-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -moz-transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -moz-transform: scale(1.2);
    }
    100% {
        -moz-transform: scale(1);
    }
}

@keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}

.cd-timeline-content {
    position: relative;
    margin-left: 60px;
    padding: 1em;
}

.cd-timeline-block:nth-child(odd) .cd-timeline-content {
    border-left: 5px solid #eee;
}

.cd-timeline-block:nth-child(even) .cd-timeline-content {
    border-right: 5px solid #eee;
}

.cd-timeline-content:after {
    content: "";
    display: block !important;
    clear: both;
    height: 100px;
    width: 5px;
    position: absolute;
    top: 0;
}

.cd-timeline-block:nth-child(odd) .cd-timeline-content:after {
    left: -5px;
}

.cd-timeline-block:nth-child(even) .cd-timeline-content:after {
    right: -5px;
}

.cd-timeline-content::before {
    content: '';
    position: absolute;
    top: 90px;
    right: 93%;
    height: 0;
    width: 90px;
    border: 2px dashed #000;
}

@media (max-width: 1170px) {
    .cd-timeline-img,
    .cd-timeline-content::before,
    .leyendaColores {
        display: none !important;
    }
    .cd-timeline-content {
        margin-left: 20px;
    }
    .cd-timeline-block {
        top: inherit !important;
    }
    .cd-timeline-content:after{
        left: -5px !important;
        right: inherit;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cd-timeline-content::before {
        left: -33px;
        top: 90px !important;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .cd-timeline-content::before {
        right: 93%;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-content {
        margin-left: 0;
        padding: 0 1.6em;
        width: 40%;
    }
    .cd-timeline-content::before {
        top: 34px;
        right: -95px;
    }
    .cd-timeline-block:nth-child(odd) .cd-timeline-content {
        float: right;
    }
    .cd-timeline-block:nth-child(odd) .cd-timeline-content::before {
        top: 34px;
        left: -95px;
    }
    .cssanimations .cd-timeline-content.is-hidden {
        visibility: hidden;
    }
    .cssanimations .cd-timeline-content.bounce-in {
        visibility: visible;
        -webkit-animation: cd-bounce-2 0.6s;
        -moz-animation: cd-bounce-2 0.6s;
        animation: cd-bounce-2 0.6s;
    }
    /* .cd-timeline-block:nth-child(even) .cd-timeline-content {
        text-align: right;
    }
    .cd-timeline-block:nth-child(1) .cd-timeline-content::before {
        top: 57px;
    }
    .cd-timeline-block:nth-child(2) .cd-timeline-content::before {
        top: 45px;
    }
    .cd-timeline-block:nth-child(3) .cd-timeline-content::before {
        top: 55px;
    }
    .cd-timeline-block:nth-child(4) .cd-timeline-content::before {
        top: 40px;
    }
    .cd-timeline-block:nth-child(5) .cd-timeline-content::before {
        top: 45px;
    }
    .cd-timeline-block:nth-child(6) .cd-timeline-content::before {
        top: 55px;
    }
    .cd-timeline-block:nth-child(7) .cd-timeline-content::before {
        top: 40px;
    }
    .cd-timeline-block:nth-child(8) .cd-timeline-content::before {
        top: 40px;
    }
    .cd-timeline-block:nth-child(9) .cd-timeline-content::before {
        top: 90px;
    }
    .cd-timeline-block:nth-child(10) .cd-timeline-content::before {
        top: 40px;
    }
    .cd-timeline-block:nth-child(11) .cd-timeline-content::before {
        top: 50px;
    }
    .cd-timeline-block:nth-child(12) .cd-timeline-content::before {
        top: 50px;
    }
    .cd-timeline-block:nth-child(13) .cd-timeline-content::before {
        top: 50px;
    }
    .cd-timeline-block:nth-child(14) .cd-timeline-content::before {
        top: 55px;
    }
    .cd-timeline-block:nth-child(15) .cd-timeline-content::before {
        top: 45px;
    }
    .cd-timeline-block:nth-child(16) .cd-timeline-content::before {
        top: 50px;
    }
    .cd-timeline-block:nth-child(17) .cd-timeline-content::before {
        top: 40px;
    }
    .cd-timeline-block:nth-child(18) .cd-timeline-content::before {
        top: 40px;
    } */
}

.cd-timeline-content .fecha {
    font-family: "Miso", sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: normal;
    color: #444;
}

.cd-timeline-content p,
.cd-timeline-content h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #777;
}

@media only screen and (min-width: 1170px) {
    /* inverse bounce effect on even content blocks */
    .cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
        -webkit-animation: cd-bounce-2-inverse 0.6s;
        -moz-animation: cd-bounce-2-inverse 0.6s;
        animation: cd-bounce-2-inverse 0.6s;
    }
}

@-webkit-keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
    }
    100% {
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -moz-transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -moz-transform: translateX(20px);
    }
    100% {
        -moz-transform: translateX(0);
    }
}

@keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
        -moz-transform: translateX(-100px);
        -ms-transform: translateX(-100px);
        -o-transform: translateX(-100px);
        transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
        -moz-transform: translateX(20px);
        -ms-transform: translateX(20px);
        -o-transform: translateX(20px);
        transform: translateX(20px);
    }
    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

@-webkit-keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
    }
    100% {
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -moz-transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -moz-transform: translateX(-20px);
    }
    100% {
        -moz-transform: translateX(0);
    }
}

@keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
        -moz-transform: translateX(100px);
        -ms-transform: translateX(100px);
        -o-transform: translateX(100px);
        transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
        -moz-transform: translateX(-20px);
        -ms-transform: translateX(-20px);
        -o-transform: translateX(-20px);
        transform: translateX(-20px);
    }
    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}
