* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: #f3f3f3;
}
/*- - - - - - - Estilos Header - - - - - - - */
header{
    width: 100%;
    background-color: rgba(0, 0, 0, 0.87);
    position: fixed;
    z-index: 1000;
}
nav{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8vh;
    font-size: 1.2rem;
}
.headerDivLinks{
    width: 33%;
}
.headerDivRedes{
    width: 33%;
}

.headerDivLogo{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33%;
}

.headerDivLogo a{
    color: #f0454b;
    font-size: 1.3em;
    font-weight: bold;
}

.headerDivLinks ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.headerDivLinks .textInicio a{
    color: #f0454b;
}

.headerDivLinks ul li a{
    color: rgb(255, 255, 255);
}

.headerDivRedes ul{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.headerDivRedes ul li{
    margin: 0 2%;
}

.headerDivRedes ul li a{
    color: rgb(255, 255, 255);
}

nav ul li a:hover{
    transition: .4s;
    color: #e33136;
}

/* - - - - - - - - - ESTILOS INICIO - - - - - - - - - - */

.sectionInicio{
    width: 100%;
    height: 100vh;
    background-image: url(./../img/fondo.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inicioCont{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.inicioCont h3{
    font-size: 1em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 2.5%;
    letter-spacing: .4em;
}

.inicioCont h1{
    font-size: 3.6em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 5%;
}

.juanText{
    font-size: 1em;
    font-weight: bold;
    color: rgb(237, 69, 69);
}

.inicioCont p{
    font-size: 1em;
    font-weight: 500;
    color: rgb(255, 255, 255);
    margin-bottom: 5%;
}

.inicioContBtn a {
    text-decoration: none;
    color: #ffffff;
}

.inicioContBtn{
    width: 200px;
    height: 50px;
    border: 3px solid #ffffff;
    border-radius: 45px;
    transition: all .4s;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.281);
    font-size: 1.2em;
    font-weight: 550;
}

.inicioContBtn:hover {
    background: #e3313763;
    font-size: 1.5em;
}

/* - - - - - - - - - ESTILOS SOBRE MI - - - - - - - - - - */

.sectionSobreMi{
    width: 100%;
    margin: 10% 0;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 25ex;
}

.sobreMiCont{
    width: 70%;
    display: flex;
    justify-content: center;
    gap: 10%;
}

.sobreMiContImg{
    background-image: url(./../img//yo.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 30%;
    border: #d7d7d7 solid 10px;
    border-radius: 10px;
}


.sobreMiContText{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tituloSobreMi{
    font-size: 1.1rem;
    color: #686868;
    text-decoration: underline #c0c0c0 5px;
    margin-bottom: 4%;
}

.saludoSobreMi{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 4%;
}

.rolSobreMi{
    font-size: .9rem;
    margin-bottom: 4%;
    color: rgba(2, 2, 2, 0.678);
}

.bioSobreMi{
    font-size: 1rem;
    margin-bottom: 6%;
    letter-spacing: .5px;
    line-height: 25px;
}
.sobreMiBtn a {
    text-decoration: none;
    color: #000000;
    font-size: .8em;
}

.sobreMiBtn{
    width: 150px;
    height: 45px;
    border: 2px solid #000000;
    border-radius: 45px;
    transition: all .4s;
    cursor: pointer;
    font-size: 1em;
    font-weight: 550;
}

/* - - - - - - - - - ESTILOS SERVICIOS - - - - - - - - - */

.sectionServicios{
    width: 100%;
    background-color: #e2e2e2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    scroll-margin-top: 5ex;
}

.tituloSectionServicios{
    font-size: 1.5rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
    margin: 6% 0 2% 0;
    text-decoration: underline #acacac 5px;
}

.serviciosCont{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 90%;
    height: 100vh;
    gap: 3.5%;
    margin-bottom: 8%;
}

.servicio{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 5%;
}

.iconServicio{
    font-size: 1.5rem;
    color: #ffffff;
    background-color: #686868;
    padding: 5%;
    border-radius: 50%;
    margin-bottom: 7%;
}

.tituloServicios{
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 7%;
}

.lineaServicios{
    width: 20%;
    height: 2px;
    background-color: #3a3a3a;
    margin-bottom: 7%;
}

.subtituloServicio{
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 7%;
    font-size: 1.2em;
}

.subtituloServicio .subMedio{
    margin: 0 5%;
}

.descripcionServicio{
    font-size: 1rem;
    letter-spacing: .5px;
    line-height: 25px;
    margin: 0 5%;
    text-align: center;
}
/* - - - - - - - - - ESTILOS HABILIDADES - - - - - - - - - -*/

.sectionHabilidades{
    padding: 5% 25%;
    height: auto;
    background-image: url(./../img/fondoHab.png);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.tituloHabilidad{
    font-size: .8rem;
    font-weight: bold;
    text-align: center;
    margin: 0 0 5% 0;
    letter-spacing: 3px;
}

.cajonHabilidades{
    width: 100%;
    margin: 5% 0;
}

.textoHabilidades{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nombreHabilidad{
    font-size: .8rem;
}


.porcenHabilidad{
    font-size: .8rem;
}


.progressBar{
    width: 100%;
}

.progressBar progress{
    width: 100%;
}

progress{
    border-radius: 10px;
    height: 10px;
}

progress[value]::-webkit-progress-bar{
    background-color: #e7b3b3;
    border-radius: 10px;
}

progress[value]::-webkit-progress-value{
    background-color: #f0454b;
    border-radius: 10px;
}


/* - - - - - - - - - ESTILOS PROYECTOS - - - - - - - - - -*/

.sectionProyectos{
    padding: 3% 10%;
}

.tituloSectionProyectos{
    font-size: 1.3rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
    margin: 5% 0;
    text-decoration: underline #acacac 5px;
}

.proyectosCont{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 5% 3%;
    margin-bottom: 8%;
}

.contImg{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 32vh;
    border:rgba(2, 2, 2, 0.678) solid 1px;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.contImg:hover{
    filter: grayscale(0%);
}

.contImg img{
    width: 100%;
    height: 100%;
}

.descProyecto{
    color: rgb(255, 255, 255);
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1% 3%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.731);
    transform: translateY(100%);
    transition: .5s;
    opacity: 0;
}

.contImg:hover .descProyecto{
    transform: translateY(0%);
    opacity: 1;
}

.descProyecto h2{
    color: #ff797e;
}
/* - - - - - - ESTILOS CONTACTO - - - - - - */

.sectionContacto{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e2e2e2;
    scroll-margin-top: 5ex;
}

.contactoCont{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 10%;
}

.tituloContacto{
    font-size: 1.2rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
    margin: 6% 0 2% 0;
    text-decoration: underline #acacac 5px;
}

.contactoForm{
    width: 100%;
}
form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 10%;
}


.nombreDireccionCont{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5%;
    gap: 3.5%;
}

.nombreInput, .correoInput{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nombreInput input, .correoInput input{
    width: 100%;
    height: 55px;
    border: 1px solid #adadad;
    border-radius: 20px;
    padding: 0 4%;
    font-size: 1rem;
    font-weight: 500;
}

.nombreInput input:focus, .correoInput input:focus, .temaCont input:focus, .mensajeCont textarea:focus{
    outline: none;
    border: 1px solid #f0454b;
}

.temaCont, .mensajeCont{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5%;
}

.temaCont input{
    width: 100%;
    height: 55px;
    border: 1px solid #adadad;
    border-radius: 20px;
    padding: 0 2%;
    font-size: 1rem;
    font-weight: 500;
}

.mensajeCont textarea{
    width: 100%;
    height: 150px;
    border: 1px solid #adadad;
    border-radius: 20px;
    padding: 2% 2%;
    font-size: 1rem;
    font-weight: 500;
}

.btnCont{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btnEnviar a {
    text-decoration: none;
    color: #000000;
}

.btnEnviar{
    width: 180px;
    height: 45px;
    border: 1px solid #adadad;
    border-radius: 45px;
    transition: all .4s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.626);
    font-size: 1em;
}

button:hover {
    background: #e3313763;
    font-size: 1.2em;
}


/* - - - - - - ESTILOS FOOTER - - - - - - */

footer{
    width: 100%;
    height: 15vh;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footerCont{
    width: 90%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.derechosCont{
    font-size: 1rem;
    color: rgb(255, 255, 255);
    padding: 1% 0;
    text-align: center;
}

.redesCont ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.redesCont ul li{
    margin: 0 5%;
}

footer ul li a:hover{
    transition: .4s;
    color: #e33136;
}

.redesCont a{
    font-size: 1.5rem;
    color: #f0f0f0;
}

/* - - - RESPONSIVE - - - */

/* Estilos para pantallas más pequeñas que 1242px */

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

    .headerDivLinks{
        width: 40%;
    }
    .headerDivRedes{
        width: 30%;
    }
    
    .headerDivLogo{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30%;
    }

    .sobreMiCont{
        width: 80%;
        display: flex;
        justify-content: center;
        gap: 7%;
    }

}

/* Estilos para pantallas más pequeñas que 1050px */

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

    nav{
        font-size: 1.1rem;
    }

    .inicioCont{
        width: 80%;
        text-align: center;
    }

    .inicioCont h3{
        font-size: .9em;
        margin-bottom: 2%;
    }

    .inicioCont h1{
        font-size: 2.9em;
        margin-bottom: 3%;
    }

    .juanText{
        font-size: .9em;
    }

    .inicioCont p{
        font-size: .95em;
        margin-bottom: 3%;
    }

    .inicioContBtn{
        width: 180px;
        height: 45px;
        font-size: .9em;
    }

    .inicioContBtn:hover{
        font-size: 1.1em;
    }

    .headerDivLinks{
        width: 50%;
    }
    .headerDivRedes{
        width: 25%;
    }
    
    .headerDivLogo{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 25%;
    }

    .sobreMiCont{
        width: 90%;
        display: flex;
        justify-content: center;
        gap: 3%;
    }

    .tituloSectionServicios{
        font-size: 1.2rem;
    }

    .serviciosCont{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 80%;
        height: auto;
        gap: 3.5%;
        margin: 3% 0 15% 0;
    }

    .servicio{
        padding: 10% 0;
    }
    

    .proyectosCont{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 2.5% 3%;
        margin: 3% 0 20% 0;
    }

    .contImg{
        height: 30vh;
    }

    .tituloContacto{
        font-size: 1rem;
        margin-bottom: 3%;
    }


    form{
        margin: 0 5%;
    }

    .nombreInput input, .correoInput input{
        height: 40px;
        font-size: .7rem;
    }

    .temaCont input{
        height: 40px;
        font-size: .7rem;
    }

    .mensajeCont textarea{
        height: 100px;
        font-size: .7rem;
    }

    .btnEnviar{
        width: 150px;
        height: 40px;
        font-size: .8em;
    }

    .btnEnviar:hover{
        font-size: 1em;
    }

    .derechosCont{
        font-size: 1.1rem;
    }

    .redesCont a{
        font-size: 1rem;
    }
}

/* Estilos para pantallas más pequeñas que 880px */

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

    nav{
        height: auto;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .headerDivLogo{
        margin: 1% 0 2% 0;
        order: 1;
        justify-content: end;
        width: 56%;
    }

    .headerDivRedes ul{
        flex-direction: row;
        justify-content: end;
    }

    .headerDivRedes{
        margin: 1% 0 2% 0;
        margin-bottom: 2vw;
        order: 1;
        width: 44%;
    }

    .headerDivLinks{
        margin-bottom: 2%;
        order: 2;
        justify-content: center;
        width: 100%;
        padding: 0 10%;
    }

    .sobreMiCont{
        flex-direction: column;
        align-items: center;

    }

    .sobreMiCont{
        margin: auto;
        width: 90%;
        height: auto;
    }

    .sobreMiContImg{
        width: 20%;
        height: 20vw;
        border-radius: 50%;
        background: url(./../img/yo2.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: #f0454b7c solid 5px;
        margin-bottom: 4vw;
    }

}

/* Estilos para pantallas más pequeñas que 780px */

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

    .headerDivLinks{
        width: 75%;
    }

    .serviciosCont{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 95%;
        gap: 3vw;
    }

    .servicio{
        padding: 10% 0;
    }

    .sectionHabilidades{
        padding: 5% 5%;
    }

    .habilidadCont{
        width: 100%;
        margin: 5% 0;
    }

    .sectionProyectos{
        padding: 3% 5%;
    }

    .proyectosCont{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        gap: 5vw;
    }

    .contImg{
        height: 50vw;
    }
    

    .contactoForm{
        width: 100%;
    }

    .nombreDireccionCont{
        flex-wrap: wrap;
        flex-direction: column;
    }

    .nombreInput{
        width: 100%;
        order: 1;
        margin-bottom: 2%;
    }

    .correoInput{
        width: 100%;
        order: 2;
    }

    .temaCont{
        width: 100%;
        order: 3;
        margin-bottom: 2%;
    }

    .mensajeCont{
        width: 100%;
        order: 4;
    }

    .btnCont{
        width: 100%;
        order: 5;
    }

}

/* Estilos para pantallas más pequeñas que 650px */

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

    nav{
        height: auto;
    }

    .headerDivLinks{
        width: 85%;
    }

    .inicioCont{
        width: 80%;
    }

    .inicioCont h3{

        margin-bottom: 2%;
    }

    .inicioCont h1{
        margin-bottom: 3%;
    }


    .inicioCont p{
        margin-bottom: 3%;
    }

    .inicioContBtn{
        border: 1px solid #ffffff;
    }

    .tituloSobreMi{
        text-align: center;
    }

    .saludoSobreMi{
        text-align: center;
    }

    .rolSobreMi{
        text-align: center;
    }


    .tituloHabilidad{
        margin-bottom: 6vw;
    }

    .inicioContBtn:hover{
        font-size: 1.2em;
    }

    

}

@media screen and (max-width: 520px){
    nav{
        height: auto;
    }

    .tituloSectionProyectos{
        margin-bottom: 6vw;
    }

    .sectionProyectos{
        padding: 3% 5%;
    }

    .tituloContacto{
        margin-bottom: 6vw;
    }

}

@media screen and (max-width: 521px){
    nav{
        height: auto;
    }
    .headerDivLinks ul{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        text-align: center;
        font-size: 1em;
    }

    .link1{
        order: 1;
        width: 50%;
        margin-bottom: 1vw;
    }

    .link2{
        order: 1;
        width: 50%;
        margin-bottom: 1vw;
    }

    .link3{
        order: 2;
        width: 33.3%;
        margin-bottom: 1vw;
    }

    .link4{
        order: 2;
        width: 33.3%;
    }

    .link5{
        order: 2;
        width: 33.3%;
    }

    .derechosCont{
        text-align: center;
    }

}