/* Adding variables */
@import url("../../css/variables.css");

.timeline__tabs {
    width: var(--full);
    padding: var(--s-spacing) 0 0;
    margin: 0 auto;
    background: var(--neowhite);
}

.tabs__nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.tabs__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--width);
    min-height: 60px;
    list-style: none;
    padding: calc(var(--s-spacing) / 2);
    margin: 0 auto;
    background: white;
    overflow: hidden;
    scroll-behavior: smooth;
}

.tabs__nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: calc(100% / 6);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    text-align: center;
}

.tabs__arrow {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2rem;
    height: 2rem;
}

.tabs__arrow i {
    font-size: 2rem;
    color: var(--neopaleblue);
    transition: color .4s ease;
}

.tabs__arrow i:hover {
    color: var(--neoblue);
}

.tabs__arrow--left {
    left: 2rem;
}

.tabs__arrow--right {
    right: 2rem;
}

/* Ocultar las flechas si no hay desbordamiento */
.tabs__arrow[disabled] {
    visibility: hidden;
    pointer-events: none;
    opacity: 0.5;
}

.tabs__button {
    width: 100%;
    height: calc(60px - var(--s-spacing));
    font-size: var(--text);
    color: black;
    background: none;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all .4s ease;
}

.tabs__button:hover,
.tabs__button.is-active {
    background: var(--neopaleblue);
    color: white;
}

.tabs__panel {
    display: none;
    padding: var(--l-spacing) 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tabs__panel.is-active {
    display: block;
    opacity: 1;
}

.vertical-timeline__main-container {
    width: var(--width);
    padding: var(--padding);
    margin: 0 auto;
}

.vertical-timeline__main-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--m-spacing) 0 var(--l-spacing);
}

.vertical-timeline__main-title-container h2 {
    font-size: var(--h2);
    font-weight: var(--extralight);
    color: black;
    text-align: center;
}

.vertical-timeline__main-title-container h2 strong {
    font-weight: var(--regular);
    color: var(--neopaleblue);
}

/**********************************************/
/******************* Laptop *******************/
/**********************************************/
@media (max-width: 1366px) {
    .tabs__arrow--left {
        left: 1rem;
    }

    .tabs__arrow--right {
        right: 1rem
    }
}

/**********************************************/
/******************* Tablet *******************/
/**********************************************/
@media (max-width: 1024px) {
    .timeline__tabs {
        padding: var(--s-spacing) var(--m-spacing);
    }

    .tabs__nav {
        width: calc(var(--full) - 4rem);
    }

    .tabs__nav-item {
        width: calc(100% / 3);
    }

    .tabs__arrow i {
        font-size: 1.25rem;
    }

    .tabs__arrow--left {
        left: -5px;
    }
    
    .tabs__arrow--right {
        right: -5px;
    }
}

/**********************************************/
/******************* Mobile *******************/
/**********************************************/
@media (max-width: 767px) {
    .timeline__tabs {
        padding: var(--s-spacing);
    }

    .tabs__nav {
        width: calc(var(--full) - 3rem);
    }

    .tabs__nav-item {
        width: var(--full);
    }
}

.cd-container {
    width: var(--full);
    max-width: var(--full);
    margin: 0 auto;
}

.cd-container::after {
    /* clearfix */
    content: "";
    display: table;
    clear: both;
}

.cd-timeline {
    position: relative;
    padding: var(--m-spacing) 0;
}

.cd-timeline::before {
    /* this is the vertical line */
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    height: 100%;
    width: 4px;
    background: var(--neopaleblue);
}

@media only screen and (min-width: 1025px) {
    .cd-timeline::before {
        left: 50%;
        margin-left: -2px;
    }

    .cd-container {
        width: 75%;
        max-width: var(--width);
    }
}

.cd-timeline-block {
    position: relative;
    margin: 2em 0;
}

.cd-timeline-block::after {
    clear: both;
    content: "";
    display: table;
}

.cd-timeline-block:first-child {
    margin-top: 0;
}

.cd-timeline-block:last-child {
    margin-bottom: 0;
}

@media only screen and (min-width: 1025px) {
    .cd-timeline-block {
        margin: var(--xl-spacing) 0;
    }

    .cd-timeline-block:first-child {
        margin-top: 0;
    }

    .cd-timeline-block:last-child {
        margin-bottom: 0;
    }
}

.cd-timeline-img {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--neopaleblue), inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 2px 0 2px rgba(0, 0, 0, 0.05);
}

.cd-timeline-img img {
    display: block;
    position: relative;
    width: 16px;
    height: 16px;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
}
.cd-timeline-img.cd-picture {
    background: white;
}

@media only screen and (min-width: 1025px) {
    .cd-timeline-img {
        left: 50%;
        margin-left: -20px;
        width: 40px;
        height: 40px;
        /* Force Hardware Acceleration in WebKit */
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }

    .cd-timeline-img img {
        width: 20px;
        height: 20px;
        margin-left: -10px;
        margin-top: -10px;
    }
}

.cd-timeline-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-left: 60px;
    background: white;
    border-radius: 0.25rem;
    padding: var(--s-spacing);
    box-shadow: var(--box-shadow);
}

.cd-timeline-content::after {
    clear: both;
    content: "";
    display: table;
}

.cd-timeline-content h3 {
    font-size: var(--bigtext);
    font-weight: var(--light);
    color: black;
}

.cd-timeline-content p, .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
}

.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    display: inline-block;
}

.cd-timeline-content p {
    margin: 1rem 0;
    line-height: 1.3;
}

.cd-timeline-content .cd-read-more {
    float: right;
}

.cd-timeline-content .cd-date {
    float: left;
    padding: 0.8em 0;
    opacity: 0.85;
}

.cd-timeline-content::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid white;
}

.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
}

@media only screen and (min-width: 768px) {
    .cd-timeline-content h2 {
        font-size: 20px;
        font-size: 1.25rem;
    }

    .cd-timeline-content p {
        font-size: 16px;
        font-size: 1rem;
    }

    .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
        font-size: 14px;
        font-size: 0.875rem;
    }
}

@media only screen and (min-width: 1025px) {
    .cd-timeline-content {
        margin-left: 0;
        padding: 1.6rem;
        width: 45%;
    }

    .cd-timeline-content::before {
        top: 24px;
        left: 100%;
        border-color: transparent;
        border-left-color: white;
    }

    .cd-timeline-content .cd-read-more {
        float: left;
    }

    .cd-timeline-content .cd-date {
        position: absolute;
        width: 100%;
        left: 122%;
        top: 6px;
        font-size: 16px;
        font-size: 1rem;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content {
        float: right;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
        top: 24px;
        left: auto;
        right: 100%;
        border-color: transparent;
        border-right-color: white;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
        float: left;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
        left: auto;
        right: 122%;
        text-align: right;
    }
}