* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables*/
:root {
    --backgroud-extremos: #32384d;
    --color-nav: #f2f2f2;
    --segundo-color: #cc8800;
    --color-footer: #bfbfbf;
    --footer-hover: #cccccc;
    --medida-pc: 1200px;
    --medida-tablet: 768px;
    --medida-mobil1: 480px;
    --fuente-texto: 'Nunito Sans', sans-serif;
    --fuente-titulos: 'Work Sans', sans-serif;
    --size-titulos: 3.5rem;
    --size-subtitulos: 2.5rem
}

body {
    width: 100%;
    margin: auto;
}

/*************** NAV *****************************/
nav {
    padding: 2rem;
    height: 9.5rem;
    background-color: var(--backgroud-extremos);
    margin: auto;
}

.contenedor-nav {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav i {
    font-size: var(--size-subtitulos);
    color: var(--color-footer);
    display: inline-block;
    transition: transform .7s ease-in-out;
}

.logo-nav:hover i {
    transform: rotate(360deg);
    color: var(--segundo-color);
}

.nav-derecha {
    font-family: var(--fuente-texto);
    font-size: 1.2em;
}

.nav-derecha ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    gap: 4em;
}

.link-nav {
    color: var(--color-footer);
    text-decoration: none;
    transition: ease-in-out;
}

.link-nav:hover {
    color: var(--segundo-color);
    border-bottom: 2px solid var(--color-footer);
    /* border-top: 2px solid var(--segundo-color); */
}

/*************** HEADER **************************/

.main {
    width: 100%;
    height: 80vh;
    background-color: #cc8800;
    ;
    padding: 2.5rem;
}

.main h1 {
    font-size: var(--size-titulos);
    font-family: var(--fuente-titulos);
    color: var(--backgroud-extremos);
    text-align: center;
    padding-top: 1.5em;
}

.main p {
    font-size: 1.5em;
    font-family: var(--fuente-texto);
    color: var(--backgroud-extremos);
    text-align: center;
    padding-top: 1em;
}

/*************** Estilo gral secciones  **************************/

.seccion {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-footer);
    padding: 2rem 0;
}

.seccion h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--fuente-titulos);
    font-size: var(--size-titulos);
}

/* ************************ Proyectos ***********************/

.contenedor-proyectos {
    background-color: var(--backgroud-extremos);
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 2rem;
    border-radius: 30px;
    border: 2px solid var(--backgroud-extremos);
}

.proyecto-individual {
    width: 30%;
    aspect-ratio: 1 / 1;
    background-color: var(--segundo-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.img-proyecto {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
    border-bottom: 3px solid var(--backgroud-extremos);
    transition-timing-function: ease-in-out;
}

.img-proyecto:hover {
    opacity: 1;
}

.nombre-proyecto {
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    margin: 1.2rem 0 1.2rem 0;
}

.contenedor-iconos-proyectos {
    display: flex;
    gap: 2.5rem;
}

.logo-proyecto i {
    font-size: 2rem;
    color: var(--backgroud-extremos);
    display: inline-block;
    transition: transform .7s ease-in-out;
}

.logo-proyecto:hover i {
    transform: rotate(360deg);
}



/************* Seccion Sobre mi ************************/

.seccion-sobremi {
    background-color: var(--segundo-color);
}

.contenedor-sobremi {
    background-color: var(--backgroud-extremos);
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--color-footer);
}

.texto {
    width: 32%;
    font-size: 1.2rem;
    font-family: var(--fuente-titulos);
    color: #cc8800;
}

/***************** Seccion Formulario *********************************/
.seccion-formulario {
    background-color: var(--color-footer);
}

.contenedor-formulario {
    background-color: var(--color-footer);
    width: 60%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    border: 5px solid var(--segundo-color);
}

.formulario {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.formulario label {
    font-family: var(--fuente-texto);
    font-size: 1.3rem;
    color: var(--backgroud-extremos);
}

.formulario input,
.formulario textarea {
    background-color: var(--color-footer);
    border: none;
    border-bottom: 2px solid var(--segundo-color);
    margin-bottom: 2.1rem;
    padding-top: 2px;
    outline: none;
}

.formulario textarea {
    height: 150px;
}

.btn-formulario {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--backgroud-extremos);
    background: linear-gradient(90deg, #cc8800, #bfbfbf);
    background-size: 200%;
    background-position: left;
    box-shadow: 0 4px 6px -1px #0000001a,
        0 2px 4px -2px #0000001a;
    width: 90px;
    height: 50px;
    border: 2px solid var(--segundo-color);
    border-radius: 7px;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation-name: botonEnviar;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes botonEnviar {
    0% {
        background-position: left;
    }

    100% {
        background-position: right;
    }
}

.btn-formulario:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px #00000033;
    ;
}


/*****************Footer**************************************/

footer {
    padding: 2rem;
    background-color: var(--backgroud-extremos);
    width: 100%;
    height: 9.5rem;
    margin: auto;
}

.contenedor-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
}

.contenedor-footer p {
    font-family: var(--fuente-texto);
    color: var(--color-footer);
    cursor: pointer;
}

.contenedor-footer p:hover {
    color: var(--segundo-color);
    font-style: italic;
}

.contenedor-iconos {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
}

.iconos {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    display: flex;
    transition-timing-function: ease-in-out;
    font-size: 1.5rem;
    color: var(--color-footer);
}

.iconos:hover {
    background-color: var(--segundo-color);
    color: var(--backgroud-extremos);
}

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

/**************** RESPONSIVE **********************************************/


/* Tablet horizontal */
@media screen and (min-width: 768px) and (max-width: 1080px) {

    body {
        width: 100%;
        margin: 0 auto;
    }

    /*************** NAV ****************/


    .contenedor-nav {
        padding: 1rem 2rem;
    }

    .logo-nav i {
        font-size: 3.5rem;
    }

    .nav-derecha {
        font-size: 1.5em;
    }

    .nav-derecha ul {
        gap: 2em;
    }

    /*************** HEADER **************************/

    .main {
        width: 100%;
    }


    .main p {
        font-size: 2em;
        /* font-family: var(--fuente-texto);
        color: var(--backgroud-extremos);
        text-align: center;
        padding-top: 1em; */
    }

    /********* Estilo gral secciones  *******/

    .seccion {
        height: auto;
    }

    /* ************** Proyectos ****************/

    .contenedor-proyectos {
        width: 90%;
        gap: 20px;
    }

    .proyecto-individual {
        width: 45%;
    }

    .img-proyecto {
        height: 200px;
    }

    .nombre-proyecto {
        font-size: 1.5rem;
    }

    .logo-proyecto i {
        font-size: 2.5rem;
    }


    /************* Seccion Sobre mi ****************/

    .contenedor-sobremi {
        width: 90%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .texto {
        width: 80%;
        font-size: 1.8rem;
        text-align: center;
    }

    /**************** Seccion Formulario **************/

    .contenedor-formulario {
        width: 80%;
    }


    .formulario label {
        font-size: 2rem;
    }

    .formulario textarea {
        height: 200px;
    }

    .btn-formulario {
        width: 150px;
        height: 90%;
        font-size: 1.8rem;
    }


    /*****************Footer*********************/

    footer {
        height: auto;
    }

    .contenedor-footer p {
        font-size: 1.5rem;
    }

    .iconos {
        font-size: 2rem;
    }

}


/* Tablet vertical */
@media screen and (min-width: 480px) and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0 auto;
    }

    /*************** NAV ****************/


    .contenedor-nav {
        padding: 1rem 2rem;
    }

    .logo-nav i {
        font-size: 3rem;
    }

    .nav-derecha {
        font-size: 1.5em;
    }

    .nav-derecha ul {
        gap: 2em;
    }

    /*************** HEADER **************************/

    .main {
        width: 100%;
    }


    .main p {
        font-size: 1.8em;
    }

    /********* Estilo gral secciones  *******/

    .seccion {
        height: auto;
    }

    /* ************** Proyectos ****************/

    .contenedor-proyectos {
        width: 90%;
        gap: 20px;
    }

    .proyecto-individual {
        width: 45%;
    }

    .img-proyecto {
        height: 130px;
    }

    .nombre-proyecto {
        font-size: 1.2rem;
    }

    .logo-proyecto i {
        font-size: 2rem;
    }


    /************* Seccion Sobre mi ****************/

    .contenedor-sobremi {
        width: 90%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .texto {
        width: 80%;
        font-size: 1.5rem;
        text-align: center;
    }

    /**************** Seccion Formulario **************/

    .contenedor-formulario {
        width: 80%;
    }


    .formulario label {
        font-size: 1.5rem;
    }

    .formulario textarea {
        height: 200px;
    }

    .btn-formulario {
        width: 120px;
        height: 90%;
        font-size: 1.3rem;
    }


    /*****************Footer*********************/

    footer {
        height: auto;
    }

    .contenedor-footer p {
        font-size: 1.2rem;
    }

    .iconos {
        font-size: 1.5rem;
    }


}

/* Mobil1 */
@media screen and (min-width: 375px) and (max-width: 480px) {
    body {
        width: 100%;
        margin: 0 auto;
    }

    /*************** NAV ****************/

    .contenedor-nav {
        padding: 1rem;
    }

    .logo-nav i {
        display: none;
    }

    .nav-derecha {
        font-size: 1.3em;
    }

    .nav-derecha ul {
        gap: 2em;
    }

    /*************** HEADER **************************/

    .main {
        width: 100%;
        height: auto;
    }

    .main h1 {
        font-size: 1.8rem;
    }


    .main p {
        font-size: 1.3rem;
    }

    /********* Estilo gral secciones  *******/

    .seccion {
        height: auto;
    }

    .seccion h2 {
        font-size: 1.5rem;
    }

    /* ************** Proyectos ****************/

    .contenedor-proyectos {
        width: 90%;
        gap: 20px;
    }

    .proyecto-individual {
        width: 85%;
    }

    .img-proyecto {
        height: 130px;
    }

    .nombre-proyecto {
        font-size: 1.2rem;
    }

    .logo-proyecto i {
        font-size: 2rem;
    }


    /************* Seccion Sobre mi ****************/

    .contenedor-sobremi {
        width: 90%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .texto {
        width: 80%;
        font-size: 1.2rem;
        text-align: center;
    }

    /**************** Seccion Formulario **************/

    .contenedor-formulario {
        width: 80%;
    }


    .formulario label {
        font-size: 1.2rem;
    }

    .formulario textarea {
        height: 200px;
    }

    .btn-formulario {
        width: 100px;
        height: 90%;
        font-size: 1.3rem;
    }


    /*****************Footer*********************/

    footer {
        height: auto;
    }

    .contenedor-footer p {
        font-size: 1rem;
    }

    .contenedor-iconos{
        gap: 1.5rem;
    }

    .iconos {
        font-size: 1rem;
    }

}

/* Mobil 2*/
/* @media (max-width: 375px) {} */