/* Estilo principal del proyecto */


/* Importar fuente */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.2;
    /*background-color: #fbfbfb;*/
    /*color: #0f0f0f;*/
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 16px;
    width: 100%;
    background-color: #fbfbfb;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 3px 10px -5px #5371a8;
}

.logo {
    width: 120px;
}


/* Para quitar los puntos a los items de listas */

ul {
    list-style: none;
    display: flex;
}

a {
    text-decoration: none;
    color: inherit;
    padding: 10px;
}

.boton {
    background-color: #5371a8;
    color: #fbfbfb;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 20px;
    display: inline-block;
    margin-top: 20px;
}

h1 {
    font-size: 36px;
    text-align: center;
    text-shadow: 2px 3px 4px #202020;
}

h2 {
    font-size: 28px;
}

p {
    margin: 16px 0;
}


/* Responsive */

img {
    max-width: 100%;
}

#menu-button {
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 26px;
    width: 40px;
    height: 40px;
}

img#close-menu {
    display: none;
}


/* Menú de navegación */

nav {
    display: none;
}

ul#menu {
    display: flex;
    font-size: 20px;
}

li.menu-item a {
    padding: 16px;
    display: inline-block;
}


/* Agrego estilos para el .menu-item.active */

li.menu-item:hover,
li.menu-item.active {
    background: rgba(75, 141, 161, 0.3);
    transition: background-color 0.3s;
}


/* Estilos para menu mobile */

body.mobile-menu-active {
    overflow: hidden;
}

body.mobile-menu-active img#close-menu {
    display: block;
}

body.mobile-menu-active img#open-menu {
    display: none;
}

body.mobile-menu-active header {
    height: 100vh;
    flex-wrap: wrap;
    align-items: flex-start;
    transition: height 0.3s;
}

body.mobile-menu-active nav {
    display: block;
    width: 100%;
    height: 50%;
}

body.mobile-menu-active ul#menu {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}


/* Main */

main {
    max-width: 1200px;
    margin: auto;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    min-height: 100vh;
    padding-top: 120px;
}


/* Sección Inicio */

section#inicio {
    justify-content: space-around;
    flex-direction: column;
}

figure.presentacion-img img {
    border-radius: 50%;
    border: solid#5371a8;
    width: 400px;
    margin-bottom: 60px;
}

article.presentacion {
    width: 100%;
}


/* Sección Experiencia */

section#experiencia {
    justify-content: space-around;
    flex-direction: column;
}


/* Sección Contacto */

section#contacto p {
    text-align: center;
    max-width: 600px;
}

article.hablemos {
    text-align: center;
    padding: 10px;
    background: rgba(75, 141, 161, 0.3);
    border-radius: 15px;
}

ul#contact-links {
    display: flex;
    margin-top: 20px;
}

ul#contact-links li {
    margin: 16px;
    padding: 8px;
    border-radius: 4px;
}

ul#contact-links li:hover {
    background: rgba(75, 141, 161, 0.3);
    transition: background-color 0.3s;
}

img.contacto {
    height: 80px;
    border-radius: 6px;
}


/* Footer */

footer {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5371a8;
    color: #fbfbfb;
    font-size: 16px;
}


/* Responsive para escritorio */

@media (min-width: 1024px) {
    h1 {
        font-size: 48px;
        text-align: left;
    }
    h2 {
        font-size: 32px;
    }
    section#inicio {
        flex-direction: row;
    }
    article.presentacion {
        width: 50%;
    }
    ul#contact-links li {
        margin: 32px;
    }
    /* Ajustar el menú del teléfono */
    #menu-button {
        display: none;
    }
    nav {
        display: block;
    }
    body.mobile-menu-active header {
        height: 90px;
        align-items: center;
    }
    body.mobile-menu-active nav {
        height: auto;
        width: auto;
    }
    body.mobile-menu-active ul#menu {
        flex-direction: row;
    }
}