/* 
          Created on : 25 sep. 2025, 12:33:05
          Author     : Eric palacios
*/
.nav-with-max {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}
.main-wrapper{
    position: relative;
    width: 100%;
}
.brand-and-icon{
    padding-left: 20px;
}
.nav_superior{
    /*background-color: blue; */
    position: absolute;
    float: right;
    /* right: -51px !important; */
    width: 100%;
    margin-top: -60px;
}

li a.menu-link.nav-link, .menu-link.nav-link{
    cursor: pointer;
}
.nav-item-flag{
    position: relative;
    float: left;
    width: 110px;
    margin-top:-2px
}
.nav-item-lenguaje{
    border-left: 1px solid #D4D4D4;
    padding-left: 23px;
}
li:hover.nav-item.nav-item-lenguaje {
    border-bottom-color: transparent;
}
.navbar-expand-md .navbar-collapse {
    justify-content: flex-end;
}

/* Estilos de los Logos e Iconos */
.logo-img {
    height: 24px;
}

.icon-sm {
    height: 18px;
}

/* Estilos de Enlaces */
.top-nav a,
.top-nav li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #3C4150;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap; /* Evita que los enlaces se rompan */
    margin-top: 15px;
}
.top-nav ul {
    display: flex;
    align-items: center;
}
.top-nav-item a {
    padding: 8px 15px;
}
.top-nav-item a.active {
    font-weight: 600;
    color: #000 !important;
    background-color: #fff;
    border-bottom: 2px solid #67C316;
}

.text-secondary-top-nav{
    color: #3C4150;
}
.top-nav a:hover {
    color: #000 !important; /* Oscurece al pasar el ratón */
}

.main-nav a {
    font-size: 14px;
    line-height: 1;
    color: #3d3d3d !important;

}

.main-nav a:hover {
    color: #67C316 !important; /* Color de hover para el menú principal */
}

.regional-sites {
    font-size: 0.9em;
}
.main-header{
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding: 15px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;

}
.top-header {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 50px;
    background-color: rgba(236, 236, 236, 0.7);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    overflow: hidden;
    border-bottom: 1px solid white;

}
.main-wrapper .navbar{
    padding: 20px 0 0 0;
}
.top-nav-item a{
    padding: 15px;
}
.top-nav-item a.active{
    background-color: #fff;
}
.nav-item-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 15px;

}
/* Overlay oscuro */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 998;
    transition: opacity 0.3s ease;
}

/* Panel off-canvas */
.offcanvas-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 999;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.offcanvas-panel.active {
    right: 0;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    float: right;
    cursor: pointer;
}

/* Estilos para submenús */
.submenu-container {
    position: relative;
    width: 100%;
}

.submenu {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submenu.active {
    display: block;
    opacity: 1;
}

a.texto_bandera {
    display: block;
    font-family: "Roboto";
    font-weight: 300;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 1;
    padding-right: .8rem;
    padding-left: .8rem;
}
.container-idioma{
    position: relative;
    float: left;
}

/* ========== ESTILOS MOBILE ========== */
@media (max-width: 992px) {
    /* Header principal */
    .main-header {
        padding: 10px 0;
    }

    .brand-and-icon {
        padding-left: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* Menú superior - versión móvil */
    .top-header {
        display: none !important; /* Ocultamos el menú superior horizontal en móvil */
    }

    /* Botón de menú móvil */
    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #3C4150;
        padding: 5px 10px;
        margin-right: 10px;
        z-index: 1001;
        position: relative;
    }

    /* Panel móvil */
    .mobile-panel {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 85%;
        height: 100%;
        background: #fff;
        z-index: 1002;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .mobile-panel.active {
        left: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        display: none;
        z-index: 1001;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Menú móvil */
    .mobile-menu {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }

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

    .mobile-menu-item a {
        display: block;
        padding: 12px 0;
        color: #3C4150;
        text-decoration: none;
        font-size: 16px;
        width: 100%;
    }

    .mobile-menu-item a.active {
        color: #67C316;
        font-weight: 600;
    }

    .mobile-submenu {
        display: none;
        padding-left: 15px;
        background: #f9f9f9;
        margin: 5px 0;
        border-radius: 5px;
    }

    .mobile-submenu.active {
        display: block;
    }

    .mobile-submenu-item a {
        padding: 8px 0;
        font-size: 14px;
        color: #666;
        border-bottom: none;
    }

    .mobile-submenu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-submenu-toggle::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
        padding-left: 5px;
    }

    .mobile-submenu-toggle.active::after {
        transform: rotate(180deg);
    }

    /* Submenús en versión móvil */
    .submenu-container {
        display: none !important; /* Ocultamos los submenús horizontales en móvil */
    }

    /* Ajustes para el logo y bandera */
    .logo_menu {
        font-weight: bold;
        color: #67C316;
        height: 30px;
        display: flex;
        align-items: center;
        margin-left: 25px;
    }

    .header-actions {
        display: flex;
        align-items: center;
    }

    .nav-item-flag {
        padding-left: 0;
        margin-right: 15px;
    }

    /* Asegurar que el menú móvil tenga buen espaciado */
    .close-panel {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .mobile-panel h5 {
        margin-top: 30px;
        color: #3C4150;
        font-weight: 600;
    }
}

/* Estilos para escritorio */
@media (min-width: 992px) {
    .mobile-menu-btn,
    .mobile-panel,
    .mobile-overlay {
        display: none !important;
    }
}

/* Estilos generales que deben estar siempre */
.mobile-menu-btn {
    cursor: pointer;
}

.mobile-panel {
    font-family: 'Roboto', sans-serif;
}

.mobile-menu-item a:hover {
    color: #67C316;
}

.mobile-submenu-item a:hover {
    color: #67C316;
}