@charset "utf-8";
@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,700,500,900);
*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
    font-family: Roboto;
}

nav{
    background-color: dimgrey;
}

nav ul li{
    text-align: center;
    list-style: none;
    margin: 0 auto;
    display: inline-block;
    width: 15%;
}

nav ul li a{
    display: block;
    color: aliceblue;
    padding: 1em;
    line-height: 2em;
    text-decoration: none;
}
nav ul li a:hover{
    background-color: #403b3b;
    font-weight: 900;
}
.contenedor{
    width: 60%;
    margin: 0 auto;
    padding: 1em 0;
    text-align: left;
}
img{
    margin-bottom: 1em;
}
h2{
    font-size: 1.7em;
    font-weight: 900;
    line-height: 1.2em;
    margin-bottom: .5em;
    color: #fff
}
#fadu{
    background-color: #faba00;
}
#fadu h3{
    margin-bottom: .5em;
    font-size: 1.25em;
    line-height: 1em
}
#fadu h4{
    font-weight: 100;
    color:#fff;
}
#fadu .info img{
    width: 150px;
    margin: 10px auto;
}
#yo{
    background-color: #f29400;
}
#yo img{
    border-radius: 50%;
}

#edad{
    font-weight: 900;
    margin-bottom: .3em;
}
#yo a{
    margin-bottom: 2em;
    text-decoration: none;
}
#yo a:hover{
    font-weight: 700;
    color:#fff;
}
#yo .info{
    margin-top: 25px;
}
#yo .info h3{
    color: #fff;
}
#yo .info ul li{
    list-style: none;
    
}

#materias{
    background-color: #ea690a;
}
#materias .individual{
    margin-top: 20px;
}
#materias .individual h3{
    color: #fff;
}

#materias img{
    border-radius: 50%;
}
#materias ul{
    margin: .5em 0;
/*    list-style: none;*/
    text-align: left;
}
#materias ul li{
    list-style: none;
    margin-bottom: .2em;
}
footer{
    background-color: dimgrey;
    padding: 1em;
}

@media only screen and (min-width: 768px){
    main{
        height: 100%;
    }
    #fadu, #yo, #materias{
        height: 803px;
        width: 33.3%;
        float: left;
    }
    .contenedor{
        width: 80%;
    }
    .contenedor img{
        width: 100%;
    }
    footer{
        clear: both;
        position: fixed;
        bottom: 0;
    }
}

@media only screen and (min-width: 960px){
    main{
        height: 100%;
    }
    nav{
        width: 10%;
        height: 888px;
        max-width: 300px;
        float: left;
    }
    nav ul{
        margin-left:0 auto;
    }
    nav ul li{
        width: 100%;
        display: block;
        margin:0 auto;
        text-align: left;
    }
    main section{
        -webkit-flex: 1; /* Safari 6.1+ */
        -ms-flex: 1; /* IE 10 */ 
        flex: 1;
    }
    #fadu, #yo, #materias{
        width: 30%;
        height: 888px;
        float: left;
    }
    .contenedor{
        width: 70%;
    }
    .contenedor img{
        width: 100%;
    }
    footer{
        clear: both;
        position: fixed;
        bottom: 0;
    }
}