/* ==========================================================================
   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.75) 0%, rgba(26, 63, 107, 0.75) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    height: 48px;
    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 16px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    transform: translateZ(0) !important; /* Soluciona bug de renderizado de bordes fantasma con backdrop-filter */
    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ú */
}

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

ul.nav > li > a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.3px;
}

/* Línea inferior animada en hover */
ul.nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #4a9eda;
    border-radius: 3px 3px 0 0;
    transition: width 0.25s ease;
}

ul.nav > li > a:hover::after,
ul.nav > li.current > a::after {
    width: 70%;
}

/* Hover y estado activo */
ul.nav > li > a:hover,
ul.nav > li.current > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px 6px 0 0;
}

/* ── 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: 28px;    /* ← antes 36px, más espacio para el icono */
    background-repeat: no-repeat;
    background-position: 2px center;
    background-size: 18px; /* ← antes 26px, este es el que agranda el icono */
    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); }