/* Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

/* Estilos generales */

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    background-color: #fbfbfb;
    color: #0f0f0f;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

a.btn {
    background-color: #ffad64;
    color: #fbfbfb;
    padding: 2px 30px;
    margin: 30px 40px;
    border-radius: 50px;
    font-size: 20px;
    display: flex;
    justify-content: center;
}

a.btn:hover {
    background-color: #add4d3;
    transition: background-color 0.3s;
}

h1 {
    font-size:  36px;
    text-align: center;
}

h2 {
    font-size: 28px;
}

p {
    margin: 16px 0;
    text-align: center;
}

/* Responsive */
img {
    max-width: 100%;
}

/* 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 #5f5f5f;   
}

/* Boton hamburguesa */
#menu-button {
    background: transparent;
    border: 0;
    outline: 0;
    width: 40px;
    height: 40px;
}

img#close-menu {
    display: none;
}

.icon-inicio {
    width: 90px;
    height: 90px;
}

/* Menú de navegación */

nav {
    display: none;
}

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

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

li.menu-item:hover,
li.menu-item.active {
    background: #add4d3;
    transition: background-color 0.3s;
}

/* Mobile */
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%;
}

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

/* 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 {
    margin-bottom: 20px;
}

figure.presentacion-img img {
    border-radius: 50%;
    width: 400px;
}

article.presentacion {
    width: 100%;
}


/* Sección Contacto */
section#contacto p {
    text-align: center;
    max-width: 600px;
}

article.hablemos {
    background: #ffad64;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

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: #add4d3;
    transition: background-color 0.3s;
}

img.icon {
    width: 80px;
}


/* Footer */
footer {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffad64;
    color: #fbfbfb;
}

/* Desktop */

@media (min-width: 1024px) {
    h1 {
        font-size: 48px;
        text-align: left;
    }

    h2 {
        font-size: 32px;
    }

    p {
        text-align: left;
    }

    a.btn {
        padding: 0px 30px;
        margin: 0px;
        display: inline-block;
    }

    section#inicio {
        flex-direction: row;
    }

    article.presentacion {
        width: 50%;
    }

    ul#contact-links li {
        margin: 32px;
    }

    #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;
    }

}
