*{
    --pico-primary: #DCDCDC;
}

/* Loader */
.loader .door-left, .loader .door-right {
    position: absolute;
    width: 50vw; /* Cada puerta ocupará la mitad del ancho del contenedor */
    height: 100vh;
     /* Color de las puertas */
    z-index: 9000;
    top: 0;
}

.loader{
    position: fixed;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.loader .door-left {
    left: 0;
    animation: open-left-door 2s ease forwards;
    animation-delay: 2.5s;
    background: repeating-linear-gradient(
            45deg, /* Ángulo de las líneas */
            rgba(15, 17, 20, 1), /* Color inicial (fondo oscuro) */
            rgba(15, 17, 20, 1) 40px, /* Longitud de la parte inicial (oscura) */
            rgb(24, 28, 32) 40px, /* Color de la línea (roja) */
            rgb(24, 28, 32) 80px /* Longitud de la parte coloreada (roja) */
    );
    background-size: auto 100%;
    border-right: 10px solid rgb(35, 38, 44);
    pointer-events: all;
}

.loader .door-right {
    right: 0;
    animation: open-right-door 2s ease forwards;
    animation-delay: 2.5s;
    background: repeating-linear-gradient(
            -45deg, /* Ángulo de las líneas */
            rgba(15, 17, 20, 1), /* Color inicial (fondo oscuro) */
            rgba(15, 17, 20, 1) 40px, /* Longitud de la parte inicial (oscura) */
            rgb(24, 28, 32) 40px, /* Color de la línea (roja) */
            rgb(24, 28, 32) 80px /* Longitud de la parte coloreada (roja) */
    );
    background-size: auto 100%;
    border-left: 10px solid rgb(35, 38, 44);
    pointer-events: all;

}

.loader .gear-lock{
    position: absolute;
    padding: 3vh;
    height: 54vh;
    width: 35vh !important;
    max-width: none !important;
    border-radius: 2vh;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
}

.loader .door-right .gear-lock{
    left: calc(-17.5vh - 10px);
    top: 27vh;
    background-color: rgb(41, 44, 55);
}

.loader .door-left .gear-lock{
    right: calc(-17.5vh - 10px);
    top: 27vh;
    background-color: rgb(30, 33, 41);

}

.gear-1{
    position: absolute;
    width: 20vh;
    left: 3vh;
    top: 3vh;
    animation: spin 0.75s linear forwards;
}

.gear-2{
    position: absolute;
    width: 15vh;
    right: 3vh;
    top: 21vh;
    animation: spin2 0.75s linear forwards;
    animation-delay: 0.75s;
}

.gear-3{
    position: absolute;
    width: 18vh;
    left: 3vh;
    bottom: 3vh;
    animation: spin 0.75s linear forwards;
    animation-delay: 1.5s;
}

.gear-white {
    filter: invert(100%) brightness(2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.gear-dark {
    filter: invert(100%) brightness(0) drop-shadow(0 0 20px rgb(17, 16, 19));
}

@keyframes fade-out {
    0% {
        visibility: visible; /* Agregar visibility hidden */
    }
    100% {
        visibility: hidden; /* Agregar visibility hidden */
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin2 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes open-left-door {
    0% {
        transform: translateX(0); /* Comienza en su lugar original */
    }
    5%{
        box-shadow: 10px 0 45px 0 rgba(0,0,0,0.75);
    }
    35% {
        transform: translateX(-5vw); /* Comienza en su lugar original */
    }
    40% {
        transform: translateX(-5vw); /* Comienza en su lugar original */
    }
    100% {
        transform: translateX(-100vw); /* Se mueve hacia la izquierda */
    }
}

@keyframes open-right-door {
    0% {
        transform: translateX(0); /* Comienza en su lugar original */
    }
    5%{
        box-shadow: -10px 0 45px 0 rgba(0,0,0,0.75);
    }
    35% {
        transform: translateX(5vw); /* Comienza en su lugar original */
    }
    40% {
        transform: translateX(5vw); /* Comienza en su lugar original */
    }
    100% {
        transform: translateX(100vw); /* Se mueve hacia la derecha */
    }
}

/* Lang */
html[lang="en"] {
    *[data-lang]:not([data-lang="en"]) {
        display: none;
    }
    *[data-lang="en"]{
        display: block;
    }

    .timeline-item::after {
        content: attr(data-date-en);
    }
}

html[lang="es"] {
    *[data-lang]:not([data-lang="es"]) {
        display: none;
    }

    *[data-lang="es"]{
        display: block;
    }

    .timeline-item::after {
        content: attr(data-date-es);
    }
}

.lang-div{
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 3px;
    width: 100px;
    background-color: #081a3c;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
}

.flag{
    width:35px;
    height:20px;
    cursor: pointer;
}


a{
    text-decoration: none;
}

.social-icon{
    height: 35px !important;
    margin-right: 10px;
    filter: brightness(0) saturate(1000%) invert(1) brightness(2);
}


#logo-div{
    width: 100px;
}

#logo{
    height: 100px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.title, .subtitle{
    text-shadow: black 2px 5px;
    text-align: center;
}

h3{
    text-shadow: black 2px 5px;
}

.title{
    margin-bottom: 0;
}

.subtitle{
    color:var(--pico-primary-background);
    font-size: 25px;
    margin-bottom: 40px;
}

.company-logo{
    filter: brightness(0) saturate(1000%) invert(1) brightness(2);
    max-height: 60px;
}

.description{
    font-size: 80%;
}

.badge-list{
    font-size: 90%;
    margin-right: 10px;
    line-height: calc(90% + 20px);
}

.color-primary{
    color: var(--pico-primary-background);
}

.badge{
    background-color: var(--pico-primary-background);
    padding: 5px;
    white-space: nowrap;
    border-radius: 5px;
}

.social-link{
    display: inline;
    white-space: nowrap;
    font-size: 20px;
    margin-left: 15px;
    text-decoration: none !important;
}

.ws-nw{
    white-space: nowrap;
}

.icons-div{
    margin-bottom: 50px;
}


body > main{
    min-height: calc(100vh);
}

.w-100{
    width: 100%;
}

.w-50{
    width: 50%;
}

.mt-10{
    margin-top: 10px;
}

.mt-40{
    margin-top: 40px;
}

.pl-10{
    padding-left: 10px;
}

.pr-20{
    padding-right: 10px !important;
}

body > footer{
    height: 100px;
    text-align: center;
    bottom: 20px;
    width: 100%;
}

#submit-button{
    width: 100px;
}

body{
    background: linear-gradient(to bottom,
        var(--pico-background-color),
        var(--pico-background-color) calc(640px + 200px),
    #0e2c65
    )
;
    background-size: cover;
}

article{
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
}

.text-center{
    text-align: center;
}

.text-end{
    text-align: end;
}

.icon-text{
    font-size: 15px;
}

.nav-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}



/* Profile */
#profile-photo{
    overflow: hidden;
    width: 700px;
    height: 640px;
    background: linear-gradient(to right, rgba(15, 17, 20, 0) 50%, var(--pico-background-color) 90%),
    url('./../img/bg/profile-photo-2.png');
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
    box-shadow: -50px 0px 20px 0px rgba(0,0,0,0.75);
}

.mobile{
    display: none;
}

.z-index-50{
    z-index: 50;
}


/* Timeline */
.timeline-container {
    max-width: 100%;
    .inner-container {
        max-width: 1000px;
        margin: 0 auto;

    }
}

.timeline {
    margin: 0 auto;
    position: relative;
    left: 120px;
    max-width: 70%;
    margin-top: 16px;
    margin-left: 5%;
}

.timeline-item {
    color: #ffffff;
    text-align: center;
    padding: 1rem 1.5rem 1rem 1.5rem;
    border-left: 4px solid #fff;
    border-bottom: 1px solid #ffffff;
    position: relative;
    list-style-type: none;
    --item-width: calc(100%);

    &::after {
        content: attr(data-date);
        position: absolute;
        right: calc(var(--item-width) + 40px);
        top: 16px;
        float: right;
        font-weight: bold;;
        white-space: nowrap;
    }

    &::before {
        content: "";
        border-radius: 50%;
        width: 16px;
        height: 16px;
        background-color: #fff;
        position: absolute;
        left: -10px;
        top: 21px;
    }

    &:last-child {
        border-bottom: none;
    }
}

@media only screen and (max-width: 800px) {


    .timeline {
        margin: 0 auto;
        position: relative;
        width: 100vw;
        margin-left: 60px;
        max-width: calc(100% - 60px);
        margin-right: 0 !important;
        left: 0;

        .timeline-item {

            &::after {
                right: calc(var(--item-width) + 30px);
                white-space: normal;
            }
        }
    }
}

@media only screen and (max-width: 800px) {
    .timeline-item {
        padding: 1rem 1.5rem 1rem 0.5rem;

        &::after {
            right: calc(var(--item-width) + 20px);
        }
    }
}

/* MEDIA QUERYS */
@media (max-width: 1535px){
    /* Profile */
    #profile-photo{
        width: 600px;
        z-index: 1 !important;
    }
}

@media (max-width: 1279px){
    /* Profile */
    #profile-photo{
        width: 500px;
        z-index: 1 !important;
        background-position: center;
    }
}

@media (max-width: 1023px){
    /* Profile */
    #profile-photo{
        width: 370px;
    }
}

@media (max-width: 767px){
    #profile-photo{
        width: 100%;
        background: linear-gradient(to bottom, rgba(15, 17, 20, 0) 50%, var(--pico-background-color) 90%),
        url('./../img/bg/profile-photo-2.png');
        background-position: center;
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        box-shadow: 0 -20px 7px 0px rgba(0,0,0,0.75);
    }

    .mobile{
        display: block;
    }

    .desktop{
        display: none;
    }

}

@media (max-width: 575px){
    .social-link{
        margin-left: 0;
    }

    .social-link .social-text{
        display: none !important;
    }

    #logo{
        height: 80px;
    }


}