/* * {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}*/

/* NAVBAR */
.navbar-custom {
    background: #fff;
    /*padding: 12px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);*/
    position: relative;
    z-index: 1000;
    
}

.logo {
    /*color: #8c1737;*/
    /*font-size: 26px;*/
    /*font-weight: bold;*/
    text-decoration: none;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-menu > a,
.desktop-item > a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    /*font-weight: 600;*/
    padding: 15px 0;
}

.desktop-item {
    position: relative;
}

.desktop-item:hover > a {
    color: #8c1737;
}

/* DROPDOWN DESKTOP */
.desktop-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    padding: 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    list-style: none;
    z-index: 1001;
}

.desktop-item:hover > .desktop-dropdown {
    display: block;
}

.desktop-dropdown li {
    position: relative;
}

.desktop-dropdown a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.desktop-dropdown a:hover {
    background: #f5f5f5;
    color: #8c1737;
}

/* TERCER NIVEL DESKTOP */
.desktop-dropdown .level-three {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 230px;
    background: white;
    padding: 8px 0;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.desktop-dropdown li:hover > .level-three {
    display: block;
}

.has-children > a::after {
    content: "›";
    float: right;
    font-size: 10px;
    line-height: 15px;
}

/* BOTON MOVIL */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    /*color: #8c1737;*/
    color: rgb(0, 73, 144);
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MENU LATERAL */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    max-width: 88%;
    height: 100vh;
    background: rgb(0, 73, 144);
    z-index: 1999;
    transition: right .35s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,.15);
}

.mobile-menu.active {
    right: 0;
}

/* ENCABEZADO */
.menu-header {
    /*background: #8c1737;*/
    background: rgb(0, 73, 144);
    color: #fff;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
}

/* LISTAS */
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu a,
.submenu-toggle {
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-decoration: none;
    text-align: left;
    /*color: #333;*/
    color: white;
    font-size: 15px;
    font-weight: 600;
    background: rgb(0, 73, 144);
    border: none;
}

.mobile-menu a:hover,
.submenu-toggle:hover {
    background: rgb(0, 73, 144);
    color: white;
}

/* FLECHAS */
.arrow {
    float: right;
    font-size: 20px;
    color: white;
}

/* SUBMENU NIVEL 2 */
.submenu {
    display: none;
    background: #f5f5f5;
}

.submenu.show {
    display: block;
}

.submenu a,
.submenu .submenu-toggle {
    background: rgb(0, 73, 144);
    padding-left: 35px;
    font-weight: normal;
}

/* SUBMENU NIVEL 3 */
.submenu .submenu {
    background: #ececec;
}

.submenu .submenu a {
    background: rgb(0, 73, 144);
    padding-left: 55px;
    font-size: 12px;
}

.submenu .submenu a:hover {
    background: #e2e2e2;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}
