* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

body {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    min-height: 100vh;
    font-family: 'Ubuntu', 'Arial', sans-serif;
    font-weight: 300;
}

h1 { font-size: 2em; }

h2 { font-size: 1em; }

img {
    max-width: 100%;
    height: auto;
}

/*// Header //*/

header {
    width: 100%;
    background-color: #111;
    color: #fff;
    padding: .75em 1em;
}

#logo-palabra {
    display: inline-block;
    font-family: 'Anonymous Pro', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    transition: transform .25s ease;
}

#logo-palabra:hover {
    transform: translateY(-2px);
    cursor: progress;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: wrap;
}

nav ul {
    display: flex;
}

nav ul li,
nav ul span {
    display: inline-block;
    padding-left: 2em;
}

nav ul li a {
    color: #fff;
    font-family: 'Anonymous Pro', 'Arial', sans-serif;
    font-size: 1em;
    transition: all .25s ease;
}

nav ul li a:hover {
    color: #c80815;
}

/*// Contenido //*/

main {
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    align-items: center;
    flex: 1;
    height: 100%;
}

section {
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
    padding: 2em;
}

/* Introducción */

.intro {
    flex-flow: row wrap;
    justify-content: space-around;
    max-width: 600px;
}

.avatar {
    border-radius: 50%;
    width: 240px;
}

.info {
    font-size: 1em;
    padding-top: 2em;
}

.info h1 {
    color: #c80815;
    margin-bottom: .5em;
}

.info span {
    font-size: .75em;
    font-weight: 300;
}

.info h2 {
    font-weight: 700;
}

/* App */

.pantallas {
    flex-flow: row wrap;
    justify-content: space-around;
    max-width: 360px;
}

.pantallas ul {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    padding: .5em 0;
}

.pantallas ul li a {
    display: inline-block;
    width: 2em;
    text-align: center;
    color: #c80815;
}

.pantallas ul li a:hover {
    color: blue;
}

/* Links contacto */

.contacto {
    flex-flow: row wrap;
    justify-content: space-around;
    background: url(img/mural.png) no-repeat fixed center;
    background-size: cover;
}

.contacto ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.contacto ul li {
    display: inline-block;
    padding: .5em;
}

.contacto ul li a{
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url(img/social.png);
    text-indent: -900em;
    transition: background-position .25s ease;
}

.contacto ul li .be {
    background-position: 0px 0px;
}

.contacto ul li .be:hover {
    background-position: 0px -40px;
}

.contacto ul li .tb {
    background-position: -40px 0px;
}

.contacto ul li .tb:hover {
    background-position: -40px -40px;
}

.contacto ul li .fb {
    background-position: -80px 0px;
}

.contacto ul li .fb:hover {
    background-position: -80px -40px;
}

.contacto ul li .li {
    background-position: -120px 0px;
}

.contacto ul li .li:hover {
    background-position: -120px -40px;
}

/* Académico */

.academico {
    flex-flow: column;
    justify-content: space-around;
}

/* Legales */

.legales,
.legales section {    
    width: 100%;
    display: flex;
    align-items: center;
    flex-flow: column;
    justify-content: center;
    flex: 1;
}

.subseccion {
    max-width: 640px;
    padding: 0 2em 2em 2em;
}

.legales a {
    align-self: center;
    color: #c80815;
    transition: color .25s ease;
}

.legales a:hover { color: blue; }

.legales h5 {
    color: #c80815;
    margin-bottom: 1em;
}

.legales section p { width: 100%; }

.legales section p span { text-transform: uppercase; }

/*// Footer //*/

footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #111;
    color: #fff;
    padding: 0 1em;
}

footer p {
    display: flex;
    flex: 1 60%;
}

footer p,
footer div {
    padding: .75em 0;
}

.footer-links {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;    
    width: 320px;
    margin: 0 auto;
}

.footer-links img {
    height: 48px;
    filter: invert(100%) hue-rotate(180deg);
}

footer p {
    font-size: .8em;
}

/*// Menú dispositivos móviles //*/

#menu-toggle {display: none;}

.hamburger-toggle {display: none;}

@media screen and (max-width: 860px) {
    
    #logo-palabra {
    font-size: 1.25em;
}
    
    nav ul {
        display: block;
        max-height: 0;
        width: 100%;
        overflow: hidden;
        text-align: center;
        transition: max-height .25s ease-in, padding-top .5s ease;
    }
    
    nav ul li {
        display: block;
        padding: 1em 0;
    }
    
    nav ul span {
        display: none;
    }
    
    #menu-toggle:checked ~ ul {
        max-height: 720px;
        padding-top: .75em;
    }
    
    .hamburger-toggle {
      background: linear-gradient(to bottom, #c80815 0%, #c80815 12%, transparent 12%, transparent 44%, #c80815 44%, #c80815 56%, transparent 56%, transparent 88%, #c80815 88%, #c80815 100%); /*Lineas botón*/
      cursor: pointer;
      display: block;
      float: right;
      height: 1.25em;
      width: 1.25em;
    }
    
    header {
        display: block;
    }
}