/* Light Immersive Tech & Glassmorphism Header (Logo adaptable permanente) */
.app-topbar {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.911);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    padding: 0.4rem 0.75rem;
    box-sizing: border-box;
}

.topbar-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-sizing: border-box;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

/* Icono escalable (NUNCA se oculta) */
.brand-icon {
    width: clamp(30px, 4.5vw, 52px);
    height: clamp(30px, 4.5vw, 52px);
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

/* Tipografía ultra compacta y fluida */
.brand-title {
    font-size: clamp(0.65rem, 1vw, 0.825rem);
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-subtitle {
    font-size: clamp(0.575rem, 0.8vw, 0.7rem);
    color: #64748b;
    font-weight: 500;
    font-family: 'Oswald', sans-serif !important;
    line-height: 1.1;
    margin-top: 1px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botones de Navegación */
.auth-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.auth-link {
    font-size: clamp(0.625rem, 0.8vw, 0.7rem);
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.auth-link-login {
    color: #334155;
    border: 1px solid rgba(203, 213, 225, 0.7);
    background: rgba(255, 255, 255, 0.8);
}

.auth-link-login:hover {
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.4);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.auth-link-dashboard {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.auth-link-dashboard:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Ajuste fino para móviles estrechos (< 480px) */
@media (max-width: 480px) {
    .app-topbar {
        padding: 0.3rem 0.5rem;
    }

    .topbar-brand {
        gap: 0.35rem;
    }

    .brand-subtitle {
        -webkit-line-clamp: 1; 
    }
}