*{
    margin: 0;
    padding: 0;
    font-family: outfit;
}

body{
    /* COLORES A USAR */
    --blue: #364b8c;
    --orange: #ff9900;
    --light-blue: #7f8aba; /* Si quieres usarlos en un sitio pones var(--variable)*/
}

.header{
    container-type: inline-size;
    container-name: header;
}


.header__title-container{
    display: flex;
    height: 30dvh;
    align-items: center;
    background-image: url("FONDO.jpg");
    background-position: -100px 75px;
    background-size: 120% 30%;
    background-attachment: fixed;
}
.header__title-container::after{
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #559a;
}

.header__title-container h1{
    position: relative;
    color: #fff;
    z-index: 50;
    padding-left: 10px;
}

.main{
    container-type: inline-size;
    container-name: main;
}

.main__general-container{
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
}

.Experiencia img:nth-child(11){
    width: 170px;
}

.Experiencia img:nth-child(25){
    width: 170px;
}
.main__info-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.Experiencia {
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    animation: carousel 60s linear infinite;
    width: calc(150px * 14 * 2);
    height: 150px;
    animation-fill-mode: forwards;
    align-items: center;
}

.Experiencia img {
    flex: 0 0 auto;
    width: 120px;
    height: 100px;
    margin: 20px;
    margin-top: -15px;
    scroll-snap-align: center;
    opacity: 1.0;
}

.Experiencia::-webkit-scrollbar {
display: none;
}

.video{
    height: fit-content;
}

.video video{
    width: 100%;
    
}

.mision__vision-section{
    display: flex;
    flex-direction: column;
}


.mision__vision__container{
    display: flex;
    flex-direction: column;
    padding: 2rem;
    height: 70vh;
}

.mision__container{
    padding-top: -100px;
    margin-bottom: 8%;
}

.mision__container__title{
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
}

.mision__container__text{
    text-align: justify;
}

.vision__container__title{
    text-align: center;
    font-size: 20px ;
    margin-bottom: 10px;
}

.vision__container__text{
    text-align: justify;
}

.main__info-container p{

    text-align: justify;
}

@container header (min-width: 52rem){
    .header__title-container{
        height: calc(50dvh - 2cm);
        background-position: 0px -100px ;
        background-size: contain;
    }


    .header__title-container h1{
        font-size: 2.5rem;
        margin-left: 80px;
    }

    .header__title-container::after{
        height: 100%;
        width: 100%;
    }

    
}

@container main (min-width: 52rem){

  
    .main__general-container{
        flex-direction: row;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .main__info-container{
        width: 50dvw;
        background-color: #fff;
        padding: 2rem;
        text-align: justify;
    }

    .main__info-container h2{
        position: relative;
        top: 100px;
        opacity: 0;
        animation: view-title 1s both;
    }
    .main__info-container p{
        position: relative;
        top: 100px;
        opacity: 0;
        animation: view-title 1s both;
        animation-delay: 1s;
        text-align: justify;
    }

    .Experiencia{
        z-index: -1;
        width: 50dvw;
    }

    h2{
        font-size: 30px;
    }

    p{
        font-size: 1.1rem;
        text-align: justify;
    }

    .video{
        width: 44vw;
        position: relative;
        margin: 2rem;
        opacity: 0;
        animation: view-flex both;
        animation-timeline: view();
        animation-range: cover 10% contain 10%;
    }

    .mision__vision__container{
        display: flex;
        flex-direction: column;
        padding: 2rem;
        height: 0vh;
    }

    .mision__vision-section{
        display: flex;
        flex-direction: row;
        animation: view-flex both;
        animation-timeline: view();
        animation-range: cover 10% contain 10%;
        opacity: 0;
    }

    .mision__container__title{
        font-size: 30px;
        position: relative;
        top: 100px;
        opacity: 0;
        animation: view-title both;
        animation-timeline: view();
        animation-range: cover 10% cover 30%;
    }

    .vision__container__title{
        font-size: 30px;
        position: relative;
        top: 0px;
        opacity: 1;
    
      
    }

    .mision__vision__container{
        width: 50dvw;
    }

    .video > video{
      border-radius: 10px;
    }
}
@keyframes carousel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-150px * (14 - 1)));
    }
    
   
  }

@keyframes view-flex{
    to{
        opacity: 1;
    }
}


@keyframes view-title{
    to{
        top: 0;
        opacity: 1;
    }
}