@charter "utf-8";

@font-face {
    font-family: 'redressedregular';
    src: url('redressed-webfont.eot');
    src: url('redressed-webfont.eot?#iefix') format('embedded-opentype'),
         url('redressed-webfont.woff2') format('woff2'),
         url('redressed-webfont.woff') format('woff'),
         url('redressed-webfont.ttf') format('truetype'),
         url('redressed-webfont.svg#redressedregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'alegreya_sansregular';
    src: url('alegreyasans-regular-webfont.eot');
    src: url('alegreyasans-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('alegreyasans-regular-webfont.woff2') format('woff2'),
         url('alegreyasans-regular-webfont.woff') format('woff'),
         url('alegreyasans-regular-webfont.ttf') format('truetype'),
         url('alegreyasans-regular-webfont.svg#alegreya_sansregular') format('svg');
    font-weight: normal;
    font-style: normal;

}



body {
    max-width: 960px;
    height: auto;
    margin: auto;
}




/* ARRIBA */

header {
    background-color: #40bcb5;
    padding: 1em;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li{
    margin: 0;
}

header nav ul li a {
    text-decoration: none;    
    display: block;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    padding: 0.3em;
    margin: 0;
}

nav .padre {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #ffffff;
}



/* TÍTULOS Y TEXTO */

div {
    background-color: #ffffff;
}

h1 {
    font-family: sans-serif;
    color: #ffffff;
    text-align: center;
    padding: 0;
}

h2 {
    font-family: 'redressedregular';
    font-size: 40px;
    text-align: center;
    color: #724c9b;
    padding: 0 0 30px 0;
    margin: 0;
}

h3 {
    font-family: 'alegreya_sansregular';
    font-size: 22px;
    color: #724c9b;
    padding: 15px 0 10px 0;
    margin: 0;
}

h4 {
    font-family: 'alegreya_sansregular';
    font-size: 22px;
    text-align: center;
    color: #724c9b;
    padding: 25px 0 10px 0;
    margin: 0;
}

h5 {
    font-family: 'alegreya_sansregular';
    font-size: 16px;
    padding: 0;
    margin: 0;
}


ul {
    font-family: 'alegreya_sansregular';
    font-size: 15px;
    padding: 0 0 0 15px;
    margin: 0;
    list-style: none;
}

li {
    font-family: 'alegreya_sansregular';
    font-size: 15px;
}


.perfil {
    display: flex;
    flex-display: row;
    justify-content:center;
}

div section img {
    width: 30%;
    height: 30%;
    margin: 0 3em 0 0;
}


.primero {
    margin: 2em 0 2em 0;
    padding: 2em;
}

.segundo {
    margin: 0 0 1em 0;
}

.años {
    display: flex;
    flex-display: row;
    justify-content: center;
    margin: 0; 
}

.primerosaños {
    margin: 0 4em 0 0;
}

.redes {
    display: flex;
    flex-display: row;
    justify-content: center;
    margin: 2em 0 0 0;
}

div section a img {
    width: 30%;
    height: 30%;
}


@media (max-width:500px) {
    .perfil, .años {
        display: flex;
        flex-display: row;
        flex-direction: column;
    }
    
    h3, p {
        text-align: center;
    }
    
    .listado {
        text-align:left;
    }
    
    div section img {
        width: 50%;
        height: 50%;
    }
    
    header nav ul li a {
        font-size: 12px;
    }
}





/* LEGALES */

footer{
    padding: 0.5em;
    margin: 0;
    background-color: #40bcb5;    
}

footer p {
    color:#ffffff;
    font-family: 'alegreya_sansregular';
    text-align: center;
    font-size: 12px;
}


@media screen and (max-width:780px) {
    footer p {
        font-size: 10px;
    }
}