/*
los utilizados{
    font-family: 'Montserrat', sans-serif;
    font-family: 'Work Sans', sans-serif;
}

*/

html{
    /* hace un desplazamiento suave */
    scroll-behavior: smooth;
}

body{
    background-color: #ECEEF5;
    margin: 0;
    color: white;
    /*box-sizing: border-box;*/
}
body::-webkit-scrollbar {
    background-color: #cfd5e5;
}
  
body::-webkit-scrollbar-thumb {
    background-color: #007979;
    background-color: #000000;
    border: 1px solid #9e6c0e;
    border-radius: 25px;
}
  
body::-webkit-scrollbar-track {
    background-color: #d6d6d6;
    border-radius: 25px;
}
  
body::-webkit-scrollbar-track:hover {
    background-color: #dadada;
    border-radius: 5px;
}

p{
    font-family: 'Work Sans', sans-serif;
}
figure{
    margin: 0;
}
h4,
h5{
    margin: 0;
}
strong{
    font-weight: 500;
}

/* Estilos Comparidos*/
.portfolio__h2,
.about-me__h2,
.studies__h2{
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}




.nav{
    background: linear-gradient( rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    /*font-family: 'Oxanium', sans-serif;*/
    font-family: 'Work Sans', sans-serif;
    /* font-size: 18px; */
    font-size: 1em;
    font-weight: 400;
    z-index: 20;
    
    /*margin-bottom: -70px;*/
}
.nav__ul{
    /* min-width: 600px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;

    /* height: inherit; */
}
.nav__li{
    list-style: none;
    height: 50px;
}
.nav__li--focused{
    background-color: #3c72ef8c;
    transition: background-color 0.5s ease 0s;
}
.nav__li--focused:hover{
    background-color: #3c72ef00;
    transition: background-color 0.5s ease 0s;
}

.nav__img{
    /*height: 80px;*/
    height: 30px;
    transform: scale(1);
    transition: transform 0.5s ease 0s;
}
.nav__img:hover{
    /*height: 80px;*/
    transform: scale(1.1);
    transition: transform 0.5s ease 0s;
}


.nav__a{
    text-decoration: none;
    color: #ccc;
    background-color: rgba(70, 70, 70, 0.0);
    display: flex;
    align-items: center;
    padding: 0px 20px;
    min-width: 100px;
    display: flex;
    justify-content: center;
    transform: scale(1);
    transition: transform 0.5s ease 0s;

    height: inherit;
}
.nav__a:hover{
    color: white;
    background-color: #4c5769cc;
    /*background: linear-gradient( #3c72ef55, #eea31600);;
    /* property   duration   timing-function   delay*/
    transition: background-color 0.5s ease 0s;
    /*   keyframe-name time  mode*/
    transform: scale(1.2);
    animation: mykey 0.3s ease;
}
@keyframes mykey{
    0% {transform: scale(1);}
    40%{transform: scale(0.95);}
    100%{transform: scale(1.2);}
}

.header{
    background-color: rgba(0, 0, 0, 0.75);
    /* height: 600px; */
    height: 99vh; /*99% del viewport height*/
    min-height: 300px;
    overflow: hidden;
    font-size: 16px;
    margin-top: -70px;
    position: relative;
    border-bottom: 10px solid #00a0a0d8;
}
.header__figure{
    margin: 0;
    position: absolute;
    z-index: -10;
    height: inherit;
}
.header__img{
    object-fit: cover;
    object-position: top center;
    /* width: inherit; */
    width: 100vw;
    height: inherit;
    mask-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 1));
}
.header__hero{
    position: absolute;
    color: white;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    /*background-color: rgba(155, 25, 30, 0.5);*/
}

.container{
    /*width: 1000px;*/
    /* min-width: 1000px; */
    max-width: 1200px;
    margin: 0 auto;
}

.hero__h1{
    
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 400;
}

.hero__p{
    font-family: 'Work Sans', sans-serif;
    font-size: 1.25em;
}
.hero__strong{
    /*color: #00c0c0d8;*/
    color: #3c72ef;
    transition: color 0.3s ease 0s;
    
}
.hero__strong:hover{
    /*color: #00c0c0;*/
    color: #c68712;
    transition: color 0.3s ease 0s;
}


/*--------------------------------------------------------------*/

.portfolio{
    width: 100%;
    color: #292f39;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    padding-top: 50px;
    padding-bottom: 50px;
}
.portfolio__area{
    /* margin-left: 50px;
    margin-right: 50px; */
    margin: 0 auto;
    padding: 0 8%;
}

.portfolio__h2{
    color: #008080;
    font-size: 1.3em;
}
.portfolio__description{
    font-weight: 390;
    font-size: 1.1em;
}

.project{
    background-color: #f7f7ff;
    min-height: 400px;
    margin-top: 30px;
    display: flex;
    border-radius: 20px;
    font-size: 16px;
    overflow: hidden;
    box-shadow: 6px 6px 6px 3px rgba(0, 0, 0, 0.2);
}
.project__details{
    background-image: url(https://dl.dropboxusercontent.com/s/9hwnlx3cdu5v79z/lineas_de_puntos.svg);
    background-size: cover;
    background-position: right 0px bottom 0px;
    /* background-position: right 0px top -10px; */
    background-repeat: no-repeat;
    width: 50%;
    /* min-width: 275px;
    max-width: 400px; */
    /* margin: 30px 50px; */
    margin: 3% 5%;
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.project__name{
    color: #3c72ef;
    font-size: 1.2em;
}
.project__date{
    color: #919191;
    font-size: 0.75em;
}
.project__description{
    /* text-align: justify; */
    font-size: 1em;
    font-weight: 390;
    color: black;
}
.project__link{
    background-color: #f7f7ffea;
    text-decoration: none;
    font-size: 1em;
    color: #007979;
    border: 1px solid #0079792d;
    font-weight: 500;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1);
    transition: transform 0.5s ease 0s, color 0.5s ease 0s;
}
.project__link:hover{
    transform: scale(1.1);
    transition: transform 0.5s ease 0s, background-color 0.5s ease 0s;
    color: white;
    border-radius: 5px;
    background-color: #eea316;
}

.project__photo{
    width: 50%;
    /* min-width: 275px;
    max-width: 400px; */
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project__figure{
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
}
.project__img{
    object-fit: cover;
    min-height: 400px;
    width: 100%;
    height: auto;
    position: relative;
    /*border-radius: 20px;*/
    z-index: 0;
}

.project__figcaption{
    position: relative;
    font-size: 0.8em;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    top: -200px;
    margin-bottom: -200px;
    color: #cfd5e5;
    box-sizing: border-box;
    height: 200px;
    padding-left: 20px;
    padding-bottom: 50px;/*
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    */
    background: linear-gradient( rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
}

/* -----------------------------------------------------------------------------*/

.about-me{
    background-color: #007979;
    background-color: #284c9f;
    background-image: url(https://dl.dropboxusercontent.com/s/nphzds885ryx26q/lineas_de_fondo_hexagonos.svg);
    background-size: cover;
    background-position: right 0px bottom 0px;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    color: #f7f7ff;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 390;
    padding-top: 50px;
    line-height: 25px;
    padding-bottom: 50px;
    transform: skewY(1.5deg);
    border-radius: 10px;
    box-shadow: 6px 6px 6px 3px rgba(0, 0, 0, 0.2);
}

.about-me__area{
    /*margin-left: 50px;
    margin-right: 50px;*/
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    transform: skewY(-1.5deg);
    border: 2px solid rgba(255, 255, 255, 0.171);
    padding: 60px 10px;
}
.about-me__h2{
    color: #eea316;
    font-size: 1.5em;
}
.about-me__description{
    max-width: 700px;
    font-size: 1em;
    font-weight: 390;
    /* text-align: justify; */
    text-align: left;
    padding: 5px 20px;
}
.about-me__figure{
    /*background: linear-gradient(90deg, rgba(189,0,0,1) 0%, rgba(204,116,72,1) 47%, rgba(0,121,121,1) 100%);
    */
    /* min-height: 300px; */
    width: 300px;
    
}
.about-me__img{
    /* min-width: 300px; */
    width: inherit;
    height: inherit;
    object-fit: cover;
    border-left-width: 5px ;
    border-left-style: solid;
    border-bottom: 5px solid white;
}


/* ---------------------------------------------------------------------------------------------------------*/


.studies{
    color: #3e4756;
    font-size: 16px;
    padding-top: 50px;
    padding-bottom: 50px;
}


.studies__area{
    /* margin-left: 50px;
    margin-right: 50px; */
    margin: 0 auto;
    padding: 0 8%;
}
.studies__h2{
    color: #008080;
}
.studies__description{
    width: 100%;
    font-size: 1.1em;
    font-weight: 390;
    color: black;
}

.studies__container{
    margin-top: 25px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card1{
    background-color: #f7f7ff;
    width: 300px;
    height: 350px;
    margin: 20px auto;/* En caso de problemas quitar el auto*/
    font-size: 16px;
    border-radius: 20px;
    box-shadow: 6px 6px 6px 3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* box-sizing: border-box; */
    transform: scale(0.95);
    transition: transform 0.3s ease 0s, height 0.5s ease 0s, width 0.5s ease 0s;
}
.card1:hover{
    transform: scale(1);
    transition: transform 0.3s ease 0s;
}

.card1__figure{
    height: 130px;
    position: relative;
    overflow: hidden;
    
    transition: transform 0.3s ease 0s, height 0.5s ease 0s, width 0.5s ease 0s;
}
.card1__figcaption{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 20;
}
.card1__h5{
    background: linear-gradient( rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    height: 130px;
    width: 300px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.2em;
    color: white;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 2px #000000, 3px 3px 2px #000000, 4px 4px 2px #000000,-3px -3px 4px #000000 ;
    /*text-shadow: 0 0 3px #000000, 0 0 5px #000000;*/
    box-sizing: border-box;

    transition: transform 0.5s ease 0s, height 0.5s ease 0s, width 0.5s ease 0s;
}
.card1__img{
    width: 100%;
    /* position: relative; */
    object-fit: cover;
    /* z-index: 10; */
    object-position: center center;
    /* transform: translatey(-25%); */
}
.card1__details{
    width: 300px;
    height: 200px;
    padding: 10px 10px 5px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.card1__title{
    width: 200px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #3c72ef;
}

.card1__description{
    font-size: 0.9em;
    margin: 3px 15px;
    color: #3e4756;
}
.card1__p{
    margin: 5px;
}
.card1__date{
    margin-right: 11px;
    color: #929292;
    font-style: italic;
}
.card1__tags{
    color: #929292;
    font-style: italic;
}

/*------------------------------------------------------------------------*/

.contact-me{
    background-color: #007979;
    color: #f7f7ff;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    padding-top: 50px;
    padding-bottom: 50px;
    transform: skewY(-1.5deg);
    border-top-left-radius: 10px;
    border-top-right-radius: 10;
    /*box-shadow: 6px 6px 6px 3px rgba(0, 0, 0, 0.2);*/
}
.contact-me__area{
    transform: skewY(1.5deg);
}
.contact-me__social-media-list{
    display: flex;
    /* flex-flow: wrap; */
    flex-wrap: wrap;
    justify-content: center;
}
.contact-me__social-media{
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-top: 30px;
    /* width: 170px; */ /*lo pondré en media query*/
}
.contact-me__net-icon{
    height: 30px;
    margin-right: 10px;
    filter: invert(0.1) sepia(1) hue-rotate(180deg) saturate(100%);
}
.contact-me__info{
    color: #eceef5;
    font-size: 0.9em;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
}
.contact-me__info:hover{
    /*color: rgb(255, 0, 0);*/
    color: #eea316;
    text-decoration: underline ;
}

/********************************************************************************/

.footer{
    background-color: #007979;
    color: #f7f7ff;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    margin-top: -60px;
    padding-top: 100px;
    padding-bottom: 20px;

}
.footer__area{
    text-align: center;
    /* width: 700px; */
    margin: 0 auto;
    padding: 0 20px;
}
.footer__p{
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8em;
    color: #c5c5c5;
    background-color: #007979;
    display: inline;
    border-radius: 10px;
}


/**---------------------------------------*/
/* animacion de carga tomada de https://loading.io/css */

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
  }
  .lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #00000055;
    border-color: #00000055 transparent #00000055 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
  }
  @keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
    /*
    <div class="lds-dual-ring"></div>
    */
/* animacion sacada */


/*
transform: skewY(20deg):
*/


/*
colores usados:
rgba(0, 192, 192, 0.849)
rgba(0, 139, 139, 0.849)
*/



/************************************** Utilizando media queries *******************************/

/*@media screen and (max-width: 1024px){}*/

/* @media screen and (max-width: 999px){ */
@media screen and (max-width: 1023px){
    
    .nav{
        height: 40px;
    }

    .nav__figure{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }
    .nav__ul{
        background: linear-gradient( rgba(24, 24, 24, 0.15) 0%, rgba(255, 255, 255, 0.01) 100%);
        border-radius: 15px;
    }
    .nav__a{
        color: #ccc
    }

    .header{
        margin-top: -40px;
        min-height: 50vw;/* para evitar pequñas pantallas en landscape*/
    }
    .header__img{
        min-height: 50vw;/* para evitar pequñas pantallas en landscape*/
    }

}

/* @media screen and (max-width: 768px){ */
@media screen and (max-width: 767px){
    
    .nav{
        
        height: auto;
    }
    .nav__ul{
        width: 100%;
        justify-content: space-around;
        height: 30px;
    }
    .nav__li{
        flex-grow: 1;
    }
    .nav__a{
        font-size: 15px;
        padding: 0px 10px;
        min-width: 10px;
    }
    .nav__a:hover{
        transform: scale(1);
        animation: mykey 0.3s ease;
    }
    @keyframes mykey{
        0% {transform: scale(1);}
        40%{transform: scale(0.90);}
        100%{transform: scale(1);}
    }

    .header{
        /* margin-top: -140px; */
        margin-top: -80px;
        min-height: 70vw;/* para evitar pequñas pantallas en landscape*/
        font-size: 13px;
    }
    .header__img{
        min-height: 70vw;/* para evitar pequñas pantallas en landscape*/
    }
    .portfolio{
        font-size: 14px;
    }
    .project{
        flex-wrap: wrap-reverse;
        justify-content: center;
        font-size: 14px;
    }
    .project__details{
        width: 100%;
    }
    .project__name{
        margin: 5px 0;
    }
    .project__info{
        margin: 0;
    }
    .project__photo{
        width: 100%;
        box-shadow: 5px 34px 40px -40px #000000;
    }
    .project__figure{
        width: inherit;
    }
    .project__img{
        object-fit: cover;
        max-width: 100%;
        min-height: 200px;
        max-height: 300px;
    }
    .studies{
        font-size: 14px;
    }
}


/* @media screen and (max-width: 480px){} */
@media screen and (max-width: 480px){
    .nav{
        flex-flow: column;
        justify-content: center;
        height: 200px;
    }
    .nav__ul{
        flex-flow: column;/* 
        margin-top: 240px; */
        flex-grow: 45;
    }
    .nav__li{
        border-bottom: 1px solid #ffffff31;
        margin: 0; 
        display: flex;
        justify-content: center;
        height: 20px;
        width: 100%;
    }
    .nav__a{
        height: 100%;
        width: 100%;
    }
    .nav__a:hover{
        width: 90%;
    }
    .nav__figure{
        margin: 0;
        width: 100%;
        flex-grow: 1;
        background-color: #060810;
    }
    .header{
        margin-top: -165px;
        height: 85vh;
    }
    .header__hero{
        width: 80%;
        top: 65%;
    }

    .header{
        min-height: 120vw;
    }
    .header__img{
        min-height: 120vw;;
    }


    .about-me__figure{
        width: 150px;
    }

    .contact-me{
        font-size: 14px;
    }
    .contact-me__social-media{
        width: 155px;
        padding-left: 10px;
        margin: 15px auto;
    }
    .footer{
        font-size: 13px;
    }
    
}

/* @media screen and (max-width: 320px){} */
@media screen and (max-width: 320px){
    .header{
        min-height: 120vw;
        font-size: 10px;
    }
    .header__img{
        min-height: 120vw;
    }
}