/* ══════════════════════════════════════
   AFP NAVBAR — desktop
   ══════════════════════════════════════ */

.afp-navbar {
    background: linear-gradient(135deg, #071d4b 0%, #0D113A 40%, #1a3a7a 100%);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 2px 16px rgba(7, 29, 75, 0.45);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Lados izquierdo y derecho con flex:1 para centrar el logo */
.nav-side       { flex: 1; display: flex; align-items: center; }
.nav-side.right { justify-content: flex-end; gap: 10px; }

/* Logo centro */
.nav-logo       { flex: 0 0 auto; }
.nav-logo img   { height: 52px; width: auto; }

/* Chip nombre + ícono */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 24px;
    padding: 6px 16px 6px 14px;
    color: rgba(255, 255, 255, .92);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
}
.nav-user-info i { font-size: .75rem; opacity: .8; }

/* Botón nav */
.btn-nav {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9);
    font-size: .7rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    white-space: nowrap;
}
.btn-nav:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}
.btn-nav.danger:hover {
    background: rgba(220, 53, 69, .7);
    border-color: rgba(220, 53, 69, .8);
}
.btn-nav-txt { display: inline; }

/* Fila mobile — oculta en desktop */
.nav-row-top     { display: none; }
.nav-mobile-name { display: none; }


/* ══════════════════════════════════════
   AFP NAVBAR — mobile
   ══════════════════════════════════════ */

@media (max-width: 600px) {

    .afp-navbar {
        display: flex;
        flex-direction: column;
        height: auto;
        align-items: center;
        gap: 0;
        padding: 10px 16px 14px;
        border-radius: 0 0 20px 20px;
    }

    /* Ocultar elementos desktop */
    .nav-side { display: none; }

    /* Logo: arriba, grande, centrado */
    .nav-logo {
        order: -1;
        margin-bottom: 10px;
    }
    .nav-logo img { height: 68px; }

    /* Fila: [logout ícono] [nombre] juntos y centrados */
    .nav-row-top {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    /* Logout: solo ícono, circular */
    .btn-nav-mobile {
        padding: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Nombre: ícono + texto alineados a la derecha */
    .nav-mobile-name {
        display: flex;
        align-items: center;
        gap: 5px;
        color: rgba(255, 255, 255, .92);
        font-size: .75rem;
        font-weight: 500;
        overflow: hidden;
        white-space: nowrap;
        max-width: calc(100% - 50px);
    }
    .nav-mobile-name i { font-size: .7rem; opacity: .8; flex-shrink: 0; }
    .nav-mobile-name span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}