@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
*{
    margin:0;
    padding:0;
    text-decoration: none;
}
nav {
    width: 100%;
    height: 70px;
    background:#162440;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 0 10%;
}

.titulo {
    font-size: 1.8rem;
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-left: 5%;
}

nav ul {
    list-style: none;
    margin-right: 5%;
}
nav ul li {
    display: inline-block;
    padding: 0 15px;}
nav ul li a {
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;}
nav ul li a:hover {
    color: #d92332;
}

h1{
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 4rem;
}
    
header{
    width:100%;
    height: 200px;
    background:#1c3059;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nombre {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}
    
header .perfil2 {
    border-radius: 3em;
    height: 90%;
    margin-right: 1.5rem;
}
header h2 {
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;}

header a {
    width: 40px;
}

header a img {
    border-radius: none;
}

section{
    width: 100%;
    height: 500px;
    box-sizing: border-box;
    padding: 0 10%;
    background: #f2f2f2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
article {
    box-sizing: border-box;
    width: 23%;
    min-width: 300px;
    margin: 1.5rem;
    height: 350px;
    background: #f2f2f2;
    box-shadow: 0 0 5px #000;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.materias article {
    background: #1c3059;
}

.materias article ul li, .materias article ul li a {
    color: #f2f2f2;
}

article h3 {
    color: #d92332;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    padding-bottom: 0.8rem;}  

article ul {
    padding-left: 1.4rem; }

article ul li, article ul li a {
    color: #162440;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    padding-bottom: 0.6rem;
    text-decoration: none;}
article ul li a {
    font-weight: 700;
    color: #162440;}

footer {
    box-sizing: border-box;
    padding: 0 10%;
    width: 100%;
    height: 80px;
    background: #162440;}
footer p {
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    width: 85%;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;}

.contenedor {
    width: 100%;
    height: calc(100vh - 70px);
    background: #1c3059;
    display: flex;
    justify-content: center;
    align-items: center;}
.contenedor img {height:  80%;}

.contenedor p{
    width: 50%;
    text-align: center;
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;}

.datos article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 27%;
}

.datos article a {
    text-align: center;
}

.datos article a img {
    width: 100%;
}

.datos article p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.datos article p span {
    font-weight: 700;
    margin-bottom: 1rem;
}

.datos article .dgpc {
    width: 60%;
}


@media screen and (max-width:1304px){
    section{height: auto;}
    footer {height: 100px;}
}

@media screen and (max-width:1095px){
    section{height: auto;}
    footer {height: 100px}
    .contenedor p{font-size: 1.5rem;width: 80%;}
}

@media screen and (max-width:768px){
    nav, footer {padding: 0 3%;}
    .titulo {
        font-size: 1.2rem;
        margin-left: 5%;}
    nav ul {margin-right: 2%;}
    nav ul li {padding: 0 7px;}
    header{height: 100px;}
    h1{font-size: 1.5rem;}  
    header .perfil2 {
        height: 70%;
        margin-right: 1rem;}
    header h2 {font-size: 1rem;}
    header a {width: 25px;}
    section {height: auto;}
    article {height: 320px;}
    footer {height: auto;}
    footer p{width: 90%;}
    .contenedor p{font-size: 1.5rem; width: 90%;}
}