/* =========================================================
   NAVEGACIÓN MODERNA CON GLASSMORPHISM (NAV ADMIN & CLIENT)
   ========================================================= */
.navbar-gp {
    background-color: rgba(15, 42, 66, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-light);
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(15, 42, 66, 0.15);
}

.nav-container-gp {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / Logo */
.nav-brand-gp {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-brand-gp i {
    font-size: 1.6rem;
    color: var(--dorado-institucional);
}

.nav-brand-logo {
    height: 32px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.25s var(--ease-spring);
}

.nav-brand-gp:hover .nav-brand-logo {
    transform: scale(1.06);
}

.nav-badge-portal {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    background: rgba(95, 169, 214, 0.18);
    border: 1px solid rgba(95, 169, 214, 0.35);
    border-radius: var(--radius-pill);
    color: var(--azul-claro);
    letter-spacing: 0.06em;
}

/* Enlaces Esenciales (Pill Tabs con Transición Suave) */
.nav-links-gp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link-item a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    transition: all 0.22s var(--ease-spring);
}

.nav-link-item a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-item.active a {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--azul-vivo) 0%, var(--azul-institucional) 100%);
    box-shadow: 0 2px 10px rgba(23, 105, 168, 0.35);
}

/* Menú de Usuario (Derecha) */
.nav-user-gp {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #FFFFFF;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name-gp {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-role-gp {
    font-size: 0.725rem;
    color: #94A3B8;
}

.btn-logout-gp {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-logout-gp:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* =========================================================
   RESPONSIVE NAVBAR RULES
   ========================================================= */
@media (max-width: 992px) {
    .user-info-text {
        display: none;
    }
    .nav-links-gp {
        gap: 0.35rem;
    }
    .nav-link-item a {
        padding: 0.4rem 0.75rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 768px) {
    .navbar-gp {
        height: auto;
        min-height: 64px;
        padding: 0.5rem 0;
    }

    .nav-container-gp {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .nav-brand-gp {
        font-size: 1.1rem;
    }

    .nav-badge-portal {
        display: none;
    }

    .nav-links-gp {
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding: 0.25rem;
        margin-top: 0.25rem;
    }

    .nav-link-item a {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .nav-user-gp {
        order: 2;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container-gp {
        padding: 0 0.75rem;
    }

    .nav-brand-logo {
        width: 30px;
        height: 30px;
    }

    .nav-brand-gp {
        font-size: 1rem;
    }

    .nav-link-item a {
        padding: 0.3rem 0.45rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
}

/* =========================================================
   ACCIONES RÁPIDAS: NOTIFICACIONES DEV
   ========================================================= */
.nav-actions-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-notifications-wrapper {
    position: relative;
}

.btn-nav-bell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    position: relative;
    transition: all 0.2s ease;
}

.btn-nav-bell:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--dorado-institucional);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0F2A42;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-height: 420px;
    background: #FFFFFF;
    border: 1px solid rgba(15, 69, 113, 0.15);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 69, 113, 0.16);
    z-index: 1050;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.notif-dropdown-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--azul-institucional);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-mark-read {
    background: transparent;
    border: none;
    color: var(--azul-vivo);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.btn-mark-read:hover {
    background: rgba(23, 105, 168, 0.08);
}

.notif-dropdown-body {
    overflow-y: auto;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.notif-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: #94A3B8;
    font-size: 0.82rem;
}

.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    display: block;
    transition: background 0.15s ease;
}

.notif-item:hover {
    background: #F8FAFC;
}

.notif-item.unread {
    background: rgba(23, 105, 168, 0.05);
    border-left: 3px solid var(--azul-vivo);
}

.notif-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.notif-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--azul-institucional);
}

.notif-item-time {
    font-size: 0.68rem;
    color: #94A3B8;
}

.notif-item-msg {
    font-size: 0.76rem;
    color: #475569;
    margin: 0;
    line-height: 1.35;
}
