* {
    padding:0;
    margin:0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


body {background-image: url("https://www.yamazaki.mx/acafein/img/backgroundacafein.jpg");
    background-size: 40% 20%;


    font-family: 'Overlock'
}

.menu_bar {
    display:none;
}

header {
    width: 100%;
}

header nav {
    background:black;
    z-index:1000;
    max-width: 1000px;
    width:95%;
    margin:20px auto;
}

header nav ul {
    list-style:none;
}

header nav ul li {
    display:inline-block;
    position: relative;
}

header nav ul li:hover {
    background:black;
}

header nav ul li a {
    color:black;
    display:block;
    text-decoration:none;
    padding: 20px;
    font-family: 'Overlock'
}

header nav ul li a span {
    margin-right:10px;
}

header nav ul li:hover .children {
    display:block;
    color: black;
}

header nav ul li .children {
    display: none;
    background:black;
    position: absolute;
    width: 150%;
    z-index:1000;
}

header nav ul li .children li {
    display:block;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.5);
}

header nav ul li .children li a {
    display: block;
}

header nav ul li .children li a span {
    float: right;
    position: relative;
    top:3px;
    margin-right:0;
    margin-left:10px;
}

header nav ul li .caret {
    position: relative;
    top:3px;
    margin-left:10px;
    margin-right:0px;
}

@media screen and (max-width: 800px) {
    body {
        padding-top:80px;
    }

    .menu_bar {
        display:block;
        width:100%;
        position: fixed;
        top:0;
        background:transparent;
    }

    .menu_bar .bt-menu {
        display: block;
        padding: 20px;
        color: black;
        overflow: hidden;
        font-size: 25px;
        font-weight: bold;
        text-decoration: none;
    }

    .menu_bar span {
        float: right;
        font-size: 40px;
    }

    header nav {
        width: 80%;
        height: calc(100% - 80px);
        position: fixed;
        right:100%;
        margin: 0;
        overflow: scroll;
    }

    header nav ul li {
        display: block;
        border-bottom:1px solid rgba(255,255,255,.5);
    }

    header nav ul li a {
        display: block;
        font-family: 'Overlock'
    }

    header nav ul li:hover .children {
        display: none;
    }

    header nav ul li .children {
        width: 100%;
        position: relative;
    }

    header nav ul li .children li a {
        margin-left:20px;
    }

    header nav ul li .caret {
        float: right;
    }
}

#imagetitle {width: 100%;height: 3%;}
#imageseguros {width: 100%;height: 45%;}


a:link {color: white;  font-family: 'Overlock';text-decoration:none;}
a:visited {color: white;  font-family: 'Overlock';text-decoration:none;}
a:hover {color: white; font-family: 'Overlock';text-decoration:none;}
a:active {color: white;  font-family: 'Overlock';text-decoration:none;}

a.title:link {color: black; font-family: 'Overlock';text-decoration:none;}
a.title:visited {color: black; font-family: 'Overlock';text-decoration:none;}
a.title:hover {color: black; font-family: 'Overlock';text-decoration:none;}
a.title:active {color: black; font-family: 'Overlock';text-decoration:none;}


.container {
    display: flex;
}
#imageselfie {width: 100%;height: 25%;}
.squaretop{
    height:18%;
    width:100%;
    background-color:transparent;
    padding: 0px;
    margin: 0px;
}

hr.style1{
    border-top: 1.5px solid #1B3D6E;  }


.boton{
    height:60%;
    width:80%;
    background-color:#1B3D6E;
    margin: 0px;
}


img.prmeio{max-height: 32%;
    max-width: 32%}

img.companias{max-height: 28%;
    max-width: 24%}

img.media{max-height: 15%;
    max-width: 15%}

#button {
    display: inline-block;
    background-color: black;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s,
    opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}
#button::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: white;
}
#button:hover {
    cursor: pointer;
    background-color: #333;
}
#button:active {
    background-color: #555;
}
#button.show {
    opacity: 1;
    visibility: visible;
}


.button2 {
    background-color: black; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    width: 100%;
}

.button3 {
    background-color: black; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    width: 100%;
}

.square {
    height: 30%;
    width: 100%;
    background-color: black;
}


input[type=Email] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
}

input[text=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


input[type=submit] {
    background-color: black;
    width: 100%;
    border: none;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
}
