* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Nunito',sans-serif;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction:column;
    justify-content: space-between;
    background-image: url(img/background-02.jpg);
}
header{
    height: 3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}
header,footer{
    padding: 1em;
    background-color:#a7a9ab;
}
#dgpc{
    display: block;
    width: 5em;
}
header ul {
    display: flex;
    text-align: center;
}
header ul li {
    display: flex;
    width: 5em;
}
header ul li a {
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
header h2{
    color: white;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    display: block;
    font-size: 1rem;
    letter-spacing: 0.05em;
}
header li:hover h2{
    color: #7ccfdb;
    transition: all .5s ease;
}

main{
    display: flex;
    flex-direction:column;
    justify-content: space-between;
    flex-grow: 1;
}

.perfil{
    margin-top: 2em;
    margin-bottom: 2em;
    align-items: center;
    display: flex;
    flex-direction:row;
    justify-content: center;
    }
section h1, h3{
    color: #e64033;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
}
section div h1{
    padding-top: 0.5em;
    font-size: 2em;
    letter-spacing: 0.1em;
}
#linea{
    width: 100%;
    height: 0.15em;
    background-color: #7ccfdb;
    margin-top: 0.1em;
    margin-bottom: 0.5em;
}
section div h3{
    letter-spacing: 0.1em;
    font-weight: 200;
    color:#6d6e70;
}
.foto {
    border-radius: 50%;
    display: flex;
    box-sizing: border-box;
    max-width: 18em;
    padding-top: 1.5em;
} 

.materias{
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    margin:auto;
}
.materias h4{
    color: #7ccfdb;
    letter-spacing: 0.13rem;
    padding-top: 1em;
    padding-bottom: 0.5em;
}
.materias ul li{
    color:#6d6e70;
    line-height: 1.3rem;
    letter-spacing: 0.05rem;
}
.portfolio{
    margin-bottom: 4em;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 4em;
    display: flex;
    flex-direction: column;
}
img {
    display: flex;
    max-width: 50em;
}
.portfolio h3{
    padding-top: 0.5em;
    font-size: 2em;
    letter-spacing: 0.1em;
    font-weight: 700;
    color:#6d6e70;
}
.portfolio a{
    font-size: 1.5em;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding-right: 1em;
    color:#e64033;
}
.portfolio a:hover {
    color:#7ccfdb;
    transition: all .5s ease;
}
.portfolio img{
    padding-top: 2em;
}

.ensenap{
    margin-bottom: 4em;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 4em;
    display: flex;
    flex-direction: column;
}

.ensenap h3{
    padding-top: 0.5em;
    font-size: 2em;
    letter-spacing: 0.1em;
    font-weight: 700;
    color:#6d6e70; 
}
            
.ensenap img{
    margin-top: 2em;
    display: flex;
    max-width: 60em;    
}

footer{
    background-color:#253675;
    color: white;
    font-size: 0.8em;
    padding: 1em;
    margin-top: 2rem;
    text-align: center;
    line-height: 1.2em;
}


@media (max-width: 500px)
{header {font-size: 0.7em;}}


@media (max-width: 900px)
{main h1 {font-size: 2em;}}

@media (max-width: 500px)
{main h1 {font-size: 1.8em;}}