/* Existing Vela-Navega custom rules */
/*
.container {
    max-width: 1050px;
}
.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container {
    width: 1030px;
}
*/
.navigation ul.nav {float: left;}
.navigation form {float: right; width: 220px;}
.navigation {height: 34px;}

.nav-pills > li > a {
    padding-top: 4px;
    padding-bottom: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.nav-tabs > li > a {
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 12px;
    border: 1px solid transparent;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
}

/* Modern Vela-Navega layout */
html {
    overflow-y: scroll;
}

body.site {
    border-top: 0 !important;
    padding: 0;
    background-color: #ffffff !important;
}

.body .container {
    width: auto;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff;
    border: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.header {
    margin: 0;
}

.header .header-inner,
.header .brand {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header .brand img {
    display: block;
    width: 100%;
    height: auto;
}

body.site .body .container .navigation {
    min-height: 38px;
    height: auto;
    margin: 0 0 20px;
    padding: 0 20px;
    border: 0;
    background-color: #075aa8 !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.navigation .nav-pills {
    margin: 0;
}

body.site .navigation .nav-pills > li > a {
    margin: 0;
    padding: 10px 14px;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 18px;
    text-shadow: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

body.site .navigation .nav-pills > li > a:hover,
body.site .navigation .nav-pills > li > a:focus {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.14) !important;
}

body.site .navigation .nav-pills > .active > a,
body.site .navigation .nav-pills > .active > a:hover,
body.site .navigation .nav-pills > .active > a:focus {
    color: #ffffff !important;
    background-color: #0088cc !important;
}

/* Main menu markup generated by the live site */
body.site ul.nav.menu.nav-pills.mod-list {
    float: none;
    width: 100%;
    min-height: 38px;
    margin: 0 0 20px;
    padding: 0 20px;
    background-color: #075aa8 !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body.site ul.nav.menu.nav-pills.mod-list > li > a {
    margin: 0;
    padding: 10px 14px;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 18px;
    text-shadow: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

body.site ul.nav.menu.nav-pills.mod-list > li > a:hover,
body.site ul.nav.menu.nav-pills.mod-list > li > a:focus {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.14) !important;
}

body.site ul.nav.menu.nav-pills.mod-list > .active > a,
body.site ul.nav.menu.nav-pills.mod-list > .active > a:hover,
body.site ul.nav.menu.nav-pills.mod-list > .active > a:focus {
    color: #ffffff !important;
    background-color: #0088cc !important;
}

#aside .well {
    padding: 0;
    background: transparent;
    border: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.body .row-fluid {
    padding: 0 20px 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer .container {
    width: auto;
    max-width: 1010px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .body .container {
        width: 100%;
    }

    .header .brand {
        text-align: left;
    }

    body.site .body .container .navigation {
        min-height: 46px;
        margin-bottom: 14px;
        padding: 6px 12px;
    }

    body.site .navigation .nav-pills > li > a {
        padding: 9px 12px;
    }

    body.site ul.nav.menu.nav-pills.mod-list {
        display: flex;
        flex-wrap: wrap;
        min-height: 0;
        margin-bottom: 14px;
        padding: 6px;
    }

    body.site ul.nav.menu.nav-pills.mod-list > li {
        float: none;
        width: 50%;
        margin: 0;
    }

    body.site ul.nav.menu.nav-pills.mod-list > li > a {
        display: block;
        padding: 9px 12px;
    }

    .body .row-fluid {
        padding: 0 14px 16px;
    }

    #content p[align="JUSTIFY"],
    #content p[align="justify"] {
        text-align: left;
    }

    .footer .container {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (min-width: 768px) {
    body.site #aside {
        padding-top: 30px;
    }
}

