/* ==========================================================================
   NAV - MODERNO 2026
   ========================================================================== */

ul.nav,
ul.nav * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul.nav {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 32, 67, 0.85) 0%, rgba(26, 63, 107, 0.85) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    width: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25) !important;
    z-index: 50;
    overflow: visible; /* ← importante para que el submenú sea visible */
    padding: 0 8px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* Items del menú */
ul.nav > li {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* ← necesario para posicionar el submenú */
    flex-shrink: 0;
}

/* Separador sutil entre items */
ul.nav > li + li::before {
    content: '';
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    margin: 0 1px;
}

ul.nav > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-decoration: none;
    padding: 0 8px !important;
    height: 34px !important;
    line-height: 34px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.2px;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Hover y estado activo */
ul.nav > li > a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
}

ul.nav > li.active-menu > a,
ul.nav > li.current > a {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.85) 0%, rgba(3, 105, 161, 0.85) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    font-weight: 600 !important;
}

/* ── SUBMENÚ ── */
ul.nav li ul {
    position: absolute;
    top: 48px;
    left: 0;
    background: #0d2540;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #4a9eda;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-radius: 0 8px 8px 8px;
    z-index: 100;
    min-width: 200px;
    /* animación */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
}

ul.nav li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

ul.nav li ul li:last-child {
    border-bottom: none;
}

ul.nav li ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
    transition: all 0.2s ease;
    border-radius: 0;
    white-space: nowrap;
}

ul.nav li ul li a:hover {
    background: rgba(74, 158, 218, 0.2);
    color: #ffffff;
    padding-left: 24px; /* ← pequeño desplazamiento en hover */
}

ul.nav li ul li a::after {
    display: none; /* sin línea inferior en submenú */
}

/* ── ICONOS (se mantienen tus clases originales) ── */
ul.nav li a span {
    padding-left: 20px !important;
    background-repeat: no-repeat;
    background-position: 2px center;
    background-size: 14px !important;
    display: inline-block;
    line-height: 1;
}

ul.nav li.ic-form-style a span    { background-image: url(../img/cuota.png); }
ul.nav li.ic-charts a span        { background-image: url(../img/Empleador.png); }
ul.nav li.ic-gallery a span       { background-image: url(../img/Empleados.png); }
ul.nav li.ic-notifications a span { background-image: url(../img/Fecha.png); }
ul.nav li.ic-notifications2 a span { background-image: url(../img/Localidad.png); }
ul.nav li.ic-notifications3 a span { background-image: url(../img/Admin.png); }
ul.nav li.ic-notifications4 a span { background-image: url(../img/archivo.png); }
ul.nav li.ic-notifications5 a span { background-image: url(../img/cuil.png); }
ul.nav li.ic-notifications6 a span { background-image: url(../img/reporte.png); }
ul.nav li.ic-config a span { background-image: url(../img/cog.png); }
ul.nav li.ic-decreto a span { background-image: url(../img/archivo.png); }