@font-face {
    font-family: "hemi";
    src: url(hemi\ head\ bd\ it.ttf) format("truetype");
    font-weight: 500;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    font-size: 1em;
    font-family: "hemi";
    font-weight: 500;
    overflow: hidden;
}

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: 90%;
    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: 20px;
    width: 50%;
}

header nav ul li a {
    font-size: .9em;
    background-color: #ffffffaf;
    color: #141486;
    padding: 5px;
    text-decoration: none;
    display: block;
    font-family: "hemi";
    font-weight: 500;
}

header nav ul li a:hover {
    background-color: #141486;
    color: #fff;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.main {
    width: 95%;
    margin: auto;
    height: 80%;
    font-family: "hemi";
}

h1 {
    text-align: center;
    width: 100%;
    height: auto;
    color: #2c2c2e;
    margin: 15px 0;
    font-size: 1.5em;
}

.box {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid #113a70;
    background-color:#fff;
    width: 100%;
    max-width: 1500px;
    min-width: 300px;
    height: 90%;
}

.socios {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: fit-content;
    padding: 10px;
}

.socios h2 {
    background-color:#141486;
    color: #fff;
}

.socios h2, h5 {
    font-size: .9em;
    text-align: center;
}

.socio1 {
    width: 250px;
    max-width: 350px;
    height: 150px;
    padding: 10px;
    margin: auto;
    border: 3px solid #e9ecea;
    background-color: #fff;
    box-shadow: 1px 1px 10px 5px #595a58;
    transition: all 500ms ease-in-out;
}

.socio1 img {
    width: 80%;
    margin:10%;
}

.socio2 img {
    width: 80%;
    margin:10%;
}

.socio1:hover{
   transform: scale(1.2);
   font-size: 1.5em;
   color: #141486;
   font-weight: 600;
}

hr {
    margin: 15px auto;
    width: 100%;
    height: 10px;
    background-color: #e9ecea;
    padding: 5px;
}

.socio2 {
    width: 250px;
    max-width: 350px;
    height: 150px;
    padding: 10px;
    margin: auto;
    border: 3px solid #e9ecea;
    background-color: #fff;
    box-shadow: 1px 1px 10px 5px #595a58;
    transition: all 500ms ease-in-out;
}

.socio2:hover {
    transform: scale(1.2);
    font-size: 1.5em;
    color: #141486;
    font-weight: 600;
}

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;
}

.bottom a {
    text-decoration: none;
    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;
    }

    header nav ul li {
        display: block;
        float: none;
        background-color: #ffffffaf;
        border-bottom: 2px solid #141486;
        width: 40%;
    }
    

    header nav ul li a {
        font-size: .9em;
        color: #141486;
        padding: 10px;
    }

    .bottom {
        font-size: 1em;
    }

}

@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;
    }         

     .container {
        margin: auto;
    }

     .main {
        margin: auto;
        width: 100%;
        height: auto;
    }

    .box{
        margin-top: 100px;
        width: 95%;
        height: 90%;
        margin: auto;
    }

    .socios {
        padding: 40px;
        display: flex;
        flex-direction: row;
        width: 100%;
        max-width: 1200px;
        max-height: 400px;
        margin: auto;
    }

    .socio1 {
        display: flex;
        flex-direction: column;
        width: 45%;
        max-width: 450px;
        min-height: 200px;
    }

    .socio2 {
        display: flex;
        flex-direction: column;
        width: 45%;
        max-width: 450px;
        min-height: 200px;
    }

    .socio1 img {
        margin-top: 8%;
    }

    .socio2 img {
        width: 80%;
        margin-top:5%;
        margin-left: 10%;
    }

    hr {
        display: none;
    }

    .socios h2, h5 {
        font-size: 1.1em;
    }
    
    .bottom h3 {
        font-size: 1em;
    }
}

@media screen and (max-width: 300px) {
    
    body {
        display: none;
    }
}