@font-face {
    font-family: "hemi";
    src: url(hemi\ head\ bd\ it.ttf) format("truetype");
    font-weight: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    font-size: 1em;
    font-family: "hemi";
    font-weight: 500;
    overflow: hidden;
}

.container {
    margin-top: 100px;
    width: 100%;
    height: 100vh;
    max-height: calc(100vh - 100px - 60px);
    /*para que tanto header como footer tengan su espacio fijo*/
    animation: animate 16s ease-in-out infinite;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@keyframes animate {

    
    0% {
        background-image: url("images/servidor1.jpg");
    }

    25% {
        background-image: url("images/administration.jpg");
    }

    50% {
        background-image: url("images/rsz12.png");
    }

    75% {
        background-image: url("images/domotica10redu.png");
    }

    100% {
        background-image: url("images/rsz111.png");
    }

}

header.encabezado {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    min-height: 100px;
    border-bottom: 3px solid #8af070;
    background-color: #ffffffaf;
}

.logo {
    float: right;
    width: 40%;
    max-width: 200px;
    margin-right: 10px;
}

.logo img {
    width: 100%;
}

.menu-lista {
    display: none;
}

.menu-lista a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 60px;
    color: #141486;
    text-shadow: 1px 1px 3px rgba(106, 104, 104, 0.3);
    font-family: "hemi";
    font-size: 1em;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    margin: 20px 15px;
}

header nav {
    width: 60%;
    height: 100px;
    max-width: 1000px;
    max-height: 150px;
    z-index: 999;
    /*esto hara que este por encima de cualquier otro elemento*/
}

header nav ul {
    list-style: none;
}

header nav ul li {
    float: left;
    padding-top: 2px;
    width: 50%;
}

header nav ul li a {
    font-size: .9em;
    background-color: #ffffffaf;
    color: #141486;
    border: 1px solid #141486;
    text-align: center;
    padding: 5px;
    text-decoration: none;
    display: block;
    font-family: "hemi";
    font-weight: 500;
}

header nav ul li a:hover {
    background-color: #141486;   
    color: #fff;
}

.main {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 90%;
    font-family: "hemi";
}

.intro {
    display: none;
}

.servicios {
    margin: auto;
    width: 50%;
    min-width: 300px;
    height: 200px;
}
    
.servicios div {
    width: 100%;
    background-color: #8af070;
    font-size: 1em;
    font-weight: 600;
    color: #141486;
    line-height: .4em;
    padding: 10px;
    text-align: center;
    margin: 7px;
}

footer {
    margin-top: auto;
    width: 100%;
    height: 60px;
    text-align: center;
    background-color: #ffffffaf;
}

.bottom  {
    display: flex;
    justify-content: center;
    color: #141486;
    font-family: "hemi";
    padding: 5px;
}

h3 {
    width: 100%;
    height: 10px;
    font-size: .7em;
}

h3 a {
    text-decoration: none;
    font-size: 1em;
    color: #141486;
}


@media screen and (max-width: 500px) {

    header.encabezado {
        height: 100px;
        padding-top: 5px;
    }

    .logo {
        max-width: 200px;
    }

    header nav ul li a {
        background-color: #ffffffaf;
        border-bottom: 2px solid #141486;
    }

    nav a {
        font-size: 25px;
    }
}

@media screen and (max-width: 900px) {

    .menu-lista {
        display: block;
        width: 100%;
    }

    header nav {
        width: 80%;
        left: -100%; /*llevamos el menu desplegable fuera de la pantalla para que al presionar el boton se produzca la animación*/
        position: fixed; /*hace que el menu quede fijo aun cuando hago scroll*/
    }

    header nav ul li {
        display: block;
        float: none;
        border-bottom: rgba(255, 255, 255, .3)1px solid;
    }

    header nav ul li a {
        font-size: .9em;
        color: #141486;
        padding: 10px;
    }


}

@media screen and (min-width: 900px) {
    
    .menu-lista {
        display: none;
    }
    
    header nav {
        display: flex;
        width: 70%;
        align-items: center;
        margin-top: 0;
    }

    header nav ul {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    header nav ul li {
        min-width: 150px;
        text-align: center;
        margin: 0 10px;
    }

    header nav ul li a {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color:#ffffffaf;
        color: #141486;
    }

    .servicios {
        font-size: 1.2em;
    }

    .intro {
        width: 90%;
        height: 70%;
        display: flex;
        /*flex-direction: row;*/
        justify-content: center;
        align-items: center;
    }
    
    .intro p {
        margin: auto;
        font-family: "hemi";
        font-weight: 600;
        line-height: 3vh;
        width: 100%;
        max-width: 600px;
        height: 100%;
        max-height: 300px;
        text-align: justify;
        background-color: #8af0708c;
        padding: 40px 20px;
        margin-top: 20px;
        color: #141486;
    }

    .bottom {
        font-size: 1em;
    }

}

@media screen and (max-width:300px) {
    body {
        display: none;
    }

}