@charset "UTF-8";

 * {
     padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 .2em #787878;
    color: #ffa4aa;
}

header a:hover {
    color: #fff;
}


html {
    height: -webkit-fill-available;
}

body{
    font-family: "Poppins";
    color: #4E595D;
    
    background: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    justify-content:space-between;
    }



/* ------------- HEADER -------------- */

header {
    background: #F56464;
    z-index: 9990;
}


header #contenedor{
    display: flex;
    flex-direction: column-reverse;
    }


header img {
    display: block;
    width: 8em;
    height: 8em;
    margin: 0 auto;
    box-shadow: 
}


#llamamenu{
    background: none;
    color: #fff;
    height: 3em;
    width: 3em;
    cursor: pointer;
    position: fixed;
    margin: -9em 0 0 .5em;
    z-index: 9990;
    border: none;
}


header nav ul {
    position: fixed;
    width: 50%;
    top: 0;
    bottom: 0;
    left: -100%;
    right: 0;
    background: rgba(255, 99, 98, 0.9);
    padding-top: 3em;
    transition: all .7s ease;
}


.visible {
    left: 0;
    transition: all .5s ease; 
    }


header nav li { 
    padding: .8em .5em .5em 1.2em;
    text-decoration: none;
    justify-content: center;
    align-items: center; 
    font-family: "Raleway";
    font-weight: 700;
    font-size: 1.1em;
    }

header nav li a {
    color: #CEF6D8;
    text-decoration: none;
}




/* ------------- MAIN ------------- */


main {
    background: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* ------------ Perfil ------------- */

.perfil {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 3em 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.perfil h1 {
    margin-top: 1em;
    padding: .2em .5em .2em .5em;
    font-weight: 700;
    box-shadow: .1em 0em .5em #b4b4b4;
    color: #F56464;
}

.perfil p {
    margin: 1em 0 0 0;
    padding: 1em;
    font-size: 1em;
    width: 90%;
    text-align: left;
    border-bottom: .1em solid #F56464;
    color: #F56464;
}


.perfil figure {
    max-width: 15em;
    max-height: 15em;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: .2em .1em .5em #b4b4b4;
    position: relative;
}

.perfil figcaption {
    position: absolute;
    font-size: 7em;
    font-weight: 600;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfil figure:hover figcaption {
    top: 0;
    background: rgba(255, 99, 98, 0.8);
    transition: all .5s ease;
}



.perfil img {
    width: 100%;
    display: block;
        
    object-fit: cover;
    object-position: left center;
}


/* ----------- Datos ------------ */

.datos {
    width: 90%;
    height: 100%;
    padding: 3em 0 3em 0;    
    text-align: center;
}

.datos h2{
    font-size: 2.5em;
    color:#fff;
    text-shadow: .1em .1em .2em #000;
}

.datos h4{
    text-transform: uppercase;
    color: #b4b4b4;
    margin-top: -.4em;
    border-bottom: .1em #b4b4b4 solid;
    display: inline;
}

#lista {
    color: #b4b4b4;
    border-bottom: none;
}

.datos p {
    margin: 0 auto;
    padding: 1em;
    font-size: 1em;
    width: 90%;
    text-align: left;
    border-bottom: .1em solid #b4b4b4;
    color: #b4b4b4;
}

#integrantes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 4em;
    
}

#integrantes h5 {
    color: #F56464;
    font-size: 1.2em; 
    font-weight: 600;
}

#integrantes figure img {
    display: block;
    width: 100%;
    height: 100%;
}

#integrantes figure {
    width: 11em;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-top: 1.2em;
}

#integrantes figcaption {
    height: 100%;
    width: 100%;
    font-weight: bold; 
    font-size: 4em;
    color: #fff;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

#integrantes figure:hover figcaption{
    top: 0;
    background: rgba(255, 99, 98, 0.8);
    transition: all .5s ease;
}


/* -------- Materias ---------- */
#materias {
    align-items: stretch;
    display: flex;
    justify-content: space-evenly;
    margin: auto;
    width: 100%;
    flex-wrap: wrap;
}

#materias div {
    padding: 2em;
    box-shadow: .2em .1em .5em #b4b4b4;
    list-style: none;
    width: 20em;
    margin-bottom: 1em;
}


#materias h3 {
    margin-bottom: .8em;
    color: #F56464;
    border-bottom: .08em solid #F56464;
}

#materias li {
    font-size: 1.1em;
    padding-bottom: .2em;
    color: #b4b4b4;
}


#tarea {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 100%;
    margin: 2em 0 2em 0;
    flex-wrap: wrap;
    
}

#tarea a {
    background-color: #F56464;
    padding: .8em;
    width: 6em;
    height: 6em;
    display: block;
    border-radius: 50%;
    margin: 1em 1em 0 0;
    overflow: hidden;
    
}

#tarea a:hover {
    box-shadow: .2em .1em .3em #787878;
}


#tarea img{
    width: 90%;
    height: auto;
    display: block;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}


/* ------------- FOOTER ------------- */


footer{
    background: none;
    border-top: .1em #b4b4b4 solid;
    font-style: italic;
    font-size: 0.7em;
    width: 100%;
    height: 100%;
    padding: 2em;
    color: #b4b4b4;
}


/* -------- PARA DISPOSITIVOS TABLET ---------- */
@media screen and (min-width: 768px) {
    
    .contenedor {
        width: 50em;
        margin: 0 auto;
    }
    
    
    .perfil figure {
        margin-top: 2em;
    }
    
    
    /* --------- HEADER --------- */

    header .contenedor{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40em;
    height: 8.5em;
    margin: 0 auto;
    transition: all .7s ease;
    }
    
    
    #llamamenu {
        display: none;
    }
    
    header nav {
        width: 60%;
        margin: 0 auto;
    }
    
    header nav ul {
    position: relative;
    width: 100%;
    height: 100%;
    left: 0;
    margin-top: .5em;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0;
    background: none;
}
    
    header nav li { 
    padding: .5em 1em .5em 1em;
    background: #F56464;
    box-shadow: .2em .3em .5em #b4b4b4;
    text-align: center;
    margin: 0 .1em 0 .1em;
    display: flex;
    align-items: center;
    }
    
    
    header nav li a {
    color: #fff;
}
    
}
