/* main {
    padding-top: 80px !important;
} */

header {
    background-color: white;
    color: #0080a8;
    box-shadow: 0px 0px 20px 0px #000;
    
    width: 100%;
    height: 80px;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: background-color 0.3s ease;
}

header, header.top, header.scrolled {
    height: 80px;
}

header.top {
    background-color: transparent;
    box-shadow: none;
}

header.top .menu_a {
    color: white !important;
}

header.top .menu_a:hover {
    color: #0080a8 !important;
}

header.scrolled {
    background-color: white;
}

nav {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.header_logo, .header_menu, .header_social {
    height: 64px !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header_logo a {
    height: 64px !important;
}

.header_logo img {
    height: 64px !important;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: flex;
    align-items: center;
    color: #0080a8;
    padding: 10px 15px;
    text-decoration: none !important;
}

nav ul li a:hover {
    color: #a4a9ad;
}

nav ul li.has-submenu > a .material-icons {
    font-size: 12px;
    margin-left: 5px;
}

nav li ul {
    background-color: white;
    border: 1px solid #a4a9ad;
    border-radius: 0.25rem;

    min-width: 100px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

nav ul li ul li a {
    padding: 10px;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li:hover > ul#submenu_lang {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.submenu1 a:hover {
    background-color: #0080a8;
    color: white;
}

.burger_btn {
    display: none;
}

#menu_AC svg {
    margin-right: 0.5rem;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    transform: rotate(180deg);
    transition: all 0.5s ease;
}
.dropdown-toggle:hover::after {
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

.submenu1 {
    /* hay 3 width para que sea válido en cualquier navegador */
    width: stretch; /* chrome */
    width: -webkit-fill-available; /* Microsoft Edge */
    width: -moz-available; /* firefox */
}

.submenu1 a{
    border-radius: 0.25rem;
}

.submenu1 img {
    margin-right: 0.75rem;
}

/* responsive */
@media screen and (max-width: 1350px) {
    .header_social {
        display: none;
    }
}

@media screen and (max-width: 1350px) and (min-width: 1100px) {
    .submenu1 img {
        margin-right: 0px;
    }
    .submenu1 a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile / burger menu styles (<= 1100px) */
@media screen and (max-width: 1100px) {
    header.top .burger_icon,
    header.top .burger_icon::before,
    header.top .burger_icon::after {
        background: white !important;
    }

    /* .burger_btn, .burger_btn::after, .burger_btn::before {
        margin: 0px !important;
    } */

    header.top .burger_btn.open .burger_icon {
        /* background: transparent !important; */
        background: #0080a8 !important;
    }

    header.top .burger_btn.open .burger_icon::before,
    header.top .burger_btn.open .burger_icon::after {
        /* background: white !important; */
        background: #0080a8 !important;
    }

    nav {
        justify-content: space-between;
        /* padding: 0.5rem 1rem; */
        padding: 0.5rem 2rem;
    }

    .burger_btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        color: #0080a8;
        cursor: pointer;
        /* padding: 8px; */
        padding: 10px 2px;
        margin-left: 8px;
    }

    .burger_icon {
        display: inline-block;
        width: 22px;
        height: 4px;
        border-radius: 2rem;
        background: #0080a8;
        position: relative;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .burger_icon::before,
    .burger_icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        border-radius: 2rem;
        background: #0080a8;
        transition: transform 0.25s ease, top 0.25s ease;
    }

    .burger_icon::before { top: -7px; }
    .burger_icon::after { top: 7px; }

    .header_menu {
        display: none;
    }

    header.mobile-open {
        background-color: white !important;
    }

    header.mobile-open .header_menu {
        /* height: 160px !important; */
        height: 240px !important;
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 9998;
        padding: 1rem 1rem;
        overflow-y: auto;
        box-shadow: 0px 15px 20px -20px black;
    }

    header.mobile-open .menu_a {
        color: #0080a8 !important;
    }

    header.mobile-open .burger_icon,
    header.mobile-open .burger_icon::before,
    header.mobile-open .burger_icon::after {
        background: #0080a8 !important;
    }

    .header_menu ul {
        flex-direction: column;
    }

    .header_menu ul li a {
        padding: 14px 12px;
        color: #0080a8;
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* border-bottom: 1px solid #eee; */
        border-bottom: 1px solid #0080a8;
    }

    /* Submenu styles for mobile: hidden by default, shown when parent has .open */
    .header_menu ul li ul {
        display: none;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 0.75rem;
    }

    .header_menu ul li.open > ul {
        display: block;
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .submenu1 a:hover {
        background: transparent;
        color: #0080a8;
    }

    #menu_AC {
        flex-direction: row-reverse;
    }
}
