/*// General //*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

body {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    min-height: 100vh;
    font-family: 'Ubuntu', 'Arial', sans-serif;
    font-weight: 300;
}

h1 { font-size: 2em; }

h2 { font-size: 1em; }

img {
    max-width: 100%;
    height: auto;
}






/*// Header //*/

header {
    width: 100%;
    background-color: deepskyblue;
    color: #fff;
    padding: .75em 1em;
}

#nombre {
    display: inline-block;
    font-family: 'Anonymous Pro', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
} 
    
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: wrap;
}    
    
nav ul {
    display: flex;
}

nav ul li,
nav ul span {
    display: inline-block;
    padding-left: 2em;
}

nav ul li a {
    color: #fff;
    font-family: 'Anonymous Pro', 'Arial', sans-serif;
    font-size: 1em;
    transition: all .25s ease;
}

nav ul li a:hover {
    color: dodgerblue;
}






/*// Contenido //*/

main {
    display: flex;
    flex-flow:row wrap;
    align-items: center;
    flex: 1;
    height: 100%;
    flex-grow: 1;
}


.contenedor {
    display: flex;
    flex-direction: row wrap;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: center;
}



/*// Foto e introducción //*/

.principal {
    display: flex;
    flex-flow:column;
    flex-grow: 1;
    align-items: center;
}

.informacion {
    display: flex;
    width: 100%;
    padding: 1em;
    font-size-adjust: auto;
    text-align: center;
    background-color: skyblue;
    flex-grow: 1;
    justify-content: center;
} 


.informacion p {
    max-width: 23em;
} 







/*// Datos académicos y hobbies //*/

.centro {
    display: flex;
    flex-flow: row wrap;
    flex-grow: 1;
    background-color: #fff;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

.contcentro {
    display: flex;
    flex-wrap: wrap;
}

.academico{
    padding:20px;
}

.academico h1{
    padding: .2em;
}

.academico ul li{
    padding-left: .5em;
}

.hobbies{
    padding:20px;
}

.hobbies h1{
    padding: .2em;
}

.hobbies ul li{
    padding-left: .5em;
}






/*// Propuesta app y Contacto //*/

.derecha {
    display: flex;
    flex-direction:  column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    background-color:  skyblue;
    color:white;
    padding: 1em;
   }

.app {
    padding: 20px;
}

.app ul {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
}

.app ul li a {
    color: #fff;
}

.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.contacto ul span {
    padding-left: 10px;
    padding-right: 10px;
}

.contacto ul {
    display: flex;  
    padding-top: 15px;
    }

.contacto ul li a {
    color: #fff;
}






/*// datos//*/

.datos { 
    display: flex;
    flex-direction:  column;
    flex-grow: 1;
    align-items: center;
    background-color:  #fff; 
    padding: 20px;
}

.subseccion {
    padding-top: 20px;
}

.subseccion h3 a {
    color: dodgerblue;
}

.subseccion p span {
    text-transform: uppercase;
}




/*// Menú //*/

#menu-toggle {display: none;}

.hamburger-toggle {display: none;}

@media screen and (max-width: 860px) {
    
    #nombre {
    font-size: 1.5em;
}
    
    nav ul {
        display: block;
        max-height: 0;
        width: 100vw;
        overflow: hidden;
        text-align: center;
        transition: max-height .25s ease-in, padding-top .5s ease;
    }
    
    nav ul li {
        display: block;
        padding: 1em 0;
    }
    
    nav ul span {
        display: none;
    }
    
    #menu-toggle:checked ~ ul {
        max-height: 720px;
        padding-top: .75em;
    }
    
    .hamburger-toggle {
      background: linear-gradient(to bottom, deepskyblue 0%, #fff 12%, transparent 12%, transparent 44%, #fff 44%, deepskyblue 56%, transparent 56%, transparent 88%, #fff 88%, deepskyblue 100%); /*Lineas botón*/
      cursor: pointer;
      display: block;
      float: right;
      height: 1.25em;
      width: 1.25em;
    }
    
    header {
        display: block;
    }
}






/*// footer //*/

footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: deepskyblue;
    color: #fff;
    padding: 0 1em;
}

footer p {
    display: flex;
    flex: 1 60%;
}

footer p,
footer div {
    padding: .75em 0;
}

.footer-links {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;    
    width: 320px;
    margin: 0 auto;
}

.footer-links img {
    height: 48px;
    filter: invert(100%) hue-rotate(180deg);
}

footer p { font-size: .8em; }
